Get the latest tech news

Right Code, Wrong Comment: The Pointer Chase Inside Zlib


A 38-line comment in deflate.c argues that zlib's shared buffer can never overwrite unread symbols. That comment is wrong—yet when we tried to build an exploit, three hidden Huffman invariants stood in the way.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of zlib

zlib

Photo of pointer chase

pointer chase

Photo of right code

right code

Related news:

News photo

Zlib 1.4 Released With More Than One Dozen Security Fixes

News photo

Google CTF 2025 – webz : Exploiting zlib's Huffman Code Table