Skip to content

Commit 31e3e58

Browse files
committed
Correct the value of rest_read_compressed when decompressing an encrypted zip
1 parent ef24c4c commit 31e3e58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/minizip/unzip.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,7 @@ extern int ZEXPORT unzOpenCurrentFile3(unzFile file, int* method,
14981498
zdecode(s->keys,s->pcrc_32_tab,source[i]);
14991499

15001500
s->pfile_in_zip_read->pos_in_zipfile+=12;
1501+
s->pfile_in_zip_read->rest_read_compressed-=12;
15011502
s->encrypted=1;
15021503
}
15031504
# endif

0 commit comments

Comments
 (0)