#13375: [PATCH] system/boot/loader/vfs.cpp: fix use after free
----------------------------------+----------------------------
Reporter: mt | Owner: axeld
Type: bug | Status: closed
Priority: normal | Milestone: Unscheduled
Component: System/Boot Loader | Version: R1/Development
Resolution: no change required | Keywords:
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
----------------------------------+----------------------------
Changes (by axeld):
* status: new => closed
* resolution: => no change required
Comment:
It's not a bug, though: `opendir()` acquires two references (in line
[http://cgit.haiku-os.org/haiku/tree/src/system/boot/loader/vfs.cpp#n1170
1170] and [http://cgit.haiku-
os.org/haiku/tree/src/system/boot/loader/vfs.cpp#n1184 1184]), and
`closedir()` loses them both again.
Thanks anyway, it's appreciated!
--
Ticket URL: <https://dev.haiku-os.org/ticket/13375#comment:2>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.