| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| From: Matthew Denton <mpdenton@chromium.org> |
| Date: Fri, 7 Dec 2018 14:49:36 -0700 |
| Subject: [PATCH 06/17] Fix dbfuzz2 for Clusterfuzz. |
| |
| This backports https://www.sqlite.org/src/info/9ad796a8822f1b7e |
| --- |
| third_party/sqlite/src/test/dbfuzz2.c | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| diff --git a/third_party/sqlite/src/test/dbfuzz2.c b/third_party/sqlite/src/test/dbfuzz2.c |
| index 0833f0386884..9e3aca25274b 100644 |
| --- a/third_party/sqlite/src/test/dbfuzz2.c |
| +++ b/third_party/sqlite/src/test/dbfuzz2.c |
| @@ -78,6 +78,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *aData, size_t nByte){ |
| printf("************** nByte=%d ***************\n", (int)nByte); |
| fflush(stdout); |
| } |
| + if( sqlite3_initialize() ) return 0; |
| rc = sqlite3_open(0, &db); |
| if( rc ) return 1; |
| a = sqlite3_malloc64(nByte+1); |
| -- |
| 2.18.0 |
| |