ofxIO
ofxIO copied to clipboard
wrong compressedBuffer size when compressing
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
Good catch. Can you submit a PR?