ObjFW  Check-in [2214e91661]

Overview
Comment:OFZIPArchive: More fixes for disk number 0 vs 1
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 1.0
Files: files | file ages | folders
SHA3-256: 2214e916618fa3ea5a74ed70dcd0a989211704fc8b0835b294081516668df74a
User & Date: js on 2024-03-10 21:30:57
Other Links: branch diff | manifest | tags
Context
2024-03-10
23:00
OFInflateStream: Return if we can't read check-in: f7faf2bfa6 user: js tags: 1.0
21:30
OFZIPArchive: More fixes for disk number 0 vs 1 check-in: 2214e91661 user: js tags: 1.0
21:30
OFZIPArchive: More fixes for disk number 0 vs 1 check-in: 0ecd85c8e3 user: js tags: trunk
2024-03-09
22:06
OFTarArchiveEntry: Add default modification date check-in: ca40722732 user: js tags: 1.0
Changes

Modified src/OFZIPArchive.m from [e21c51c5ab] to [371569395b].

318
319
320
321
322
323
324



325
326
327
328
329
330
331
		}
	} while (--offset >= -65557);

	if (!valid)
		@throw [OFInvalidFormatException exception];

	_diskNumber = _lastDiskNumber = [_stream readLittleEndianInt16];



	_centralDirectoryDisk = [_stream readLittleEndianInt16];
	_centralDirectoryEntriesInDisk = [_stream readLittleEndianInt16];
	_centralDirectoryEntries = [_stream readLittleEndianInt16];
	_centralDirectorySize = [_stream readLittleEndianInt32];
	_centralDirectoryOffset = [_stream readLittleEndianInt32];

	commentLength = [_stream readLittleEndianInt16];







>
>
>







318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
		}
	} while (--offset >= -65557);

	if (!valid)
		@throw [OFInvalidFormatException exception];

	_diskNumber = _lastDiskNumber = [_stream readLittleEndianInt16];
	if (_diskNumber == 0)
		_diskNumber = _lastDiskNumber = 1;

	_centralDirectoryDisk = [_stream readLittleEndianInt16];
	_centralDirectoryEntriesInDisk = [_stream readLittleEndianInt16];
	_centralDirectoryEntries = [_stream readLittleEndianInt16];
	_centralDirectorySize = [_stream readLittleEndianInt32];
	_centralDirectoryOffset = [_stream readLittleEndianInt32];

	commentLength = [_stream readLittleEndianInt16];