Overview
Comment: | Rename OFChecksum{Failed -> Mismatch}Exception
This also adds a parameter for the actual and expected checksum. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
8f21e8acb521e0f3b2b1a4a25fea893f |
User & Date: | js on 2018-06-12 21:33:18 |
Other Links: | manifest | tags |
Context
2018-06-16
| ||
14:15 | Wrap a few @public in #ifdefs check-in: 7d86d2dd2b user: js tags: trunk | |
2018-06-12
| ||
21:33 | Rename OFChecksum{Failed -> Mismatch}Exception check-in: 8f21e8acb5 user: js tags: trunk | |
2018-06-10
| ||
20:29 | OF{LHA,ZIP}Archive: Improve truncation detection check-in: 6b42e44f99 user: js tags: trunk | |
Changes
Modified src/OFGZIPStream.m from [366b9ff49d] to [2759f9564f].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | - + | #import "OFGZIPStream.h" #import "OFInflateStream.h" #import "OFDate.h" #import "crc32.h" |
︙ | |||
77 78 79 80 81 82 83 84 85 86 87 88 89 90 | 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | + | length: (size_t)length { if (_stream == nil) @throw [OFNotOpenException exceptionWithObject: self]; for (;;) { uint8_t byte; uint32_t CRC32, uncompressedSize; if ([_stream isAtEndOfStream]) { if (_state != OF_GZIP_STREAM_ID1) @throw [OFTruncatedDataException exception]; return 0; } |
︙ | |||
257 258 259 260 261 262 263 | 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 | - - - + + + + + + + + + + + + - - - - + + + + + + + + + + + + | case OF_GZIP_STREAM_CRC32: _bytesRead += [_stream readIntoBuffer: _buffer length: 4 - _bytesRead]; if (_bytesRead < 4) return 0; |
︙ |
Modified src/OFLHAArchive.m from [4f0d23572a] to [1f3aa621cb].
︙ | |||
28 29 30 31 32 33 34 | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | - + | #import "OFStream.h" #import "OFSeekableStream.h" #import "OFString.h" #import "crc16.h" #import "huffman_tree.h" |
︙ | |||
806 807 808 809 810 811 812 | 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 | - - + + + + + + + + + + | _toRead -= ret; _CRC16 = of_crc16(_CRC16, buffer, ret); if (_toRead == 0) { _atEndOfStream = true; |
︙ |
Modified src/OFZIPArchive.m from [0463ac5206] to [9e27ae6fff].
︙ | |||
31 32 33 34 35 36 37 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | - + | # import "OFFile.h" #endif #import "OFInflateStream.h" #import "OFInflate64Stream.h" #import "crc32.h" |
︙ | |||
814 815 816 817 818 819 820 | 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 | - - + + + + + + + + + + | _toRead -= ret; _CRC32 = of_crc32(_CRC32, buffer, ret); if (_toRead == 0) { _atEndOfStream = true; |
︙ |
Modified src/ObjFW.h from [5b600283bc] to [d8f06920eb].
︙ | |||
128 129 130 131 132 133 134 | 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | - + | #ifdef OF_HAVE_SOCKETS # import "OFAcceptFailedException.h" # import "OFAddressTranslationFailedException.h" # import "OFAlreadyConnectedException.h" # import "OFBindFailedException.h" #endif #import "OFChangeCurrentDirectoryPathFailedException.h" |
︙ |
Modified src/exceptions/Makefile from [667f570482] to [dcb34a8da1].
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | - + | include ../../extra.mk STATIC_PIC_LIB_NOINST = ${EXCEPTIONS_LIB_A} STATIC_LIB_NOINST = ${EXCEPTIONS_A} SRCS = OFAllocFailedException.m \ OFChangeCurrentDirectoryPathFailedException.m \ |
︙ |
Deleted src/exceptions/OFChecksumFailedException.h version [4c03396bff].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted src/exceptions/OFChecksumFailedException.m version [e5945cfdb9].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Added src/exceptions/OFChecksumMismatchException.h version [9576163f70].
|
Added src/exceptions/OFChecksumMismatchException.m version [77d7bc3f8d].
|