summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2022-02-21 12:04:32 +0200
committerTimo Teräs <timo.teras@iki.fi>2022-02-25 10:42:35 +0200
commita920d3e4a5a7e13d47bd20e79d3898824f61e85f (patch)
tree5b499946aba2338987a999bbd97304d9ddb76c38 /test
parent9e824cf3dbfca9c2575b17f9f45ca89b86aa43c6 (diff)
downloadapk-tools-a920d3e4a5a7e13d47bd20e79d3898824f61e85f.tar.gz
apk-tools-a920d3e4a5a7e13d47bd20e79d3898824f61e85f.tar.bz2
apk-tools-a920d3e4a5a7e13d47bd20e79d3898824f61e85f.tar.xz
apk-tools-a920d3e4a5a7e13d47bd20e79d3898824f61e85f.zip
io_gunzip: fix handling short reads near end-of-file
The gzip library can drain all of the input to internal buffers and still keep providing data even if avail_in is zero. Previously it was assumed that avail_in != 0 if there is still data expected out, but this logic breaks near end-of-file for multiple short reads. Adjust logic to not process end-of-file event too early. fixes #10809
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions