From cc4461f4246f9e8eca9be5796aa53ec785d1a4f0 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sun, 20 Aug 2023 15:18:19 +0200 Subject: fuzz: extend coverage (#2073) --- src/include/ndpi_api.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include/ndpi_api.h') diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index 0a2322ffe..3d99a6c03 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -756,11 +756,14 @@ extern "C" { * @par ndpi_mod = the detection module * @par path = the path of the file * @return 0 if the file is loaded correctly; - * -1 else + * -1 generic error + * -2 memory allocation error * */ int ndpi_load_protocols_file(struct ndpi_detection_module_struct *ndpi_mod, const char* path); + int ndpi_load_protocols_file2(struct ndpi_detection_module_struct *ndpi_mod, + FILE *fd); /** * Add an IP-address based risk mask -- cgit v1.2.3