]> granicus.if.org Git - php/commitdiff
MFH: Fixed possible overflow.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 10 Nov 2004 01:44:58 +0000 (01:44 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 10 Nov 2004 01:44:58 +0000 (01:44 +0000)
ext/exif/exif.c

index 05bc1cb90d03fc21ba7951b30711c53b23fc3012..ab772d941876378c44d02a9fec3befa1975d1a67 100644 (file)
@@ -3750,7 +3750,7 @@ PHP_FUNCTION(exif_read_data)
                        }
                }
                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;
                        }