Skip to content

Conversation

@Nopey
Copy link

@Nopey Nopey commented Nov 22, 2025

Without this change, a seemingly-innocent call such as calloc( 1 + 1, 2 ) will allocate 3 bytes ( 1 + 1 * 2) and then memset 4 bytes ( (1 + 1) * 2 ), overflowing the buffer & corrupting the heap.

I don't believe any code in this repo is currently doing math in the calloc callsite like this.

Without this change, a call such as `calloc( 1 + 1, 2 )` will allocate 3 bytes ( `1 + 1 * 2`) and then memset 4 bytes ( `(1 + 1) * 2` ), overflowing the buffer & corrupting the heap.
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.

1 participant