diff options
author | Bartosz DziewoĆski <matma.rex@gmail.com> | 2016-06-14 13:27:56 +0200 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2016-06-14 10:48:08 -0700 |
commit | 1ab5a1b432a4b4c62171864bd1b545616e1b07db (patch) | |
tree | 6e40cd2d0de48a7237a86a6d85dc81452ecf8495 /ext/mbstring/php_mbregex.c | |
parent | 4c968c6ddd2d3eb46838db153264edf5c7b3fefa (diff) | |
download | php-git-1ab5a1b432a4b4c62171864bd1b545616e1b07db.tar.gz |
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
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
0 files changed, 0 insertions, 0 deletions