Files
zig/lib/std
Isaac Freund 4848c3a1ad std: fix sentinel handling in Allocator interface
Currently the only function that handles sentinel terminated slices
properly is free. All uses of mem.sliceAsBytes() in the allocator
interface lack proper handling of a possible sentinel.

This commit changes the Allocator interface to use @ptrCast() plus
the new mem.absorbSentinel() instead.

Reported-by: David Vanderson <david.vanderson@gmail.com>
References: https://github.com/ziglang/zig/pull/19984
References: https://github.com/ziglang/zig/pull/23020
2026-03-25 10:50:24 +01:00
..
2025-11-22 22:42:38 +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
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-25 10:50:24 +01:00
2026-03-10 10:26:14 +00:00
2026-03-09 03:19:11 +01:00
2025-08-28 18:30:57 -07:00
2026-03-12 17:44:03 -04:00