New Defects reported by Coverity Scan for freerangerouting/frr
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 1501000: (NULL_RETURNS) ________________________________________________________________________________________________________ *** CID 1501000: (NULL_RETURNS) /bgpd/bgp_route.c: 3519 in bgp_attr_add_no_advertise_community() 3513 struct community *noadv; 3514 3515 old = attr->community; 3516 noadv = community_str2com("no-advertise"); 3517 3518 if (old) {
CID 1501000: (NULL_RETURNS) Dereferencing a pointer that might be "NULL" "noadv" when calling "community_merge".
3519 merge = community_merge(community_dup(old), noadv); 3520 3521 if (!old->refcnt) 3522 community_free(&old); 3523 3524 new = community_uniq_sort(merge); /bgpd/bgp_route.c: 3527 in bgp_attr_add_no_advertise_community() 3521 if (!old->refcnt) 3522 community_free(&old); 3523 3524 new = community_uniq_sort(merge); 3525 community_free(&merge); 3526 } else {
CID 1501000: (NULL_RETURNS) Dereferencing a pointer that might be "NULL" "noadv" when calling "community_dup".
3527 new = community_dup(noadv); 3528 } 3529 3530 community_free(&noadv); 3531 3532 attr->community = new;
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...
participants (1)
-
scan-admin@coverity.com