ObjFW  Check-in [0ecd85c8e3]

Overview
Comment:OFZIPArchive: More fixes for disk number 0 vs 1
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0ecd85c8e3a4508e6917fcf18ad4c050a16987757017586e68a63f112d79e9c8
User & Date: js on 2024-03-10 21:30:47
Other Links: manifest | tags
Context
2024-03-10
23:00
OFInflateStream: Return if we can't read check-in: a72f602c2a user: js tags: trunk
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
18:44
OFIRI: Add methods for path extension check-in: 0ca94307e6 user: js tags: trunk
Changes

Modified src/OFZIPArchive.m from [3fcd2502eb] to [ce4c3b4903].

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];