From 33787340a4efba17e7eb280e0cfe385b33285ea0 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sun, 6 Aug 2017 10:35:23 -0500 Subject: [PATCH] Fix typo (1 should be 2) in png_handle_eXIf --- pngrutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pngrutil.c b/pngrutil.c index 68b955fbf..d61736518 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -2066,7 +2066,7 @@ png_handle_eXIf(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length) png_byte buf[1]; png_crc_read(png_ptr, buf, 1); info_ptr->eXIf_buf[i] = buf[0]; - if (i == 2 && buf[0] != 'M' && buf[0] != 'I' + if (i == 1 && buf[0] != 'M' && buf[0] != 'I' && info_ptr->eXIf_buf[0] != buf[0]) { png_crc_finish(png_ptr, length);