Overview
Comment: | OFDeflate64Stream: Fix window size |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
24338bc6c9c8d2fc566359ac8e1ff5ed |
User & Date: | js on 2016-05-29 14:41:50 |
Other Links: | manifest | tags |
Context
2016-05-29
| ||
18:36 | OFKernelEventObserver: Cast FD_SETSIZE to int check-in: d9398f2439 user: js tags: trunk | |
14:41 | OFDeflate64Stream: Fix window size check-in: 24338bc6c9 user: js tags: trunk | |
14:34 | OFString+JSONValue: Remove restrict check-in: 1e9a23441b user: js tags: trunk | |
Changes
Modified src/OFDeflateStream.m from [14779b4fa3] to [6767b2487a].
︙ | ︙ | |||
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 | - (void)OF_initDecompression { _decompression = [self allocMemoryWithSize: sizeof(*_decompression)]; memset(_decompression, 0, sizeof(*_decompression)); /* 0-7 address the bit, 8 means fetch next byte */ _decompression->bitIndex = 8; _decompression->slidingWindowMask = 0x7FFF; } - (size_t)lowlevelReadIntoBuffer: (void*)buffer_ length: (size_t)length { struct of_deflate_stream_decompression_ivars *ivars = _decompression; uint8_t *buffer = buffer_; | > > > > | 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 | - (void)OF_initDecompression { _decompression = [self allocMemoryWithSize: sizeof(*_decompression)]; memset(_decompression, 0, sizeof(*_decompression)); /* 0-7 address the bit, 8 means fetch next byte */ _decompression->bitIndex = 8; #ifdef DEFLATE64 _decompression->slidingWindowMask = 0xFFFF; #else _decompression->slidingWindowMask = 0x7FFF; #endif } - (size_t)lowlevelReadIntoBuffer: (void*)buffer_ length: (size_t)length { struct of_deflate_stream_decompression_ivars *ivars = _decompression; uint8_t *buffer = buffer_; |
︙ | ︙ |