Overview
Comment: | OFZIPArchive: Handle CD spanning multiple parts
Unfortunately, I could not find a file to test this with, as this is an |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
a847357585cbc5f92e78aaed8d671e0b |
User & Date: | js on 2023-07-26 19:05:36 |
Other Links: | manifest | tags |
Context
2023-07-30
| ||
23:48 | OFDNSResolverSettings: Allow ; for comments check-in: cb260c0ef2 user: js tags: trunk | |
2023-07-26
| ||
19:05 | OFZIPArchive: Handle CD spanning multiple parts check-in: a847357585 user: js tags: trunk | |
2023-07-25
| ||
21:35 | Make GCC happy again check-in: a1ea38be5b user: js tags: trunk | |
Changes
Modified src/OFZIPArchive.m from [2026ad717c] to [03f366c882].
︙ | |||
43 44 45 46 47 48 49 | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | - + - | #import "OFOutOfRangeException.h" #import "OFSeekFailedException.h" #import "OFTruncatedDataException.h" #import "OFUnsupportedVersionException.h" #import "OFWriteFailedException.h" /* |
︙ | |||
155 156 157 158 159 160 161 | 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | - + - | @synthesize delegate = _delegate, archiveComment = _archiveComment; static void seekOrThrowInvalidFormat(OFZIPArchive *archive, const uint32_t *diskNumber, OFStreamOffset offset, OFSeekWhence whence) { if (diskNumber != NULL && *diskNumber != archive->_diskNumber) { |
︙ | |||
395 396 397 398 399 400 401 | 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 | - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | (OFStreamOffset)_centralDirectoryOffset != _centralDirectoryOffset) @throw [OFOutOfRangeException exception]; seekOrThrowInvalidFormat(self, &_centralDirectoryDisk, (OFStreamOffset)_centralDirectoryOffset, OFSeekSet); for (size_t i = 0; i < _centralDirectoryEntries; i++) { |
︙ | |||
839 840 841 842 843 844 845 | 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 | - + - | @throw [OFNotOpenException exceptionWithObject: self]; if (_atEndOfStream) return 0; if ([_archive->_stream isAtEndOfStream] && ![_decompressedStream hasDataInReadBuffer]) { |
︙ |