Fix a possible buffer overwrite in the ".import" command. [forum:/forumpost/0c447f0548|forum post 0c447f0548].
FossilOrigin-Name: 0fd958fa9b56a8ef254127e29800ca2a267590e86edf739bd339239b25a5da6e
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user