New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Wed Apr 14 13:38:48 UTC 2021


Hi,

Please find the latest report on new defect(s) introduced to freerangerouting/frr found with Coverity Scan.

1 new defect(s) introduced to freerangerouting/frr found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 1503803:  Error handling issues  (NEGATIVE_RETURNS)
/nhrpd/linux.c: 75 in os_sendmsg()


________________________________________________________________________________________________________
*** CID 1503803:  Error handling issues  (NEGATIVE_RETURNS)
/nhrpd/linux.c: 75 in os_sendmsg()
69     	lladdr.sll_family = AF_PACKET;
70     	lladdr.sll_protocol = htons(protocol);
71     	lladdr.sll_ifindex = ifindex;
72     	lladdr.sll_halen = addrlen;
73     	memcpy(lladdr.sll_addr, addr, addrlen);
74     
>>>     CID 1503803:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "os_socket()" is passed to a parameter that cannot be negative.
75     	status = sendmsg(os_socket(), &msg, 0);
76     	if (status < 0)
77     		return -errno;
78     
79     	return status;
80     }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yrtN2DGUU98GYhjd55wXsXtw53zRK70R0agdV-2Fb7c45-2BkxBoZjryQtr5SpUD80NNfE-3D2Lrm_O0IDF7c8sUs2B6kWTeWwAJZqriD5fgsfL8PAN30oQTwCapaJgiCZcmrhe-2BWxqXrA4nMjAozy27r-2FwfNqj3FH-2B3amaluomvDT-2FfzxF-2B2zbue5JnJwZtjqPRJ7-2F-2B0RIDNxILdhRD3AsCY-2Ff8NAtn3tbYhl5r5JNYdZ-2FG1EaLPBxN-2B-2BW2JvjRhvKcS2bokIqkx-2FnJiKx8-2FgFkRJX55oAiaE0A-3D-3D




More information about the dev mailing list