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. 2 new defect(s) introduced to freerangerouting/frr found with Coverity Scan. 18 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 2 of 2 defect(s) ** CID 1436344: Null pointer dereferences (REVERSE_INULL) /bgpd/bgp_clist.c: 1175 in extcommunity_list_set() ________________________________________________________________________________________________________ *** CID 1436344: Null pointer dereferences (REVERSE_INULL) /bgpd/bgp_clist.c: 1175 in extcommunity_list_set() 1169 if (ecom) 1170 ecom->str = ecommunity_ecom2str (ecom, ECOMMUNITY_FORMAT_DISPLAY, 0); 1171 1172 entry = community_entry_new (); 1173 entry->direct = direct; 1174 entry->style = style;
CID 1436344: Null pointer dereferences (REVERSE_INULL) Null-checking "str" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
1175 entry->any = (str ? 0 : 1); 1176 if (ecom) 1177 entry->config = ecommunity_ecom2str (ecom, ECOMMUNITY_FORMAT_COMMUNITY_LIST, 0); 1178 else if (regex) 1179 entry->config = XSTRDUP (MTYPE_COMMUNITY_LIST_CONFIG, str); 1180
** CID 1436343: Null pointer dereferences (FORWARD_NULL) /bgpd/bgp_clist.c: 1175 in extcommunity_list_set() ________________________________________________________________________________________________________ *** CID 1436343: Null pointer dereferences (FORWARD_NULL) /bgpd/bgp_clist.c: 1175 in extcommunity_list_set() 1169 if (ecom) 1170 ecom->str = ecommunity_ecom2str (ecom, ECOMMUNITY_FORMAT_DISPLAY, 0); 1171 1172 entry = community_entry_new (); 1173 entry->direct = direct; 1174 entry->style = style;
CID 1436343: Null pointer dereferences (FORWARD_NULL) Comparing "str" to null implies that "str" might be null.
1175 entry->any = (str ? 0 : 1); 1176 if (ecom) 1177 entry->config = ecommunity_ecom2str (ecom, ECOMMUNITY_FORMAT_COMMUNITY_LIST, 0); 1178 else if (regex) 1179 entry->config = XSTRDUP (MTYPE_COMMUNITY_LIST_CONFIG, str); 1180
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05... To manage Coverity Scan email notifications for "frr@lists.nox.tf", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05...
participants (1)
-
scan-admin@coverity.com