cvs: php-src(PHP_5_0) /ext/exif exif.c
| From: | Ilia Alshanetsky | Date: | Wed, 10 Nov 2004 01:44:28 +0000 |
| Subject: | cvs: php-src(PHP_5_0) /ext/exif exif.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-29156@lists.php.net to get a copy of this message | ||
iliaa Tue Nov 9 20:44:28 2004 EDT
Modified files: (Branch: PHP_5_0)
/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.162.2.1&r2=1.162.2.2&ty=u
Index: php-src/ext/exif/exif.c
diff -u php-src/ext/exif/exif.c:1.162.2.1 php-src/ext/exif/exif.c:1.162.2.2
--- php-src/ext/exif/exif.c:1.162.2.1 Thu Nov 4 15:15:38 2004
+++ php-src/ext/exif/exif.c Tue Nov 9 20:44:28 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: exif.c,v 1.162.2.1 2004/11/04 20:15:38 helly Exp $ */
+/* $Id: exif.c,v 1.162.2.2 2004/11/10 01:44:28 iliaa Exp $ */
/* ToDos
*
@@ -111,7 +111,7 @@
};
/* }}} */
-#define EXIF_VERSION "1.4 $Id: exif.c,v 1.162.2.1 2004/11/04 20:15:38 helly Exp $"
+#define EXIF_VERSION "1.4 $Id: exif.c,v 1.162.2.2 2004/11/10 01:44:28 iliaa Exp $"
/* {{{ PHP_MINFO_FUNCTION
*/
@@ -3776,7 +3776,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;
}