Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #69972 (Use-after-free vulnerability in sqlite3SafetyCheckSickOrOk()) --EXTEN..
Decoded Output download
--TEST--
Bug #69972 (Use-after-free vulnerability in sqlite3SafetyCheckSickOrOk())
--EXTENSIONS--
sqlite3
--FILE--
<?php
$db = new SQLite3(':memory:');
echo "SELECTING from invalid table
";
$result = $db->query("SELECT * FROM non_existent_table");
echo "Closing database
";
var_dump($db->close());
echo "Done
";
// Trigger the use-after-free
echo "Error Code: " . $db->lastErrorCode() . "
";
echo "Error Msg: " . $db->lastErrorMsg() . "
";
?>
--EXPECTF--
SELECTING from invalid table
Warning: SQLite3::query(): Unable to prepare statement: 1, no such table: non_existent_table in %sbug69972.php on line %d
Closing database
bool(true)
Done
Error Code: 0
Error Msg:
Did this file decode correctly?
Original Code
--TEST--
Bug #69972 (Use-after-free vulnerability in sqlite3SafetyCheckSickOrOk())
--EXTENSIONS--
sqlite3
--FILE--
<?php
$db = new SQLite3(':memory:');
echo "SELECTING from invalid table\n";
$result = $db->query("SELECT * FROM non_existent_table");
echo "Closing database\n";
var_dump($db->close());
echo "Done\n";
// Trigger the use-after-free
echo "Error Code: " . $db->lastErrorCode() . "\n";
echo "Error Msg: " . $db->lastErrorMsg() . "\n";
?>
--EXPECTF--
SELECTING from invalid table
Warning: SQLite3::query(): Unable to prepare statement: 1, no such table: non_existent_table in %sbug69972.php on line %d
Closing database
bool(true)
Done
Error Code: 0
Error Msg:
Function Calls
None |
Stats
MD5 | 94e105c67cbf52869177c72b0eebf3b6 |
Eval Count | 0 |
Decode Time | 109 ms |