mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-11-30 20:19:31 +00:00
```
==253==ERROR: AddressSanitizer: use-after-poison on address 0x7a0db66b5828 at pc 0x5893db2adbf9 bp 0x7ffed45d3fc0 sp 0x7ffed45d3fb8
READ of size 2 at 0x7a0db66b5828 thread T0
#0 0x5893db2adbf8 in ndpi_get_u_int16_t ndpi/src/include/ndpi_define.h:145:3
#1 0x5893db2adbf8 in ndpi_int_l2tp_dissect_attrs ndpi/src/lib/protocols/l2tp.c:53:36
#2 0x5893db2adbf8 in ndpi_search_l2tp ndpi/src/lib/protocols/l2tp.c:107:5
#3 0x5893db1d2c57 in check_ndpi_detection_func ndpi/src/lib/ndpi_main.c:9277:6
```
Found by oss-fuzz
See: https://issues.oss-fuzz.com/issues/580370355?pli=1
While at it, fix an off-by-one in the AVP loop bounds checks, which
skipped an attribute ending exactly at the end of the packet.
|
||
|---|---|---|
| .. | ||
| inc_generated | ||
| plugins | ||
| protocols | ||
| third_party | ||
| Makefile.in | ||
| ndpi_analyze.c | ||
| ndpi_binary_bitmap.c | ||
| ndpi_bitmap.c | ||
| ndpi_bitmap64_fuse.c | ||
| ndpi_cache.c | ||
| ndpi_classify.c | ||
| ndpi_community_id.c | ||
| ndpi_config.c | ||
| ndpi_content_match.c.inc | ||
| ndpi_dga_match.c.inc | ||
| ndpi_domain_classify.c | ||
| ndpi_domains.c | ||
| ndpi_filter.c | ||
| ndpi_fingerprint.c | ||
| ndpi_geoip.c | ||
| ndpi_hash.c | ||
| ndpi_main.c | ||
| ndpi_memory.c | ||
| ndpi_os_fingerprint.c.inc | ||
| ndpi_plugin.c | ||
| ndpi_serializer.c | ||
| ndpi_utils.c | ||