aboutsummaryrefslogtreecommitdiff
path: root/test/ossfuzz.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-01-24 01:02:23 +0000
committerdrh <drh@noemail.net>2018-01-24 01:02:23 +0000
commit5347f3c111edac51f199191b1be942327fed08b7 (patch)
tree2f714814d7704886d144997123a193d640b5636f /test/ossfuzz.c
parent588049cc997bbd6ea5b62b4ac336916517348a01 (diff)
downloadsqlite-5347f3c111edac51f199191b1be942327fed08b7.tar.gz
sqlite-5347f3c111edac51f199191b1be942327fed08b7.zip
Invoke the sqlite3_complete() interface from the fuzzer.
FossilOrigin-Name: 332bf84625d2034c9e1c029aa8243aa34088217e52e34e1f5472217743a31af3
Diffstat (limited to 'test/ossfuzz.c')
-rw-r--r--test/ossfuzz.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ossfuzz.c b/test/ossfuzz.c
index 7b28cf6a7..50410e459 100644
--- a/test/ossfuzz.c
+++ b/test/ossfuzz.c
@@ -160,6 +160,7 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
/* Run the SQL. The sqlite_exec() interface expects a zero-terminated
** string, so make a copy. */
zSql = sqlite3_mprintf("%.*s", (int)size, data);
+ sqlite3_complete(zSql);
sqlite3_exec(cx.db, zSql, exec_handler, (void*)&execCnt, &zErrMsg);
/* Show any errors */