New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Fri Oct 9 02:04:28 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.
5 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 1497769:  Control flow issues  (DEADCODE)
/bgpd/bgp_vty.c: 1229 in router_bgp()


________________________________________________________________________________________________________
*** CID 1497769:  Control flow issues  (DEADCODE)
/bgpd/bgp_vty.c: 1229 in router_bgp()
1223     			return CMD_WARNING_CONFIG_FAILED;
1224     		}
1225     		/* unset the auto created flag as the user config is now present
1226     		 */
1227     		UNSET_FLAG(bgp->vrf_flags, BGP_VRF_AUTO);
1228     
>>>     CID 1497769:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach the expression "name" inside this statement: "snprintf(base_xpath, 1024UL...".
1229     		snprintf(base_xpath, sizeof(base_xpath), FRR_BGP_GLOBAL_XPATH,
1230     			 "frr-bgp:bgp", "bgp", name ? name : VRF_DEFAULT_NAME);
1231     
1232     		nb_cli_enqueue_change(vty, ".", NB_OP_CREATE, NULL);
1233     		snprintf(as_str, 12, "%d", bgp->as);
1234     		nb_cli_enqueue_change(vty, "./global/local-as", NB_OP_MODIFY,


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yrtN2DGUU98GYhjd55wXsXtw53zRK70R0agdV-2Fb7c45-2BkxBoZjryQtr5SpUD80NNfE-3DtXdV_O0IDF7c8sUs2B6kWTeWwAJZqriD5fgsfL8PAN30oQTwcBza1uZJd0gEGKXyjnBZ3rrPkFwW-2F2DYmoSSeLpt81TxmglKVC-2Fm5-2FFqyZfF5TETAwa76QKG1oQlYSRHZzffN2Tuvnm1UXSAx1EKx11ieltFmIHqSSfLa2EdrSdoDvJqCArIvV95WRUXO4C48HkxMrUD7pLzV6X9g8ay-2Bc8oA-2BYuVZMTN4LEpLWUS2bJsNvs-3D




More information about the dev mailing list