diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-12-20 22:50:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-20 22:50:18 +0100 |
commit | 22821241e2abff6d33f192992b956a119e516caf (patch) | |
tree | f853561b4e85fb9f894feb6d4cace6c40cbaea76 /src/lib/ndpi_utils.c | |
parent | fa67166fcc71f85e5e543eab73885de8a8f6f149 (diff) |
Fix some errors found by oss-fuzz (#1834)
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index b0922acd7..c7b2ff45a 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -2352,7 +2352,7 @@ static u_int8_t ndpi_check_hostname_risk_exception(struct ndpi_detection_module_ if(automa->ac_automa) { AC_TEXT_t ac_input_text; - AC_REP_t match; + AC_REP_t match = {0}; ac_input_text.astring = hostname, ac_input_text.length = strlen(hostname); ac_input_text.option = 0; @@ -2657,7 +2657,7 @@ u_int8_t is_a_common_alpn(struct ndpi_detection_module_struct *ndpi_str, if(automa->ac_automa) { AC_TEXT_t ac_input_text; - AC_REP_t match; + AC_REP_t match = {0}; ac_input_text.astring = (char*)alpn_to_check, ac_input_text.length = alpn_to_check_len; ac_input_text.option = 0; |