mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
6a0da6dc2e
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. Closes GH-20630.