Cyan4973 / FiniteStateEntropy

New generation entropy codecs : Finite State Entropy and Huff0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: safe decompression for U16 coder

chadaustin opened this issue · comments

The 8-bit decompressor has a safe function which guarantees it will not read outside of the compressed buffer. It would be great if the 16-bit decompressor also had that functionality.

Fully agree. That will be added.

There is a candidate FSE_decompressU16_safe() available within the "dev" branch :

b79d771

For your testing

Thanks! I'll let you know if I have problems.

Latest versions of FSE have changed interface contracts a great deal.
For example, FSE U16 decoder (available at "dev" branch : https://github.com/Cyan4973/FiniteStateEntropy/tree/dev) :

size_t FSE_decompressU16(unsigned short* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize);

But good news, new interfaces are "safe" by default. And it is verified thanks to a "fuzzer" test unit with each build.

Thanks!