diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2003-04-08 00:19:29 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2003-04-08 00:19:29 +0000 |
| commit | e49440bb7314e41761e669a8857456dfb323b679 (patch) | |
| tree | c58adf091d12a11bdb50f88c3ac67d71d189e443 | |
| parent | 4f45925b238beffc9e7b305af98889739d05fda6 (diff) | |
| download | php-git-e49440bb7314e41761e669a8857456dfb323b679.tar.gz | |
MFH
| -rw-r--r-- | ext/exif/exif.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 752e3da156..9dcc4da3fc 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -1540,6 +1540,10 @@ static void exif_iif_add_value(image_info_type *image_info, int section_index, c image_info_data *info_data; image_info_data *list; + if (length >= LONG_MAX) { + return; + } + list = erealloc(image_info->info_list[section_index].list, (image_info->info_list[section_index].count+1)*sizeof(image_info_data)); if (!list) { EXIF_ERRLOG_EALLOC |
