mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Fix a problem in xFullPathname for the unix VFS. The problem was found by
Kostya Serebryany using libFuzzer. FossilOrigin-Name: bb1e2c4df0b81327923f121dd6c002845486a314
This commit is contained in:
@ -116,4 +116,14 @@ do_execsql_test 2.5 {
|
||||
SELECT * FROM t1;
|
||||
} {1 2}
|
||||
|
||||
# Try to open a ridiculously long pathname. Bug found by
|
||||
# Kostya Serebryany using libFuzzer on 2015-11-30.
|
||||
#
|
||||
do_test 3.1 {
|
||||
db close
|
||||
catch {sqlite3 db [string repeat [string repeat x 100]/ 6]} res
|
||||
set res
|
||||
} {unable to open database file}
|
||||
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user