ObjFW  Check-in [4b6a09da4c]

Overview
Comment:OFLHAArchiveEntry: Remove pointless check
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4b6a09da4c3b7aeb3d94c7a782154939cf55b3097e5d4ea17ac2f8915e259585
User & Date: js on 2024-02-24 13:29:10
Other Links: manifest | tags
Context
2024-02-24
13:51
OFLHAArchiveEntry: Parse compression method last check-in: d57a56449f user: js tags: trunk
13:29
OFLHAArchiveEntry: Remove pointless check check-in: d7b824ee7e user: js tags: 1.0
13:29
OFLHAArchiveEntry: Remove pointless check check-in: 4b6a09da4c user: js tags: trunk
13:22
OFLHAArchiveEntry: Properly skip extended area check-in: 0b7f209aef user: js tags: trunk
Changes

Modified src/OFLHAArchiveEntry.m from [e954a2772e] to [c2a59c307b].

345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
		uint32_t date;

		_compressionMethod = [[OFString alloc]
		    initWithCString: header + 2
			   encoding: OFStringEncodingASCII
			     length: 5];

		if (_compressedSize > UINT32_MAX ||
		    _uncompressedSize > UINT32_MAX)
			@throw [OFOutOfRangeException exception];

		memcpy(&_compressedSize, header + 7, 4);
		_compressedSize =
		    OFFromLittleEndian32((uint32_t)_compressedSize);

		memcpy(&_uncompressedSize, header + 11, 4);
		_uncompressedSize =
		    OFFromLittleEndian32((uint32_t)_uncompressedSize);







<
<
<
<







345
346
347
348
349
350
351




352
353
354
355
356
357
358
		uint32_t date;

		_compressionMethod = [[OFString alloc]
		    initWithCString: header + 2
			   encoding: OFStringEncodingASCII
			     length: 5];





		memcpy(&_compressedSize, header + 7, 4);
		_compressedSize =
		    OFFromLittleEndian32((uint32_t)_compressedSize);

		memcpy(&_uncompressedSize, header + 11, 4);
		_uncompressedSize =
		    OFFromLittleEndian32((uint32_t)_uncompressedSize);