New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Wed Jul 19 14:01:28 UTC 2023


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 1566378:    (USE_AFTER_FREE)
/bgpd/bgp_aspath.c: 1689 in aspath_filter_exclude_acl()
/bgpd/bgp_aspath.c: 1689 in aspath_filter_exclude_acl()
/bgpd/bgp_aspath.c: 1689 in aspath_filter_exclude_acl()
/bgpd/bgp_aspath.c: 1689 in aspath_filter_exclude_acl()


________________________________________________________________________________________________________
*** CID 1566378:    (USE_AFTER_FREE)
/bgpd/bgp_aspath.c: 1689 in aspath_filter_exclude_acl()
1683     				/* first segment */
1684     				source->segments = new_seg;
1685     			else if (prev_seg)
1686     				prev_seg->next = new_seg;
1687     			assegment_free(cur_seg);
1688     		}
>>>     CID 1566378:    (USE_AFTER_FREE)
>>>     Using freed pointer "cur_seg".
1689     		prev_seg = cur_seg;
1690     		cur_seg = next_seg;
1691     	}
1692     
1693     
1694     	aspath_str_update(source, false);
/bgpd/bgp_aspath.c: 1689 in aspath_filter_exclude_acl()
1683     				/* first segment */
1684     				source->segments = new_seg;
1685     			else if (prev_seg)
1686     				prev_seg->next = new_seg;
1687     			assegment_free(cur_seg);
1688     		}
>>>     CID 1566378:    (USE_AFTER_FREE)
>>>     Using freed pointer "cur_seg".
1689     		prev_seg = cur_seg;
1690     		cur_seg = next_seg;
1691     	}
1692     
1693     
1694     	aspath_str_update(source, false);
/bgpd/bgp_aspath.c: 1689 in aspath_filter_exclude_acl()
1683     				/* first segment */
1684     				source->segments = new_seg;
1685     			else if (prev_seg)
1686     				prev_seg->next = new_seg;
1687     			assegment_free(cur_seg);
1688     		}
>>>     CID 1566378:    (USE_AFTER_FREE)
>>>     Using freed pointer "cur_seg".
1689     		prev_seg = cur_seg;
1690     		cur_seg = next_seg;
1691     	}
1692     
1693     
1694     	aspath_str_update(source, false);
/bgpd/bgp_aspath.c: 1689 in aspath_filter_exclude_acl()
1683     				/* first segment */
1684     				source->segments = new_seg;
1685     			else if (prev_seg)
1686     				prev_seg->next = new_seg;
1687     			assegment_free(cur_seg);
1688     		}
>>>     CID 1566378:    (USE_AFTER_FREE)
>>>     Using freed pointer "cur_seg".
1689     		prev_seg = cur_seg;
1690     		cur_seg = next_seg;
1691     	}
1692     
1693     
1694     	aspath_str_update(source, false);


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yrtN2DGUU98GYhjd55wXsXtw53zRK70R0agdV-2Fb7c45-2BkxBoZjryQtr5SpUD80NNfE-3D_3dW_O0IDF7c8sUs2B6kWTeWwAJZqriD5fgsfL8PAN30oQTwmDPN-2BjBmkLlpEmqgZrMTQjc3f9IlRI9jN00O2-2BePO4dAlMvoXUhl1XxZstA8oxnMI4TUal8UydHw80okIdKk8GSRs7sdGqGeWGR79Lby4SNR28iC0qFBpUxPL9RpaSrSvCM0rh0dRsf8n5AC7POWW18H74mm6-2BN9f-2BsNjpX2pYw-3D-3D




More information about the dev mailing list