[php-src] PR #15035: Fix GH-15034: Integer overflow on stream_notification_callback byte_max parameter with files bigger than 2GB
| From: | nielsdos | Date: | Fri, 19 Jul 2024 20:52:04 +0000 |
| Subject: | [php-src] PR #15035: Fix GH-15034: Integer overflow on stream_notification_callback byte_max parameter with files bigger than 2GB | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27377@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15035
Author: nielsdos
We were using atoi, which is only for integers. When the size does not fit in an integer this
breaks. Use ZEND_STRTOUL instead. Also make sure invalid data isn't accidentally parsed into a
file size.