diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-02-21 20:32:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 20:32:50 +0100 |
commit | fbb9700086eff42ed315be3d41c97860006ae9ae (patch) | |
tree | 31b26a58ab3e161e246b2543f2e56d40bba9f338 /example/reader_util.h | |
parent | 6c1accd2bdca957b0979707b7f789ae8b5a63334 (diff) |
fuzz: purge old sessions (#1451)
At every fuzz iteration (i.e for every trace file):
* keep the same ndpi context (`ndpi_init_detection_module` is very
slow);
* reset the flow table, otherwise it grows indefinitely.
This change should fix the "out-of-memory" errors reported by oss-fuzz.
Diffstat (limited to 'example/reader_util.h')
-rw-r--r-- | example/reader_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/reader_util.h b/example/reader_util.h index ccfab2433..d96748b9a 100644 --- a/example/reader_util.h +++ b/example/reader_util.h @@ -306,7 +306,7 @@ typedef struct ndpi_workflow { /* TODO: remove wrappers parameters and use ndpi global, when their initialization will be fixed... */ -struct ndpi_workflow * ndpi_workflow_init(const struct ndpi_workflow_prefs * prefs, pcap_t * pcap_handle); +struct ndpi_workflow * ndpi_workflow_init(const struct ndpi_workflow_prefs * prefs, pcap_t * pcap_handle, int do_init_flows_root); /* workflow main free function */ |