[RTEMS Project] #4212: libio leaks location clones

RTEMS trac trac at rtems.org
Sat Jan 9 01:24:44 UTC 2021

#4212: libio leaks location clones
 Reporter:  Chris Johns  |       Owner:  (none)
     Type:  defect       |      Status:  new
 Priority:  normal       |   Milestone:  6.1
Component:  fs           |     Version:  6
 Severity:  normal       |  Resolution:
 Keywords:               |  Blocked By:
 Blocking:               |

Comment (by Chris Johns):

 I agree we need a test, there is no objection here. I will look at this
 when I have time.

 The bug is in the eval restart call in the IMFS. When a mount point is
 found the eval restart call clones the root loc. The open code ends up
 calling copy which wipes the clone out. A test is needed to expose the

 Putting the test case side, I would like to know if the copy should be
 deep? The test could then check for it being shallow or deep.

Ticket URL: <http://devel.rtems.org/ticket/4212#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list