[RTEMS Project] #4764: msdos_format throws RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE on free(fmt_params.sec)
RTEMS trac
trac at rtems.org
Fri Nov 25 16:20:39 UTC 2022
#4764: msdos_format throws RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE on
free(fmt_params.sec)
----------------------------+---------------------
Reporter: Giovanni Righi | Owner: (none)
Type: defect | Status: new
Priority: high | Milestone: 5.1
Component: fs/fat | Version: 5
Severity: major | Resolution:
Keywords: | Blocked By:
Blocking: |
----------------------------+---------------------
Comment (by Joel Sherrill):
Without looking at the code, this should indicate that the address passed
to free() is not one that was malloced. Perhaps it should have been set to
NULL in the structure earlier and just garbage is passed in when clean up
occurs. Otherwise, there is what I would think is a bug which would have
been tripped over in the most basic testing and use.
--
Ticket URL: <http://devel.rtems.org/ticket/4764#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list