zig/lib/std/heap
Ganesan Rajagopal 49b56f88b9
GPA: Catch invalid frees
* 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.
2023-04-04 13:11:25 +03:00
..
arena_allocator.zig Implements std.ArenaAllocator.reset() (#12590) 2023-01-03 15:15:20 -05:00
general_purpose_allocator.zig GPA: Catch invalid frees 2023-04-04 13:11:25 +03:00
log_to_writer_allocator.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
logging_allocator.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
memory_pool.zig Improves the comment formatting. 2022-12-15 10:16:28 +01:00
PageAllocator.zig std.heap: extract PageAllocator, WasmPageAllocator 2022-11-29 23:46:02 -07:00
ThreadSafeAllocator.zig add std.heap.ThreadSafeAllocator 2023-03-15 10:48:12 -07:00
WasmAllocator.zig WasmAllocator: simplify thanks to new Allocator interface 2022-11-29 23:46:02 -07:00
WasmPageAllocator.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00