udp: Out-of-bounds read, CWE-125 in udp_timer()
Not an actual issue due to how it's typically stored, but udp_act can also be used for ports 65528-65535. Reported by Coverity. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
5ab2e12f98
commit
2b1fbf4631
1 changed files with 1 additions and 1 deletions
2
udp.c
2
udp.c
|
@ -180,7 +180,7 @@ enum udp_act_type {
|
|||
};
|
||||
|
||||
/* Activity-based aging for bindings */
|
||||
static uint8_t udp_act[IP_VERSIONS][UDP_ACT_TYPE_MAX][USHRT_MAX / 8];
|
||||
static uint8_t udp_act[IP_VERSIONS][UDP_ACT_TYPE_MAX][(USHRT_MAX + 1) / 8];
|
||||
|
||||
/* Static buffers */
|
||||
|
||||
|
|
Loading…
Reference in a new issue