Fix a possible buffer overwrite in the ".import" command. [forum:/forumpost/0c447f0548|forum post 0c447f0548].

FossilOrigin-Name: 0fd958fa9b56a8ef254127e29800ca2a267590e86edf739bd339239b25a5da6e
This commit is contained in:
dan
2024-05-27 11:35:05 +00:00
parent ee8f926027
commit 09f87094bd
4 changed files with 30 additions and 13 deletions
+12
View File
@@ -585,4 +585,16 @@ do_test shell5-7.1 {
SELECT * FROM t1;}
} {0 aaa|bbb|aaabbb}
#-------------------------------------------------------------------------
do_test shell5-8.1 {
set out [open shell5.csv w]
fconfigure $out -translation lf
puts $out x
close $out
catchcmd :memory: {.import --csv shell5.csv '""""""""""""""""""""""""""""""""""""""""""""""'}
} {0 {}}
finish_test