aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/ssl.c
diff options
context:
space:
mode:
authortheirix <theirix@gmail.com>2016-04-12 22:08:30 +0300
committertheirix <theirix@gmail.com>2016-04-12 22:08:30 +0300
commitfb3fc0c6de201a2ab34b6f7ce4d5dfc2c54c3b5e (patch)
tree668e579f3df572a36821500bfe80a60e42a10aab /src/lib/protocols/ssl.c
parent5a37ee99764b7d262676b0ca052075c9c559c01d (diff)
Fixed buffer overflows with safe str search
1. Detected a lot of memory errors using address sanitizer and ndpi-scapy tool. 2. Added ndpi_match_prefix function that compares strings with taking care of payload packet len. Almost drop-in replacement for match_first_bytes function. 3. Replaced unsafe match_first_bytes usage with a ndpi_match_prefix and additional length checks.
Diffstat (limited to 'src/lib/protocols/ssl.c')
0 files changed, 0 insertions, 0 deletions