New Defects reported by Coverity Scan for RTEMS-Tools

scan-admin at coverity.com scan-admin at coverity.com
Mon Jul 8 14:36:44 UTC 2024


Hi,

Please find the latest report on new defect(s) introduced to RTEMS-Tools found with Coverity Scan.

1 new defect(s) introduced to RTEMS-Tools found with Coverity Scan.
25 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 1595466:  Resource leaks  (RESOURCE_LEAK)
/rtemstoolkit/elftoolchain/libdwarf/dwarf_abbrev.c: 51 in dwarf_get_abbrev()


________________________________________________________________________________________________________
*** CID 1595466:  Resource leaks  (RESOURCE_LEAK)
/rtemstoolkit/elftoolchain/libdwarf/dwarf_abbrev.c: 51 in dwarf_get_abbrev()
45     	ret = _dwarf_abbrev_parse(dbg, NULL, &offset, &ab, error);
46     	if (ret != DW_DLE_NONE) {
47     		if (ret == DW_DLE_NO_ENTRY) {
48     			DWARF_SET_ERROR(dbg, error, DW_DLE_NO_ENTRY);
49     			return (DW_DLV_NO_ENTRY);
50     		} else
>>>     CID 1595466:  Resource leaks  (RESOURCE_LEAK)
>>>     Variable "ab" going out of scope leaks the storage it points to.
51     			return (DW_DLV_ERROR);
52     	}
53     
54     	*return_abbrev = ab;
55     	*length = ab->ab_length;
56     	*attr_count = ab->ab_atnum;


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu5GLWnGNEwbhcanGyCDC8W12lwtys3UG-2B0Z6M9JnIBwSp1AyC6SEEOAnou-2BPAHdroc-3Dq8Y1_hOQomnwXvo7ZPjrovRgF1EWfSixaZuumKeNh4wRoLrlhNhLoa5xzRVt0QaGfaEz3-2FfSNnALwSFUX2lyPpzFsqFGboGochwDPJ8j11uFIe7-2FGUDkXmLaIuHrS6gppaxEkPIyyaa0sxQ-2B41tF56yVWk9S86-2Bh-2FITd-2BLNLbOcCOK9MLD2Hdu-2BxxYa0jgv1fUs8BIACHdW7KVRP2fEEEJE9mnQ-3D-3D



More information about the build mailing list