Correct the value of rest_read_compressed when decompressing an encrypted zip

pull/1033/head
Hans Wennborg 1 month ago
parent ef24c4c750
commit 31e3e58915
  1. 1
      contrib/minizip/unzip.c

@ -1498,6 +1498,7 @@ extern int ZEXPORT unzOpenCurrentFile3(unzFile file, int* method,
zdecode(s->keys,s->pcrc_32_tab,source[i]);
s->pfile_in_zip_read->pos_in_zipfile+=12;
s->pfile_in_zip_read->rest_read_compressed-=12;
s->encrypted=1;
}
# endif

Loading…
Cancel
Save