zig/lib/c
Andrew Kelley 017228de89 libc malloc: introduce a canary
Instead of padding, use static entropy to detect corrupted header.

* 64-bit, safe modes: 10 canary bits
* 64-bit, unsafe modes: 0 canary bits
* 32-bit: 27 canary bits

A further enhancement, not done here, would be to upgrade from canary to
parity.
2026-02-14 09:25:41 +01:00
..
stdlib zig libc: simplify implementation 2026-02-11 07:58:11 +01:00
sys zig libc: simplify implementation 2026-02-11 07:58:11 +01:00
ctype.zig zig libc: simplify implementation 2026-02-11 07:58:11 +01:00
inttypes.zig zig libc: simplify implementation 2026-02-11 07:58:11 +01:00
malloc.zig libc malloc: introduce a canary 2026-02-14 09:25:41 +01:00
math.zig zig libc: acosf 2026-02-13 11:30:14 -08:00
search.zig libc: implement insque and remque in Zig 2026-02-12 21:35:36 -08:00
stdlib.zig zig libc: simplify implementation 2026-02-11 07:58:11 +01:00
string.zig zig libc: simplify implementation 2026-02-11 07:58:11 +01:00
strings.zig zig libc: simplify implementation 2026-02-11 07:58:11 +01:00
unistd.zig std.posix: remove close function 2026-02-11 23:37:31 +01:00
wchar.zig zig libc: simplify implementation 2026-02-11 07:58:11 +01:00