Merge branch '3.2.x'

Closes gh-39226
This commit is contained in:
Phillip Webb
2024-01-17 13:16:53 -08:00
2 changed files with 45 additions and 2 deletions

View File

@@ -97,8 +97,8 @@ record ZipCentralDirectoryFileHeaderRecord(short versionMadeBy, short versionNee
dataBlock.readFully(buffer, extraPos);
zipEntry.setExtra(buffer.array());
}
if ((fileCommentLength() & 0xFFFF) > 0) {
long commentPos = MINIMUM_SIZE + fileNameLength + extraLength;
if (commentLength > 0) {
long commentPos = pos + MINIMUM_SIZE + fileNameLength + extraLength;
zipEntry.setComment(ZipString.readString(dataBlock, commentPos, commentLength));
}
}