Differences From Artifact [cf1160a94a]:
- File src/OFLHAArchiveEntry.m — part of check-in [d7b824ee7e] at 2024-02-24 13:29:21 on branch 1.0 — OFLHAArchiveEntry: Remove pointless check (user: js, size: 19974) [annotate] [blame] [check-ins using] [more...]
To Artifact [170a00bdd8]:
- File
src/OFLHAArchiveEntry.m
— part of check-in
[9b1de0cac0]
at
2024-02-24 13:52:01
on branch 1.0
— OFLHAArchiveEntry: Parse compression method last
This avoids trying to parse the compression method when the header level
is invalid. (user: js, size: 19974) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
332 333 334 335 336 337 338 | encoding: (OFStringEncoding)encoding { self = [super init]; @try { uint32_t date; | < < < < < | 332 333 334 335 336 337 338 339 340 341 342 343 344 345 | encoding: (OFStringEncoding)encoding { self = [super init]; @try { uint32_t date; memcpy(&_compressedSize, header + 7, 4); _compressedSize = OFFromLittleEndian32((uint32_t)_compressedSize); memcpy(&_uncompressedSize, header + 11, 4); _uncompressedSize = OFFromLittleEndian32((uint32_t)_uncompressedSize); |
︙ | ︙ | |||
423 424 425 426 427 428 429 430 431 432 433 434 435 436 | @throw [OFUnsupportedVersionException exceptionWithVersion: version]; } if (_fileName == nil) @throw [OFInvalidFormatException exception]; [_extensions makeImmutable]; } @catch (id e) { [self release]; @throw e; } | > > > > > | 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 | @throw [OFUnsupportedVersionException exceptionWithVersion: version]; } if (_fileName == nil) @throw [OFInvalidFormatException exception]; _compressionMethod = [[OFString alloc] initWithCString: header + 2 encoding: OFStringEncodingASCII length: 5]; [_extensions makeImmutable]; } @catch (id e) { [self release]; @throw e; } |
︙ | ︙ |