Improved missing usage of nDPIs malloc wrapper. Fixes #1978. (#1979)

* added CI check

Signed-off-by: lns <matzeton@googlemail.com>
This commit is contained in:
Toni
2023-05-20 16:18:52 +02:00
committed by GitHub
parent 8f718c9051
commit 5e8f93c2d1
8 changed files with 57 additions and 9 deletions
+3 -3
View File
@@ -1738,7 +1738,7 @@ static void ndpi_compile_rce_regex() {
#endif
}
free((void *)pcreErrorStr);
ndpi_free((void *)pcreErrorStr);
}
static int ndpi_is_rce_injection(char* query) {
@@ -2253,7 +2253,7 @@ void ndpi_hash_free(ndpi_str_hash **h, void (*cleanup_func)(ndpi_str_hash *h))
{
cleanup_func((ndpi_str_hash *)current);
}
free(current);
ndpi_free(current);
}
*h = NULL;
@@ -2415,7 +2415,7 @@ static void ndpi_handle_risk_exceptions(struct ndpi_detection_module_struct *ndp
*/
for(i=0; i<flow->num_risk_infos; i++) {
if(flow->risk_infos[i].info != NULL) {
free(flow->risk_infos[i].info);
ndpi_free(flow->risk_infos[i].info);
flow->risk_infos[i].info = NULL;
}
}