diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-28 00:44:42 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-28 00:44:42 -0600 |
| commit | 06e1dd50e4c2e93150b4e14ee2cbed566900cd3a (patch) | |
| tree | 978732f3df500cc16a59e4890717db1d28662081 /tests/tools/zos-shim/git@git.abendless.com: | |
| parent | 95bf87d4ed037e6d6786cc395d94dbe44ee88e32 (diff) | |
| download | zash-06e1dd50e4c2e93150b4e14ee2cbed566900cd3a.tar.gz | |
fix(util): refuse an arena size that would overflow
arena_alloc() aligned the size and arena_add_chunk() added sizeof
(arena_chunk) to it before malloc(), so a size near SIZE_MAX wrapped and
handed back a short block. Both now go through out_of_memory() above
SIZE_MAX / 2, the same way xmalloc() treats a failed malloc.
Diffstat (limited to 'tests/tools/zos-shim/git@git.abendless.com:')
0 files changed, 0 insertions, 0 deletions
