Add a check to pngimage.c

Check the result of png_get_IHDR inside the compare_read function.

Contributed-by: Kleber TarcĂ­sio
Signed-off-by: Cosmin Truta
1 file changed