Differences From Artifact [b45e69217a]:
- File
src/OFDeflateStream.m
— part of check-in
[d1293b647a]
at
2013-10-29 22:56:11
on branch trunk
— OFDeflateStream: Fix reading uncompressed header.
In case the uncompressed header was incomplete, this overwrote the old
buffer instead of continuing it. (user: js, size: 17473) [annotate] [blame] [check-ins using]
To Artifact [66b4a19144]:
- File src/OFDeflateStream.m — part of check-in [2b11bca0d1] at 2013-10-29 23:37:20 on branch trunk — OFDeflateStream: Get rid of stupid GCC warnings. (user: js, size: 17490) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
156 157 158 159 160 161 162 | } static struct huffman_tree* constructTree(uint8_t lengths[], uint_fast16_t count) { struct huffman_tree *tree; uint16_t lengthCount[MAX_BITS + 1] = { 0 }; | | | 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | } static struct huffman_tree* constructTree(uint8_t lengths[], uint_fast16_t count) { struct huffman_tree *tree; uint16_t lengthCount[MAX_BITS + 1] = { 0 }; uint16_t code, maxCode = 0, nextCode[MAX_BITS + 1]; uint_fast16_t i; for (i = 0; i < count; i++) { uint8_t length = lengths[i]; if OF_UNLIKELY (length > MAX_BITS) @throw [OFInvalidFormatException exception]; |
︙ | ︙ | |||
729 730 731 732 733 734 735 736 737 738 739 740 741 742 | CTX.treeIter = CTX.distTree; CTX.state = AWAIT_DISTANCE; } break; #undef CTX } } - (bool)lowlevelIsAtEndOfStream { return _atEndOfStream; } @end | > > | 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 | CTX.treeIter = CTX.distTree; CTX.state = AWAIT_DISTANCE; } break; #undef CTX } assert(0); } - (bool)lowlevelIsAtEndOfStream { return _atEndOfStream; } @end |