google / zopfli

Zopfli Compression Algorithm is a compression library programmed in C to perform very good, but slow, deflate or zlib compression.
Apache License 2.0
3.43k stars 329 forks source link

Unused value? #149

Open QiAnXinCodeSafe opened 6 years ago

QiAnXinCodeSafe commented 6 years ago

This is 360 CodeSafe Team, we found a unused value in zopfli. See https://github.com/google/zopfli/blob/ae43a8b73827577c4b19b005b6eed81f5cf9bbac/src/zopfli/deflate.c#L692, the value assigned to detect_block_size seeme unused and it will be overwrite at https://github.com/google/zopfli/blob/master/src/zopfli/deflate.c#L729.

Since I'm unfamiliar with zopfli, please forgive me if there is anything wrong with my description.

Qihoo360 CodeSafe Team