[php-src] PR #22486: Fix GH-11020: spurious "Illegal IFD size" warning in exif_read_data()
| From: | eyupcanakman | Date: | Sat, 27 Jun 2026 10:46:32 +0000 |
| Subject: | [php-src] PR #22486: Fix GH-11020: spurious "Illegal IFD size" warning in exif_read_data() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36692@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22486
Author: eyupcanakman
exif_read_data() emits a spurious "Illegal IFD size" warning on valid JPEGs
whose EXIF block ends right after the IFD entries, with no next-IFD offset following them. The
bounds check added for bug #72094 treats that absent offset as an error. A missing offset means
there is no further IFD, so the fix returns the parsed tags instead of warning. cmb69 diagnosed this
on the issue. The out-of-bounds read the check guards stays intact, because those bytes are never
read.
Adds a test, and confirms bug72094.phpt still rejects the malformed inputs.