[Core] switch_stun.c: Coverity 1468480: Out-of-bounds access (OVERRUN)

This commit is contained in:
Andrey Volk
2024-06-06 12:47:07 +03:00
parent 05e58fa909
commit 9f7c64b6fa
2 changed files with 12 additions and 1 deletions
+7
View File
@@ -141,6 +141,13 @@ typedef struct {
uint32_t address;
} switch_stun_ip_t;
typedef struct {
uint8_t wasted;
uint8_t family;
uint16_t port;
uint8_t address[16];
} switch_stun_ipv6_t;
#if SWITCH_BYTE_ORDER == __BIG_ENDIAN
typedef struct {