[dev] New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Tue Aug 7 17:33:26 EDT 2018


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.
2 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 1472310:  Error handling issues  (CHECKED_RETURN)
/bgpd/bgp_debug.c: 624 in bgp_debug_parse_evpn_prefix()


________________________________________________________________________________________________________
*** CID 1472310:  Error handling issues  (CHECKED_RETURN)
/bgpd/bgp_debug.c: 624 in bgp_debug_parse_evpn_prefix()
618     		evpn_type = 0;
619     
620     	if (evpn_type == BGP_EVPN_MAC_IP_ROUTE) {
621     		memset(&ip, 0, sizeof(struct ipaddr));
622     
623     		argv_find(argv, argc, "mac", &mac_idx);
>>>     CID 1472310:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "prefix_str2mac" without checking return value (as is done elsewhere 5 out of 6 times).
624     		prefix_str2mac(argv[mac_idx + 1]->arg, &mac);
625     
626     		argv_find(argv, argc, "ip", &ip_idx);
627     		str2ipaddr(argv[ip_idx + 1]->arg, &ip);
628     
629     		build_evpn_type2_prefix((struct prefix_evpn *)argv_p,


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRa7dJ8klHLUFWVd2fqpS-2B-2FHaN43B-2FQ11ntcKmbKat2WeHs8691VOJpZofPkpp-2BRBqc-3D_d-2Fi2nRutHp-2FDWtw8JRg-2Bc1m9CS4-2B5uVbodfDyLsp-2FJlVJnvXa-2FINhdLl2U6PyltnXeS8BwaSlW68qaXhWn6HehnSKv4Y67jNulys99tiRr-2BOZQWxteN7dOrmqTpMpt06hDgLPdsj3Mw8Sq5COpRY-2BLJN2Ugp1qHbOT9J9nuAdEkTbAoyU-2BYW8Lon2yCJxZf5Vi33o4FJHhWmtSOvGATsEg-3D-3D




More information about the dev mailing list