Skip to content
  • Timo Teräs's avatar
    gunzip: fix false end-of-file condition in rare circumstances · b43da45b
    Timo Teräs authored
    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).
    b43da45b