diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2024-04-12 16:38:44 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2024-04-12 16:38:44 +0200 |
commit | 082b00ede7e107d409585228580c93f7691875c2 (patch) | |
tree | 65780ddfd265be8e898369ed95729971bc328931 /src/lib/protocols/stun.c | |
parent | a8507c330870fc5c73df5430d5198d5d1c74d787 (diff) |
Updated unit test results
* fixed invalid read
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/protocols/stun.c')
-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 e5adcf144..88be9ac98 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 - 4) { + real_len <= payload_length - off - 5) { u_int8_t protocol_family = payload[off+5]; if(protocol_family == 0x01 /* IPv4 */) { |