mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
* GPA: Catch invalid frees Fix #14791: Catch cases where an invalid slice is passed to free(). This was silently ignored before but now logs an error. This change uses a AutoHashMap to keep track of the sizes which seems to be an overkill but seems like the easiest way to catch these errors. * GPA: Add wrong alignment checks to free/resize Implement @Inkryption's suggestion to catch free/resize with the wrong alignment. I also changed the naming to match large allocations. |
||
|---|---|---|
| .. | ||
| arena_allocator.zig | ||
| general_purpose_allocator.zig | ||
| log_to_writer_allocator.zig | ||
| logging_allocator.zig | ||
| memory_pool.zig | ||
| PageAllocator.zig | ||
| ThreadSafeAllocator.zig | ||
| WasmAllocator.zig | ||
| WasmPageAllocator.zig | ||