Closed terrelln closed 3 weeks ago
Never mind, fixed by 7d54c69413ed2275b9ea25b376627294ffac5ca8
From ten years ago.
Yup, sorry for the spam! I was, unfortunately, mistaken about which version we were on.
No worries! I'm just surprised sometimes about old versions out in the wild.
Issue: The
uncompress()
function returnsZ_BUF_ERROR
for invalid inputs that are 0x1999999A bytes or larger. E.g. on the buffer of all zeros. The output buffer size was tried to be 10x, 20x, 40x, 80x, and 160x the input size, all failed withZ_BUF_ERROR
.Expectation: The function returns
Z_DATA_ERROR
because the docs say thatZ_BUF_ERROR
is returned if there was not enough room in the output buffer, andZ_DATA_ERROR
if the input data was corrupted or incomplete.