php-src/ext/exif
Bartosz Dziewoński 1ab5a1b432 Fix #50845: exif_process_IFD_TAG: Use the right offset if reading from stream
When the location of the data is outside of the range we have
preloaded (for example, if it's before the beginning of the IFD
structure), we have to read it from the stream into a separate buffer.
The offset calculations in this case were incorrect, resulting in
bogus values being read for the affected fields (sometimes parts of
other fields, sometimes binary data).

The included test image, sourced from [1], is in the public domain.

[1] https://commons.wikimedia.org/wiki/File:U.S._Marines_Prepare_to_board_an_MV-22_Osprey_160509-M-AF202-041.jpg
2016-06-14 10:48:08 -07:00
..
tests Fix #50845: exif_process_IFD_TAG: Use the right offset if reading from stream 2016-06-14 10:48:08 -07:00
config.m4 - Align configure --help messages 2002-09-19 20:14:35 +00:00
config.w32 - do not enable an ext when a lib/header fails 2008-06-23 18:40:29 +00:00
CREDITS
example.php -change IsColor from non zero to 1 2002-03-08 11:33:46 +00:00
exif.c Fix #50845: exif_process_IFD_TAG: Use the right offset if reading from stream 2016-06-14 10:48:08 -07:00
exif.dsp revert change #298288: Remove old dsp/dsw/makefile files 2010-04-28 14:41:51 +00:00
package.xml Typo 2007-03-14 09:58:14 +00:00
php_exif.h Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
test.php -Updated test.txt and provided test.php 2002-03-04 06:26:07 +00:00
test.txt -usability 2002-03-12 16:43:29 +00:00