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

Fix a problem that could cause a crash if a blob handle were closed after the associated database handle was closed using sqlite3_close_v2().

FossilOrigin-Name: 52f463d29407fad691c42b13462880e7605603c9be9f480d18e953a0ef78149a
This commit is contained in:
dan
2019-07-15 13:58:28 +00:00
parent 08e2e8e680
commit e464802d49
4 changed files with 18 additions and 10 deletions

View File

@ -79,4 +79,11 @@ do_test 1.4.4 {
sqlite3_finalize $STMT
} {SQLITE_OK}
do_test 1.5 {
set DB [sqlite3_open test.db]
sqlite3_blob_open $DB main t1 x 2 0 BLOB
sqlite3_close_v2 $DB
sqlite3_blob_close $BLOB
} {}
finish_test