zlib has a 38-line proof in a comment that two pointers sharing one buffer never collide. It’s wrong, yet nobody could make them collide. deflate puts sym_buf inside pending_buf, and the only guard is an Assert stripped from release builds. A collision would mean an out-of-bounds .rodata read via d_code(). A deep dive built on Lean 4 proofs for zlib and zlib-ng.
zlib
Follow from the Fediverse
Follow #zlib from Mastodon or any other Fediverse app and its public posts arrive in your timeline. No vutuv account needed.
@zlib@tags.vutuv.de
Posts with this tag
1 post