libnxz / power-gzip

POWER NX zlib compliant library
23 stars 18 forks source link

Tests should abort in case of error #59

Closed tuliom closed 3 years ago

tuliom commented 3 years ago

test_deflate and test_inflate are not treating all kinds of errors, e.g. Z_STREAM_ERROR.

In the exceptional scenario that one of these errors appear, they're stuck in an infinite loop.

I found this error in a scenario where the OS returned cc=250.

tuliom commented 3 years ago

Fixed with PR #60 .