Files
zig/lib/std
Justus Klausecker 589bcb2544 std.heap.ArenaAllocator: Make resize and free check whether allocation is within current node more rigorously
This prevents the following scenario where an allocation is wrongly assumed
to be part of the current head node (`node0`):

```
| node0 - - - - | node1 - - - - - - - - - - - - |
          |   |         |   |           |
          |   |         |   end_index0  end_index1
          |   |         |   |
          alloc0        alloc1

free(alloc1):
    load node0
    buf0.ptr + end_index0 == alloc1.ptr + alloc1.len ? yes!
    end_index0 -= alloc1.len

| node0 - - - - | node1 - - - - - - - - - - - |
          | | |                         |
          | end_index0                  end_index1
          |   |
          alloc0
```

which could move `end_index0` *into* `alloc0` and make it possible for any
subsequent calls to `alloc` to overwrite its contents!
2026-03-25 00:54:44 +01:00
..
2026-03-22 07:21:41 -07:00
2025-11-22 22:42:38 +00:00
2026-03-10 10:38:50 +00:00
2025-11-22 22:42:38 +00:00
2026-02-11 23:37:31 +01:00
2026-03-10 10:38:50 +00:00
2026-02-13 17:58:09 -05:00
2026-03-10 10:38:50 +00:00
2026-03-10 10:26:07 +00:00
2025-12-22 10:00:35 -08:00
2025-11-22 22:42:38 +00:00
2026-03-21 02:56:24 -04:00
2025-08-29 17:14:26 -07:00
2025-08-29 17:14:26 -07:00
2026-03-10 10:38:50 +00:00
2026-03-10 10:26:14 +00:00
2026-03-21 02:56:24 -04:00
2025-08-28 18:30:57 -07:00
2026-03-12 17:44:03 -04:00
2025-07-16 10:27:39 -07:00
2026-03-20 06:46:13 +01:00