Skip to content

Commit

Permalink
tests: internal: fuzzers: set malloc_mod in gelf fuzzer
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <david@adalogics.com>
  • Loading branch information
DavidKorczynski authored and edsiper committed Jan 20, 2023
1 parent 3cd2f20 commit 16eae10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/internal/fuzzers/msgpack_to_gelf_fuzzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include <fluent-bit/flb_pack.h>

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size){
/* Set fuzzer-malloc chance of failure */
flb_malloc_mod = 25000;
flb_malloc_p = 0;
if (size != 512)
return 0;
Expand Down

0 comments on commit 16eae10

Please sign in to comment.