ofxIO icon indicating copy to clipboard operation
ofxIO copied to clipboard

wrong compressedBuffer size when compressing

Open chaosct opened this issue 5 years ago • 1 comments
trafficstars

When compressing, compressedBuffer should be resized to LZ4_compressBound(inputSize), and not inputSize, as with very random data compressedBuffer may end being larger than the uncompressed data.

https://github.com/bakercp/ofxIO/blob/9b55d4b3f5006c427947076270c92ba0dd706409/libs/ofxIO/src/Compression.cpp#L337

chaosct avatar Sep 17 '20 09:09 chaosct

Good catch. Can you submit a PR?

bakercp avatar Dec 04 '20 23:12 bakercp