From e20958968c8e14c6e21274d2a669a5e2ab23f24c Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Fri, 8 Sep 2017 09:26:24 -0700 Subject: [PATCH] [libteken] Add missing initialization in the fuzz target (#821). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2602 and also resolves https://github.com/google/oss-fuzz/issues/821 --- projects/libteken/libteken_fuzzer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/libteken/libteken_fuzzer.c b/projects/libteken/libteken_fuzzer.c index 9335003b7..21aa14335 100644 --- a/projects/libteken/libteken_fuzzer.c +++ b/projects/libteken/libteken_fuzzer.c @@ -24,7 +24,7 @@ static teken_funcs_t tf = { }; int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { - teken_t t; + teken_t t = { 0 }; teken_init(&t, &tf, NULL); teken_input(&t, data, size); return 0;