php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #68547
Patch exif.c_line_2827 revision 2014-12-05 08:37 UTC by sjh21a at gmail dot com

Patch exif.c_line_2827 for EXIF related Bug #68547

Patch version 2014-12-05 08:37 UTC

Return to Bug #68547 | Download this patch
Patch Revisions:

Developer: sjh21a@gmail.com

--- exif.c.orig	2014-12-04 15:31:24.063689097 -0800
+++ exif.c	2014-12-04 15:31:53.423690117 -0800
@@ -2824,7 +2824,7 @@
 		/*return TRUE;*/
 	}
 
-	if (components < 0) {
+	if (components <= 0) {
 		exif_error_docref("exif_read_data#error_ifd" EXIFERR_CC, ImageInfo, E_WARNING, "Process tag(x%04X=%s): Illegal components(%ld)", tag, exif_get_tagname(tag, tagname, -12, tag_table TSRMLS_CC), components);
 		return FALSE;
 	}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC