Fix off-by-one truncating SQL in fuzz target
This commit is contained in:
@@ -22,7 +22,7 @@ func FuzzOpenExec(data []byte) int {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
defer db.Close()
|
defer db.Close()
|
||||||
_, err = db.Exec(string(data[:sep-1]))
|
_, err = db.Exec(string(data[:sep]))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user