MathisRosenhauer / libaec

libaec - Adaptive Entropy Coding library
https://gitlab.dkrz.de/k202009/libaec
BSD 2-Clause "Simplified" License
12 stars 9 forks source link

Overly careful fuzzer #7

Closed schwehr closed 6 years ago

schwehr commented 6 years ago

I think it might be better if the fuzzer tried both directions on all input. The point if the fuzzer is to try to break things. Why keep compressed data from the compressor?

I retract this. I now see that you need those bytes for the type check.

 Also, why the minimum size check?
MathisRosenhauer commented 6 years ago

By both directions you mean compressing and decompressing of the same input data? That could easily be done. Or should we feed the compressed data again to the compressor?

I use the first bytes to set compression parameters. That's why I need at least two bytes.

schwehr commented 6 years ago

I was thinking the same data to both compressing and decompressing.