zig
zig copied to clipboard
Allocation fails for buffers larger than 2^29 bytes
When allocating a buffer with more than 2^29 bytes, the integer cast on this line overflows: https://github.com/ziglang/zig/blob/8d8d568854d33be7bcc2bc9874029d1082914af7/lib/std/mem/Allocator.zig#L286
Seems to have been resolved, there are no @intCasts in std/mem/Allocator anymore and I can allocate 6GB without any issues.
Confirm that.