diff options
Diffstat (limited to 'fuzz/fuzz_gcrypt_light.cpp')
-rw-r--r-- | fuzz/fuzz_gcrypt_light.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzz/fuzz_gcrypt_light.cpp b/fuzz/fuzz_gcrypt_light.cpp index 043a90d0d..0186c93a2 100644 --- a/fuzz/fuzz_gcrypt_light.cpp +++ b/fuzz/fuzz_gcrypt_light.cpp @@ -125,6 +125,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { gpg_strerror_r(rc, buf_err, sizeof(buf_err)); + gpg_strerror_r(static_cast<gcry_error_t>(fuzzed_data.ConsumeIntegral<u_int16_t>()), buf_err, sizeof(buf_err)); + ndpi_free(enc_out); return 0; |