mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 05:04:18 +00:00
Merge pull request #2457 from pacovn/Coverity_1465491_Untrusted_value_as_argument
pimd: Untrusted val as argument (Coverity 1465491)
This commit is contained in:
commit
36de1d53b8
@ -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;
|
||||
|
||||
if ((char *)mtrace + mtrace_len
|
||||
> (char *)mtrace_buf + IP_AND_MTRACE_BUF_LEN)
|
||||
return -1;
|
||||
|
||||
if (mtrace_len < (int)MTRACE_HDR_SIZE)
|
||||
return -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user