mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 10:37:29 +00:00
pimd: Untrusted val as argument (Coverity 1465491)
Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
parent
e4a374681d
commit
18e994a043
@ -296,6 +296,10 @@ static int recv_response(int fd, int *hops, struct igmp_mtrace *mtracer)
|
|||||||
|
|
||||||
mtrace_len = ntohs(ip->ip_len) - ip->ip_hl * 4;
|
mtrace_len = ntohs(ip->ip_len) - ip->ip_hl * 4;
|
||||||
|
|
||||||
|
if ((char *)mtrace + mtrace_len
|
||||||
|
> (char *)mtrace_buf + IP_AND_MTRACE_BUF_LEN)
|
||||||
|
return -1;
|
||||||
|
|
||||||
if (mtrace_len < (int)MTRACE_HDR_SIZE)
|
if (mtrace_len < (int)MTRACE_HDR_SIZE)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user