Skip to content

Check for overflow in StorageView::reserve byte size - #2092

Closed
jordimas wants to merge 1 commit into
OpenNMT:masterfrom
jordimas:security/storage-view-overflow-check
Closed

Check for overflow in StorageView::reserve byte size#2092
jordimas wants to merge 1 commit into
OpenNMT:masterfrom
jordimas:security/storage-view-overflow-check

Conversation

@jordimas

@jordimas jordimas commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

Reject negative sizes and detect dim_t overflow when computing the allocation byte count in StorageView::reserve, preventing a malformed model from producing an undersized buffer. Adds regression tests.

Reported by Jitendra Prajapati (Infinityscroll).

@jordimas
jordimas force-pushed the security/storage-view-overflow-check branch from 307ae33 to c8240ba Compare August 30, 2026 12:06
@jordimas

Copy link
Copy Markdown
Collaborator Author

We will integrate #2094

@jordimas jordimas closed this Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants