New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Tue Aug 17 09:16:30 UTC 2021


Hi,

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

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


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


** CID 1506502:  Control flow issues  (DEADCODE)
/zebra/zebra_mpls_vty.c: 84 in zebra_mpls_transit_lsp()


________________________________________________________________________________________________________
*** CID 1506502:  Control flow issues  (DEADCODE)
/zebra/zebra_mpls_vty.c: 84 in zebra_mpls_transit_lsp()
78     		vty_out(vty, "%% Invalid label\n");
79     		return CMD_WARNING_CONFIG_FAILED;
80     	}
81     
82     	if (add_cmd) {
83     		if (!gate_str) {
>>>     CID 1506502:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "vty_out(vty, "%% No Nexthop...".
84     			vty_out(vty, "%% No Nexthop Information\n");
85     			return CMD_WARNING_CONFIG_FAILED;
86     		}
87     		if (!outlabel_str) {
88     			vty_out(vty, "%% No Outgoing label Information\n");
89     			return CMD_WARNING_CONFIG_FAILED;

** CID 1506501:  Control flow issues  (DEADCODE)
/bgpd/bgp_routemap.c: 1223 in route_match_alias()


________________________________________________________________________________________________________
*** CID 1506501:  Control flow issues  (DEADCODE)
/bgpd/bgp_routemap.c: 1223 in route_match_alias()
1217     			if (!found && strcmp(alias, com2alias) == 0)
1218     				found = false;
1219     			XFREE(MTYPE_TMP, communities[i]);
1220     		}
1221     		XFREE(MTYPE_TMP, communities);
1222     		if (found)
>>>     CID 1506501:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "return RMAP_MATCH;".
1223     			return RMAP_MATCH;
1224     	}
1225     
1226     	return RMAP_NOMATCH;
1227     }
1228     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yrtN2DGUU98GYhjd55wXsXtw53zRK70R0agdV-2Fb7c45-2BkxBoZjryQtr5SpUD80NNfE-3D3Wer_O0IDF7c8sUs2B6kWTeWwAJZqriD5fgsfL8PAN30oQTy5MlOzYJTkRNmd1YCOEQlsqUmoP1oywrhNn1wMaiqexTa8jod9zp0-2Bw2tEBRVWqb1RF1XQpuWKUVlDquIhcvZYCTWzaKw6znFpGa71-2F2tnMfCrInaqCWPHkYyvFwFsVo2R0aKP5-2Bb5MStTAWaRCDfXOUmHQikyIFKMusjNdYS2fw-3D-3D




More information about the dev mailing list