mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-06-21 16:11:50 -04:00
4f7170f8a3
Attempting to allocate > (1 GiB - @sizeOf(usize)) would previously hit index out-of-bounds due to the slot index coming out to 15 which is the same as the length of the big_frees array. The log2 gives the max index, not the count, so it needs the +1.