Differences From Artifact [85b7d55558]:
- File
src/OFZIPArchive.m
— part of check-in
[6a474ba752]
at
2017-08-14 00:49:10
on branch trunk
— OFZIPArchive: Set CRC32 to 0, not -1
This was accidentally changed when ZIP64 write support was added. (user: js, size: 22462) [annotate] [blame] [check-ins using]
To Artifact [e300d0925e]:
- File
src/OFZIPArchive.m
— part of check-in
[1f4407ddf1]
at
2017-08-19 09:19:56
on branch trunk
— OFZIPArchive: Fix ZIP64Index not being set
Interestingly, Clang did not warn about this, but GCC does. (user: js, size: 22475) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
658 659 660 661 662 663 664 | _fileName = [[stream readStringWithLength: fileNameLength encoding: encoding] copy]; if (extraFieldLength > 0) extraField = [[[stream readDataWithCount: extraFieldLength] mutableCopy] autorelease]; | | | 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 | _fileName = [[stream readStringWithLength: fileNameLength encoding: encoding] copy]; if (extraFieldLength > 0) extraField = [[[stream readDataWithCount: extraFieldLength] mutableCopy] autorelease]; ZIP64Index = of_zip_archive_entry_extra_field_find(extraField, OF_ZIP_ARCHIVE_ENTRY_EXTRA_FIELD_ZIP64, &ZIP64Size); if (ZIP64Index != OF_NOT_FOUND) { const uint8_t *ZIP64 = [extraField itemAtIndex: ZIP64Index]; of_range_t range = of_range(ZIP64Index - 4, ZIP64Size + 4); |
︙ | ︙ |