[Issue 14097] root/async.c: use after free
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Feb 11 18:32:07 PST 2015
https://issues.dlang.org/show_bug.cgi?id=14097
ZombineDev <petar.p.kirov at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |petar.p.kirov at gmail.com
--- Comment #4 from ZombineDev <petar.p.kirov at gmail.com> ---
(In reply to Ketmar Dark from comment #3)
Now that `AsyncRead::dispose()` waits for all operations on all files to
complete, it should not be possible to `free()` `aw`, before `startthread()`
completes.
Even if this somehow happens accessing `aw->filesdim` or using a cached version
of it is irrelevant, because inside the loop we access the `aw->files` member,
which would also lead to the same problem.
--
More information about the Digitalmars-d-bugs
mailing list