summaryrefslogtreecommitdiff
path: root/src/app_policy.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-02-03 22:46:19 +0200
committerTimo Teräs <timo.teras@iki.fi>2021-02-07 15:25:05 +0200
commit5e62eee4f4c415afab5a1e38a266a5318f0c3a33 (patch)
tree571f2bf7291df20d501e5edb4623b18a8dede435 /src/app_policy.c
parente141870554783ffee30da8b358120f77095b7268 (diff)
downloadapk-tools-5e62eee4f4c415afab5a1e38a266a5318f0c3a33.tar.gz
apk-tools-5e62eee4f4c415afab5a1e38a266a5318f0c3a33.tar.bz2
apk-tools-5e62eee4f4c415afab5a1e38a266a5318f0c3a33.tar.xz
apk-tools-5e62eee4f4c415afab5a1e38a266a5318f0c3a33.zip
gunzip: fix false end-of-file condition in rare circumstances
It turns out inflate() can output zero bytes, even if it consumed data. This had the unfortunate side effect of returning zero bytes (end-of-file) condition before calling the boundary callbacks. This fixes the logic to not return zero reads on gzip boundary. In practice this fixes the seldom seen issues of apk reporting bad signature (when it was correct).
Diffstat (limited to 'src/app_policy.c')
0 files changed, 0 insertions, 0 deletions