mirror of https://github.com/google/oss-fuzz.git
[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:
parent
91a91ef445
commit
e20958968c
|
@ -24,7 +24,7 @@ static teken_funcs_t tf = {
|
||||||
};
|
};
|
||||||
|
|
||||||
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||||
teken_t t;
|
teken_t t = { 0 };
|
||||||
teken_init(&t, &tf, NULL);
|
teken_init(&t, &tf, NULL);
|
||||||
teken_input(&t, data, size);
|
teken_input(&t, data, size);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue