cvs: php-src(PHP_4_3) /ext/exif exif.c
| From: | Ilia Alshanetsky | Date: | Wed, 10 Nov 2004 01:44:59 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/exif exif.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-29157@lists.php.net to get a copy of this message | ||
iliaa Tue Nov 9 20:44:59 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/exif exif.c
Log:
MFH: Fixed possible overflow.
http://cvs.php.net/diff.php/php-src/ext/exif/exif.c?r1=1.118.2.28&r2=1.118.2.29&ty=u
Index: php-src/ext/exif/exif.c
diff -u php-src/ext/exif/exif.c:1.118.2.28 php-src/ext/exif/exif.c:1.118.2.29
--- php-src/ext/exif/exif.c:1.118.2.28 Thu Nov 4 15:17:24 2004
+++ php-src/ext/exif/exif.c Tue Nov 9 20:44:58 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: exif.c,v 1.118.2.28 2004/11/04 20:17:24 helly Exp $ */
+/* $Id: exif.c,v 1.118.2.29 2004/11/10 01:44:58 iliaa Exp $ */
/* ToDos
*
@@ -99,7 +99,7 @@
};
/* }}} */
-#define EXIF_VERSION "1.4 $Id: exif.c,v 1.118.2.28 2004/11/04 20:17:24 helly Exp $"
+#define EXIF_VERSION "1.4 $Id: exif.c,v 1.118.2.29 2004/11/10 01:44:58 iliaa Exp $"
/* {{{ PHP_MINFO_FUNCTION
*/
@@ -3750,7 +3750,7 @@
}
}
for (i=0; i<SECTION_COUNT; i++) {
- sprintf(tmp, ",%s,", exif_get_sectionname(i));
+ snprintf(tmp, sizeof(tmp), ",%s,", exif_get_sectionname(i));
if (strstr(sections_str, tmp)) {
sections_needed |= 1<<i;
}