lib: lodepng: remove useless test
Either the condition 'code_ll==(unsigned int)(-1)' is redundant or the
array 'LENGTHBASE[29]' is accessed at index 4294967038, which is out of
bounds.

On other hand this condition is tested within other scope:
"if(code_ll >= FIRST_LENGTH_CODE_INDEX && code_ll <= LAST_LENGTH_CODE_INDEX)"
with is already limited to (code_ll >= 257 && code_ll <= 285),
so it can't be -1 any way.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 765aac6 commit d0d3ca42feda308e07d29c50ba868e770a899814
@Oleksij Rempel Oleksij Rempel authored on 20 Nov 2018
Sascha Hauer committed on 21 Nov 2018
Showing 1 changed file
View
lib/gui/lodepng.c