New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Mon Nov 16 15:52:05 UTC 2020


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.
3 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

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


** CID 1499551:  Null pointer dereferences  (REVERSE_INULL)
/bgpd/bgp_flowspec_vty.c: 304 in route_vty_out_flowspec()


________________________________________________________________________________________________________
*** CID 1499551:  Null pointer dereferences  (REVERSE_INULL)
/bgpd/bgp_flowspec_vty.c: 304 in route_vty_out_flowspec()
298     	else if (json_paths && display == NLRI_STRING_FORMAT_JSON)
299     		json_object_array_add(json_paths, json_nlri_path);
300     	if (!path)
301     		return;
302     
303     	ipv6_ecomm = bgp_attr_get_ipv6_ecommunity(path->attr);
>>>     CID 1499551:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "path->attr" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
304     	if (path->attr && (path->attr->ecommunity || ipv6_ecomm)) {
305     		/* Print attribute */
306     		attr = path->attr;
307     		if (attr->ecommunity)
308     			s1 = ecommunity_ecom2str(attr->ecommunity,
309     						ECOMMUNITY_FORMAT_ROUTE_MAP, 0);


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yrtN2DGUU98GYhjd55wXsXtw53zRK70R0agdV-2Fb7c45-2BkxBoZjryQtr5SpUD80NNfE-3DCkDV_O0IDF7c8sUs2B6kWTeWwAJZqriD5fgsfL8PAN30oQTw9ffS-2FHwWJ3Z79Zc9K-2FODy-2BoPUck7TkK8csfFgyIFlkVBThzLcHFVWfmrD4nB2rT-2FvEowrMyEbX7k2vnXudol8alKjRoNJJvtdCxI7kZU97EaU8OpAKofO5ikCQiJ2NCLosBGZPC6LbSC0mqYlbflata-2BkVJQUHjcqeEwo8kh1-2BqzY6Vy6q1VtVZxLMon12Gs-3D




More information about the dev mailing list