diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2024-04-12 17:55:17 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2024-04-12 17:55:48 +0200 |
commit | 31de94ba1209c95c856236c15fd2765aa4db8f3f (patch) | |
tree | 3c5c4ed9be15503c8a35f8b18b0e032c6a708c0d /src/lib/protocols | |
parent | c63697205be7ff027860b03d0fcddf40503b43d6 (diff) |
fix invalid read
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/protocols')
-rw-r--r-- | src/lib/protocols/stun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/stun.c b/src/lib/protocols/stun.c index 88be9ac98..7b0cce3cd 100644 --- a/src/lib/protocols/stun.c +++ b/src/lib/protocols/stun.c @@ -335,7 +335,7 @@ int is_stun(struct ndpi_detection_module_struct *ndpi_struct, switch(attribute) { case 0x0001: /* MAPPED-ADDRESS */ if(ndpi_struct->cfg.stun_mapped_address_enabled && - real_len <= payload_length - off - 5) { + real_len < payload_length - off - 5) { u_int8_t protocol_family = payload[off+5]; if(protocol_family == 0x01 /* IPv4 */) { |