1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Fix an assert() in sqlite3BtreeLast() that needs an "|| CORRUPT_DB" term.

Dbsqlfuzz case b92b72e4de80b5140c30ab71372ca719b8feb618.

FossilOrigin-Name: ad718388a1f6e25ceba43a40160fac0d9d9d3f26888e98d7b9db478c0b1780be
This commit is contained in:
drh
2021-04-04 23:56:15 +00:00
parent b0e62b0a21
commit 319deefdb9
6 changed files with 68 additions and 12 deletions

View File

@ -936,7 +936,12 @@ int runCombinedDbSqlInput(const uint8_t *aData, size_t nByte, int iTimeout){
sqlite3_set_authorizer(cx.db, block_troublesome_sql, 0);
/* Consistent PRNG seed */
#ifdef SQLITE_TESTCTRL_PRNG_SEED
sqlite3_table_column_metadata(cx.db, 0, "x", 0, 0, 0, 0, 0, 0);
sqlite3_test_control(SQLITE_TESTCTRL_PRNG_SEED, 1, cx.db);
#else
sqlite3_randomness(0,0);
#endif
zSql = sqlite3_malloc( nSql + 1 );
if( zSql==0 ){
@ -980,6 +985,8 @@ testrun_finished:
sqlite3_memory_used(), nAlloc);
exit(1);
}
sqlite3_hard_heap_limit64(0);
sqlite3_soft_heap_limit64(0);
return 0;
}