Open inikep opened 8 years ago
Large buffer sizes aren't supported very well yet; I wouldn't really suggest anything over 2^19 (524288) bytes. This is definitely a big problem and I am planning to address it.
Thanks for answer. I think that for now you should return an error when compressed data is bigger than 2^19. Corrupted data is a huge problem in comparison to a compression error.
I've added xpack to lzbench v1.2: https://github.com/inikep/lzbench/commits/v1.2
When I'm doing tests with the following file: https://docs.google.com/uc?id=0BwX7dtyRLxThRzBwT0xkUy1TMFE&export=download I have decompression error:
I think that the problem can be that I'm trying to compress/decompress whole file with a single call to xpack_compress()/xpack_decompress().
xpack return code is DECOMPRESS_BAD_DATA