Closed
Description
Description
The following code:
<?php
try {
sprintf('%2147483648$s, %2$s %1$s', "a", "b");
} catch (ValueError $e) {
echo $e->getMessage(), "\n";
}
sscanf($e,$e,$e);
?>
Resulted in this output:
/php-src/ext/standard/scanf.c:364:21: runtime error: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/ext/standard/scanf.c:364:21
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04