aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorErik Arvstedt <erik.arvstedt@gmail.com>2023-06-12 22:21:29 +0200
committerErik Arvstedt <erik.arvstedt@gmail.com>2023-06-13 09:46:16 +0200
commit41430a366f75eb7301deaca91d4aea3bbf61c8ec (patch)
treebf2c9415996623fa9b9d41329ce0dcb3631d3b22 /src/Module.zig
parentc16d4ab9e41be6b5c560d15eaa145ff3a0ffce6c (diff)
downloadzig-41430a366f75eb7301deaca91d4aea3bbf61c8ec.tar.gz
zig-41430a366f75eb7301deaca91d4aea3bbf61c8ec.zip
arena_allocator/reset: fix buffer overrun
Previously, the buffer reserved with `retain_with_limit` was missing space for the `BufNode`. When the user-provided a limit that was smaller than `@sizeOf(BufNode)`, `reset` would store a new `BufNode` in an allocation smaller than `BufNode`, leading to a buffer overrun.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions