ObjFW  Check-in [d7b824ee7e]

Overview
Comment:OFLHAArchiveEntry: Remove pointless check
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 1.0
Files: files | file ages | folders
SHA3-256: d7b824ee7ecfbe917804b330ce10e0e1b7d4aa722edac3fdefb2924d89cb4fa1
User & Date: js on 2024-02-24 13:29:21
Other Links: branch diff | manifest | tags
Context
2024-02-24
13:52
OFLHAArchiveEntry: Parse compression method last check-in: 9b1de0cac0 user: js tags: 1.0
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:23
OFLHAArchiveEntry: Properly skip extended area check-in: 399137032a user: js tags: 1.0
Changes

Modified src/OFLHAArchiveEntry.m from [cf3fc3a2d6] to [cf1160a94a].

337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
		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);







<
<
<
<







337
338
339
340
341
342
343




344
345
346
347
348
349
350
		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);