1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix the ossfuzz.c test module so that it does not segfault after a

"PRAGMA empty_result_callbacks=1;".  Add the ossshell.c program for
simple command-line testing of ossfuzz.c.

FossilOrigin-Name: 6f2d43eca68175ed28abae3afa792095af906af2
This commit is contained in:
drh
2016-11-14 17:25:57 +00:00
parent 2adb878b1f
commit 55377b4717
6 changed files with 87 additions and 16 deletions

View File

@ -18,7 +18,9 @@ static int progress_handler(void *pReturn) {
*/
static int exec_handler(void *pCnt, int argc, char **argv, char **namev){
int i;
for(i=0; i<argc; i++) sqlite3_free(sqlite3_mprintf("%s", argv[i]));
if( argv ){
for(i=0; i<argc; i++) sqlite3_free(sqlite3_mprintf("%s", argv[i]));
}
return ((*(int*)pCnt)--)<=0;
}