• Timo Teräs's avatar
    gunzip: fix ordering of boundary callbacks · c206c0ef
    Timo Teräs authored
    The boundary callback should not happen until all the uncompressed
    data has been consumed. This previously seems to have worked
    because normally gzip library returns "no error" instead of the
    "stream end" if we extract exactly the amount of bytes remaining
    in the archive. (Perhaps this was changed in new zlib.) In any
    case, verification was broken with some apks due to this callback
    ordering issue.
    (cherry picked from commit f126316c)
gunzip.c 5.49 KB