diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-11-10 01:43:04 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-11-10 01:43:04 +0000 |
commit | 8992aa0bcfb810478d7fea260eeff41848e33dd8 (patch) | |
tree | 35f791f14afd437a1c378db2579a366c9b624405 | |
parent | 44468214b53f36918a469b26ee1a4269712100c1 (diff) | |
download | php-git-8992aa0bcfb810478d7fea260eeff41848e33dd8.tar.gz |
Fixed possible overflow.
-rw-r--r-- | ext/exif/exif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c index aced27d6c7..034f1fb635 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -3776,7 +3776,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; } |