New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Tue Dec 13 22:17:59 UTC 2022


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 1529864:    (FORWARD_NULL)
/bgpd/bgp_snmp_bgp4v2.c: 443 in bgp4v2PathAttrLookup()
/bgpd/bgp_snmp_bgp4v2.c: 480 in bgp4v2PathAttrLookup()


________________________________________________________________________________________________________
*** CID 1529864:    (FORWARD_NULL)
/bgpd/bgp_snmp_bgp4v2.c: 443 in bgp4v2PathAttrLookup()
437     
438     #define BGP_NLRI_ENTRY_OFFSET (afi_len + 1 + afi_len)
439     
440     	sockunion_init(&su);
441     
442     	if (exact) {
>>>     CID 1529864:    (FORWARD_NULL)
>>>     Dereferencing null pointer "v".
443     		if (*length - v->namelen != BGP_NLRI_ENTRY_OFFSET)
444     			return NULL;
445     
446     		/* Set OID offset for prefix */
447     		offset = name + v->namelen;
448     		if (family == AF_INET)
/bgpd/bgp_snmp_bgp4v2.c: 480 in bgp4v2PathAttrLookup()
474     			bgp_dest_unlock_node(dest);
475     		}
476     
477     		return NULL;
478     	}
479     
>>>     CID 1529864:    (FORWARD_NULL)
>>>     Dereferencing null pointer "v".
480     	offset = name + v->namelen;
481     	offsetlen = *length - v->namelen;
482     	len = offsetlen;
483     
484     	if (offsetlen == 0) {
485     		dest = bgp_table_top(bgp->rib[afi][SAFI_UNICAST]);


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yrtN2DGUU98GYhjd55wXsXtw53zRK70R0agdV-2Fb7c45-2BkxBoZjryQtr5SpUD80NNfE-3Dyv0l_O0IDF7c8sUs2B6kWTeWwAJZqriD5fgsfL8PAN30oQTwuKtGSm7mCuXE-2FrVFMlwTnlXWuGUPTVu1Mt45cTWOz63q-2BQKP3VEc9HoC1j1RoSxEd-2BSHmrMkRiu5dUenMRmZGNBRvAu86cRSoyzlmrVkYXxsZqUDpXVKBXnqzgw7JsUDv-2FmyB1yO49Rj0ryYQEtFDiAwYkcn7dsvr9JkfacyLcg-3D-3D




More information about the dev mailing list