diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2024-01-30 08:51:56 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2024-01-30 12:11:58 +0100 |
commit | b868b0d0ed289c0a748833af591cb457c937b923 (patch) | |
tree | 04ec7969bcef1f1fcde803b2b4c1d66332a42936 /fuzz/fuzz_filecfg_categories.c | |
parent | d2f22d1308320369363e6d7a34fbc4c5da0f5471 (diff) |
Provide a u64 wrapper for `ndpi_set_config()`add/set_config_u64
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'fuzz/fuzz_filecfg_categories.c')
-rw-r--r-- | fuzz/fuzz_filecfg_categories.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzz/fuzz_filecfg_categories.c b/fuzz/fuzz_filecfg_categories.c index 53c49a65d..00e922c2f 100644 --- a/fuzz/fuzz_filecfg_categories.c +++ b/fuzz/fuzz_filecfg_categories.c @@ -14,8 +14,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { NDPI_BITMASK_SET_ALL(all); ndpi_set_protocol_detection_bitmask2(ndpi_struct, &all); - ndpi_set_config(ndpi_struct, NULL, "log.level", "3"); - ndpi_set_config(ndpi_struct, "all", "log", "1"); + ndpi_set_config_u64(ndpi_struct, NULL, "log.level", 3); + ndpi_set_config_u64(ndpi_struct, "all", "log", 1); fd = buffer_to_file(data, size); load_categories_file_fd(ndpi_struct, fd, NULL); |