-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Assignees
@YuanchengJiang
Description
Description
The following code:
<?php $pdo = new PDO("sqlite:".__DIR__."/foo.db"); var_dump($pdo->setAttribute(PDO::NULL_TO_STRING, PHP_INT_MIN));
Resulted in this output:
/home/phpfuzz/WorkSpace/flowfusion/php-src/ext/pdo_sqlite/sqlite_driver.c:304:37: runtime error: signed integer overflow: -9223372036854775808 * 1000 cannot be represented in type 'long'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/phpfuzz/WorkSpace/flowfusion/php-src/ext/pdo_sqlite/sqlite_driver.c:304
PHP Version
nightly
Operating System
No response