Lines Matching refs:cx
124 FuzzCtx cx; /* Fuzzing context */ in LLVMFuzzerTestOneInput() local
126 memset(&cx, 0, sizeof(cx)); in LLVMFuzzerTestOneInput()
140 rc = sqlite3_open_v2("fuzz.db", &cx.db, in LLVMFuzzerTestOneInput()
149 cx.iLastCb = timeOfDay(); in LLVMFuzzerTestOneInput()
150 cx.iCutoffTime = cx.iLastCb + 10000; /* Now + 10 seconds */ in LLVMFuzzerTestOneInput()
152 sqlite3_progress_handler(cx.db, 10, progress_handler, (void*)&cx); in LLVMFuzzerTestOneInput()
156 sqlite3_limit(cx.db, SQLITE_LIMIT_VDBE_OP, 25000); in LLVMFuzzerTestOneInput()
164 sqlite3_limit(cx.db, SQLITE_LIMIT_LENGTH, 50000); in LLVMFuzzerTestOneInput()
167 sqlite3_db_config(cx.db, SQLITE_DBCONFIG_ENABLE_FKEY, uSelector&1, &rc); in LLVMFuzzerTestOneInput()
171 sqlite3_set_authorizer(cx.db, block_debug_pragmas, 0); in LLVMFuzzerTestOneInput()
175 cx.execCnt = uSelector + 1; in LLVMFuzzerTestOneInput()
183 sqlite3_exec(cx.db, zSql, exec_handler, (void*)&cx, &zErrMsg); in LLVMFuzzerTestOneInput()
193 sqlite3_exec(cx.db, "PRAGMA temp_store_directory=''", 0, 0, 0); in LLVMFuzzerTestOneInput()
194 sqlite3_close(cx.db); in LLVMFuzzerTestOneInput()
197 printf("Progress callback count....... %d\n", cx.nCb); in LLVMFuzzerTestOneInput()
198 printf("Max time between callbacks.... %d ms\n", (int)cx.mxInterval); in LLVMFuzzerTestOneInput()