Skip to content

Commit e7f4da0

Browse files
DavidKorczynskiedsiper
authored andcommitted
tests: fuzzers: utils_fuzzer: extend
Extnd the `utils_fuzzer` with an additional string split operation. Signed-off-by: David Korczynski <[email protected]>
1 parent e784f9f commit e7f4da0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/internal/fuzzers/utils_fuzzer.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
7070
if (list != NULL) {
7171
flb_utils_split_free(list);
7272
}
73+
struct mk_list *list2 = flb_utils_split_quoted(null_terminated, 'A', 3);
74+
if (list2 != NULL) {
75+
flb_utils_split_free(list2);
76+
}
7377

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

0 commit comments

Comments
 (0)