fix(bitmap): add overflow check for buffer size calculation #148
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
OragonEfreet/banjo!148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/bitmap-allocation-overflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add overflow check before computing stride * height to prevent
integer overflow when allocating bitmap buffer. On systems where
size_t is 32-bit, large dimensions could overflow and cause
undersized buffer allocation.