Skip to content

Commit e81fc39

Browse files
braydonkedsiper
authored andcommitted
tests: internal: fuzzers: adjust to updated parser API for system timezone
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 9bcf925 commit e81fc39

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

tests/internal/fuzzers/engine_fuzzer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) {
143143

144144
parser = flb_parser_create("timestamp", "regex", "^(?<time>.*)$", FLB_TRUE,
145145
"%s.%L", "time", NULL, MK_FALSE, 0, FLB_FALSE,
146-
NULL, 0, NULL, ctx->config);
146+
FLB_FALSE, NULL, 0, NULL, ctx->config);
147147
filter_ffd = flb_filter(ctx, (char *) "parser", NULL);
148148
int ret;
149149
ret = flb_filter_set(ctx, filter_ffd, "Match", "test",

tests/internal/fuzzers/parse_json_fuzzer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size){
5151
}
5252

5353
fuzz_parser = flb_parser_create("fuzzer", "json", NULL, FLB_TRUE, NULL,
54-
NULL, NULL, MK_FALSE, MK_TRUE, FLB_FALSE,
54+
NULL, NULL, MK_FALSE, MK_TRUE, FLB_FALSE, FLB_FALSE,
5555
NULL, 0, NULL, fuzz_config);
5656
if (fuzz_parser) {
5757
flb_parser_do(fuzz_parser, (char*)data, size,

tests/internal/fuzzers/parse_logfmt_fuzzer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size){
3232
}
3333
fuzz_parser = flb_parser_create("fuzzer", "logfmt", NULL, FLB_TRUE,
3434
NULL, NULL, NULL, MK_FALSE,
35-
MK_TRUE, FLB_FALSE, NULL, 0, NULL,
36-
fuzz_config);
35+
MK_TRUE, FLB_FALSE, FLB_FALSE, NULL, 0,
36+
NULL, fuzz_config);
3737
if (fuzz_parser) {
3838
flb_parser_do(fuzz_parser, (char*)data, size,
3939
&out_buf, &out_size, &out_time);

tests/internal/fuzzers/parse_ltsv_fuzzer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size){
1919
fuzz_config = flb_config_init();
2020
fuzz_parser = flb_parser_create("fuzzer", "ltsv", NULL, FLB_TRUE,
2121
NULL, NULL, NULL, MK_FALSE,
22-
MK_TRUE, FLB_FALSE, NULL, 0, NULL,
23-
fuzz_config);
22+
MK_TRUE, FLB_FALSE, FLB_FALSE, NULL, 0,
23+
NULL, fuzz_config);
2424
flb_parser_do(fuzz_parser, (char*)data, size,
2525
&out_buf, &out_size, &out_time);
2626

tests/internal/fuzzers/parser_fuzzer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
154154
/* now call into the parser */
155155
fuzz_parser = flb_parser_create("fuzzer", format, pregex, FLB_TRUE,
156156
time_fmt, time_key, time_offset, time_keep, 0, FLB_FALSE,
157-
types, types_len, list, fuzz_config);
157+
FLB_FALSE, types, types_len, list, fuzz_config);
158158

159159
/* Second step is to use the random parser to parse random input */
160160
if (fuzz_parser != NULL) {

0 commit comments

Comments
 (0)