[php-src] PR #20630: Fix integer underflow in exif HEIF parsing
| From: | Oblivionsage | Date: | Tue, 02 Dec 2025 17:59:56 +0000 |
| Subject: | [php-src] PR #20630: Fix integer underflow in exif HEIF parsing | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34193@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20630
Author: Oblivionsage
When pos.size is less than 2, the subtraction pos.size - 2 causes an unsigned integer underflow,
resulting in a ~4GB allocation attempt.
Add minimum size check (pos.size >= 2) to prevent the underflow.