aboutsummaryrefslogtreecommitdiff
path: root/projects/libteken
diff options
context:
space:
mode:
authorMax Moroz <mmoroz@chromium.org>2017-09-08 09:26:24 -0700
committerMax Moroz <mmoroz@chromium.org>2017-09-08 09:26:26 -0700
commite20958968c8e14c6e21274d2a669a5e2ab23f24c (patch)
tree24a70041696aca802fd45023d36a1abe7f57eb60 /projects/libteken
parent91a91ef4458731822e2ed87befa7bbfdcebb28f4 (diff)
downloadoss-fuzz-e20958968c8e14c6e21274d2a669a5e2ab23f24c.tar.gz
[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
Diffstat (limited to 'projects/libteken')
-rw-r--r--projects/libteken/libteken_fuzzer.c2
1 files changed, 1 insertions, 1 deletions
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;