diff options
author | Timo Teräs <timo.teras@iki.fi> | 2022-02-21 12:04:32 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2022-02-21 12:36:46 +0200 |
commit | fedaa44546af1b8c05131119752cc2f3f682ae7c (patch) | |
tree | 7553557f80d02cfa0a7ff900ed7074085077a621 /src/database.c | |
parent | 17f22530a5fdee33e1669a7b97d58d5a869dce26 (diff) | |
download | apk-tools-fedaa44546af1b8c05131119752cc2f3f682ae7c.tar.gz apk-tools-fedaa44546af1b8c05131119752cc2f3f682ae7c.tar.bz2 apk-tools-fedaa44546af1b8c05131119752cc2f3f682ae7c.tar.xz apk-tools-fedaa44546af1b8c05131119752cc2f3f682ae7c.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 'src/database.c')
0 files changed, 0 insertions, 0 deletions