diff options
| author | Marcus Boerger <helly@php.net> | 2004-11-04 20:13:30 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2004-11-04 20:13:30 +0000 |
| commit | 28ced40c639e83024d892a23476a10cbad06bd95 (patch) | |
| tree | f0bb7bdfc3dddb9acb512504cf54ebdfa40f6e27 /ext/exif | |
| parent | 75c2a2e527ff6a3ee925e83ee7f93d1e7c31478d (diff) | |
| download | php-git-28ced40c639e83024d892a23476a10cbad06bd95.tar.gz | |
Bug #30627
Diffstat (limited to 'ext/exif')
| -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 80e5ec2fda..aced27d6c7 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -2734,7 +2734,7 @@ static int exif_process_IFD_TAG(image_info_type *ImageInfo, char *dir_entry, cha // JPEG does not use absolute pointers instead its pointers are relative to the start // of the TIFF header in APP1 section. */ - if (offset_val+byte_count>ImageInfo->FileSize || (ImageInfo->FileType!=IMAGE_FILETYPE_TIFF_II && ImageInfo->FileType!=IMAGE_FILETYPE_TIFF_MM)) { + if (offset_val+byte_count>ImageInfo->FileSize || (ImageInfo->FileType!=IMAGE_FILETYPE_TIFF_II && ImageInfo->FileType!=IMAGE_FILETYPE_TIFF_MM && ImageInfo->FileType!=IMAGE_FILETYPE_JPEG)) { if (value_ptr < dir_entry) { /* we can read this if offset_val > 0 */ /* some files have their values in other parts of the file */ |
