1
0
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:
drh
2015-11-30 22:22:23 +00:00
parent 40fe8d31f5
commit 025d2f7ad8
4 changed files with 21 additions and 9 deletions

View File

@ -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