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.
017228de89Andrew Kelley committed on 2/14/2026, 8:25:41 AMparentd2c862e
1 file changedLine totals unavailable