Commit 02bad34a authored by Jacob Boerema's avatar Jacob Boerema

Issue #5735: incorrect condition because of missing parenthesis.

Also taking the opportunity to change the minimum size since I
apparently counted it wrong. The size always seems to be 46
starting from psp file-version 4 up to and including the current
version 13.
parent 37242c04
Pipeline #219863 passed with stages
in 42 minutes and 7 seconds
......@@ -1001,7 +1001,7 @@ read_general_image_attribute_block (FILE *f,
chunk_start = ftell (f);
if ((psp_ver_major >= 4
&& (fread (&init_len, 4, 1, f) < 1 || (init_len = GUINT32_FROM_LE (init_len) < 42)))
&& (fread (&init_len, 4, 1, f) < 1 || ((init_len = GUINT32_FROM_LE (init_len)) < 46)))
|| fread (&ia->width, 4, 1, f) < 1
|| fread (&ia->height, 4, 1, f) < 1
|| fread (&res, 8, 1, f) < 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment