Skip to content

Commit

Permalink
tests: fuzzers: utils_fuzzer: extend
Browse files Browse the repository at this point in the history
Extnd the `utils_fuzzer` with an additional string split operation.

Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski authored and edsiper committed Aug 8, 2023
1 parent e784f9f commit e7f4da0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/internal/fuzzers/utils_fuzzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
if (list != NULL) {
flb_utils_split_free(list);
}
struct mk_list *list2 = flb_utils_split_quoted(null_terminated, 'A', 3);
if (list2 != NULL) {
flb_utils_split_free(list2);
}

if (flb_utils_url_split(null_terminated, &prot, &host, &port, &uri) == 0) {
flb_free(prot);
Expand Down

0 comments on commit e7f4da0

Please sign in to comment.