diff options
author | Toni <matzeton@googlemail.com> | 2021-10-26 21:34:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 21:34:01 +0200 |
commit | 41765efcf8159fd8b9dcf4ceca60fbd37e6e79e8 (patch) | |
tree | 2a9f9993e91b4aa4e6f8c5f438d59fb0bc07ab93 /src/include/ndpi_main.h | |
parent | 5ccc61d1cb3fd328aa9eb22cfc7eb3c020a3761e (diff) |
Detect invalid characters in text and set a risk. Fixes #1347. (#1363)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/include/ndpi_main.h')
-rw-r--r-- | src/include/ndpi_main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ndpi_main.h b/src/include/ndpi_main.h index 35efaa0b9..66fb5ea1b 100644 --- a/src/include/ndpi_main.h +++ b/src/include/ndpi_main.h @@ -149,7 +149,7 @@ extern "C" { u_int8_t * nxt_hdr); void ndpi_set_risk(struct ndpi_detection_module_struct *ndpi_str, struct ndpi_flow_struct *flow, ndpi_risk_enum r); - int ndpi_is_printable_string(char const * const str, size_t len); + int ndpi_is_printable_string(char * const str, size_t len); #define NDPI_ENTROPY_ENCRYPTED_OR_RANDOM(entropy) (entropy > 7.0f) float ndpi_entropy(u_int8_t const * const buf, size_t len); void load_common_alpns(struct ndpi_detection_module_struct *ndpi_str); |