[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
This commit is contained in:
Max Moroz 2017-09-08 09:26:24 -07:00
parent 91a91ef445
commit e20958968c
1 changed files with 1 additions and 1 deletions

View File

@ -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;