/ Check-in [332bf846]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Invoke the sqlite3_complete() interface from the fuzzer.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 332bf84625d2034c9e1c029aa8243aa34088217e52e34e1f5472217743a31af3
User & Date: drh 2018-01-24 01:02:23
Context
2018-01-24
01:58
Make the shell functional even if compiled with SQLITE_OMIT_COMPLETE. Omit the sqlite3_complete() call from the fuzzing interface if it is compiled with SQLITE_OMIT_COMPLETE. check-in: c3e816cc user: drh tags: trunk
01:02
Invoke the sqlite3_complete() interface from the fuzzer. check-in: 332bf846 user: drh tags: trunk
2018-01-23
20:22
Increase the version number to 3.23.0 for the next development cycle. check-in: b58b60b2 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/ossfuzz.c.

   156    156     /* Remaining bits of the selector determine a limit on the number of
   157    157     ** output rows */
   158    158     execCnt = uSelector + 1;
   159    159   
   160    160     /* Run the SQL.  The sqlite_exec() interface expects a zero-terminated
   161    161     ** string, so make a copy. */
   162    162     zSql = sqlite3_mprintf("%.*s", (int)size, data);
          163  +  sqlite3_complete(zSql);
   163    164     sqlite3_exec(cx.db, zSql, exec_handler, (void*)&execCnt, &zErrMsg);
   164    165   
   165    166     /* Show any errors */
   166    167     if( (mDebug & FUZZ_SHOW_ERRORS)!=0 && zErrMsg ){
   167    168       printf("Error: %s\n", zErrMsg);
   168    169     }
   169    170