Skip to content

Commit dc44ed5

Browse files
olszomalmtrojnar
authored andcommitted
Fix CFFOLDER hashing
1 parent c699087 commit dc44ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cab.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ static u_char *cab_digest_calc(FILE_FORMAT_CTX *ctx, const EVP_MD *md)
274274
* (u8 * cFolders) CFFOLDER - structure contains information about
275275
* one of the folders or partial folders stored in this cabinet file
276276
*/
277-
while (nfolders) {
277+
while (nfolders && idx < fileend) {
278278
BIO_write(bhash, ctx->options->indata + idx, 8);
279279
idx += 8;
280280
nfolders--;

0 commit comments

Comments
 (0)