Cyan4973 / FiniteStateEntropy

New generation entropy codecs : Finite State Entropy and Huff0
BSD 2-Clause "Simplified" License
1.33k stars 143 forks source link

Decoding error : Destination buffer is too small #87

Closed rajputasif closed 6 years ago

rajputasif commented 6 years ago

Hello, this might be a n00b question but at the time of "make" I am getting following error ./fse -f proba.bin tmp FSE : Finite State Entropy, 64-bits demo by Yann Collet (Feb 20 2018) Compressed 1048575 bytes into 474414 bytes ==> 45.24% ./fse -df tmp result FSE : Finite State Entropy, 64-bits demo by Yann Collet (Feb 20 2018) Error 39 : Decoding error : Destination buffer is too small Makefile:111: recipe for target 'test-fse' failed make[1]: *** [test-fse] Error 39 If I try to comment out the test-fse in MakeFile, I manage to compile it without error but the encoder/decoder does not work and gives random erros (such as segmentation fault when i use -z flag and Error 39 : Decoding error : Corrupted block detected when i use huff0)

Could you kindly tell me what maybe causing the error? I am trying with dev branch.

UPDATE: I have also tried to compile it in different machine, and it is the same problem. Specs are: i7-4790, 8GB with Ubuntu 16.04

Cyan4973 commented 6 years ago

Thanks for report @rajputasif . Latest commit in dev branch should fix the issue.

rajputasif commented 6 years ago

Thank you for the quick fix, much appreciated. It is working like a charm now :+1: