ObjFW  Check-in [6a474ba752]

Overview
Comment:OFZIPArchive: Set CRC32 to 0, not -1

This was accidentally changed when ZIP64 write support was added.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6a474ba752f3dc97f872f437e0ddf6bec5bb631ba0e1547f12fff4f5ccad4a07
User & Date: js on 2017-08-14 00:49:10
Other Links: manifest | tags
Context
2017-08-14
11:33
ofhttp: Convert a method to a static function check-in: 608b76a238 user: js tags: trunk
00:49
OFZIPArchive: Set CRC32 to 0, not -1 check-in: 6a474ba752 user: js tags: trunk
00:45
OFZIPArchive(Entry): A logic and a typo fix check-in: de6e2319ca user: js tags: trunk
Changes

Modified src/OFZIPArchive.m from [06231a6b0d] to [85b7d55558].

519
520
521
522
523
524
525
526
527



528
529
530
531
532
533
534
519
520
521
522
523
524
525


526
527
528
529
530
531
532
533
534
535







-
-
+
+
+








	[_stream writeLittleEndianInt32: 0x04034B50];
	[_stream writeLittleEndianInt16: [entry minVersionNeeded]];
	[_stream writeLittleEndianInt16: [entry generalPurposeBitFlag]];
	[_stream writeLittleEndianInt16: [entry compressionMethod]];
	[_stream writeLittleEndianInt16: [entry of_lastModifiedFileTime]];
	[_stream writeLittleEndianInt16: [entry of_lastModifiedFileDate]];
	/* We use ZIP64 */
	[_stream writeLittleEndianInt32: 0xFFFFFFFF];
	/* We use the data descriptor */
	[_stream writeLittleEndianInt32: 0];
	/* We use ZIP64 */
	[_stream writeLittleEndianInt32: 0xFFFFFFFF];
	[_stream writeLittleEndianInt32: 0xFFFFFFFF];
	[_stream writeLittleEndianInt16: fileNameLength];
	[_stream writeLittleEndianInt16: extraFieldLength + 20];
	offsetAdd += 4 + (5 * 2) + (3 * 4) + (2 * 2);

	[_stream writeString: fileName];