New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Mon Nov 29 10:16:52 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 1510197:    (RETURN_LOCAL)
/bgpd/bgp_route.c: 12285 in show_ip_bgp_magic()
/bgpd/bgp_route.c: 12355 in show_ip_bgp_magic()


________________________________________________________________________________________________________
*** CID 1510197:    (RETURN_LOCAL)
/bgpd/bgp_route.c: 12285 in show_ip_bgp_magic()
12279     		/* show bgp: AFI_IP6, show ip bgp: AFI_IP */
12280     		if (community)
12281     			return bgp_show_community(vty, bgp, community,
12282     						  exact_match, afi, safi,
12283     						  show_flags);
12284     		else
>>>     CID 1510197:    (RETURN_LOCAL)
>>>     Using "output_arg", which points to an out-of-scope variable "p".
12285     			return bgp_show(vty, bgp, afi, safi, sh_type,
12286     					output_arg, show_flags,
12287     					rpki_target_state);
12288     	} else {
12289     		/* show <ip> bgp ipv4 all: AFI_IP, show <ip> bgp ipv6 all:
12290     		 * AFI_IP6 */
/bgpd/bgp_route.c: 12355 in show_ip_bgp_magic()
12349     
12350     				if (community)
12351     					bgp_show_community(vty, bgp, community,
12352     							   exact_match, afi,
12353     							   safi, show_flags);
12354     				else
>>>     CID 1510197:    (RETURN_LOCAL)
>>>     Using "output_arg", which points to an out-of-scope variable "p".
12355     					bgp_show(vty, bgp, afi, safi, sh_type,
12356     						 output_arg, show_flags,
12357     						 rpki_target_state);
12358     				if (uj)
12359     					vty_out(vty, "}\n");
12360     			}


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yrtN2DGUU98GYhjd55wXsXtw53zRK70R0agdV-2Fb7c45-2BkxBoZjryQtr5SpUD80NNfE-3DURcz_O0IDF7c8sUs2B6kWTeWwAJZqriD5fgsfL8PAN30oQTwKna8nFhajQxlvGQx6xB1y2rygq45XVhPSkExcqhaWATdqcSN4r8PUNaJdKTr9P3I0gOK6iqQ7hT2lwfjQEEziDngQrLUXflqpxef2Q3XJrkp7879BHH8e-2Fn4uMoNqQM2wAJOz8Z0ycWn2NsoOQkrvRo-2FvIO-2BQZBwpsJbuCkJPwQ-3D-3D




More information about the dev mailing list