[Issue 23611] Zombie heap leak proof of concept: linked list in dead resized array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 10 02:57:13 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23611

--- Comment #3 from FeepingCreature <default_357-line at yahoo.de> ---
Well, there's lots of ways to avoid this issue. Zeroing, as you say. I'm just
putting up this bug to note it's a straightforward issue as it stands. We're
used to treating the GC the way we know it works rather than the way it
theoretically could work, doing array.dup to cut off dead elements, etc., and
at any rate the GC isn't *obligated* to collect anything ever, etc etc. But
naively, this is still surprising behavior.

--


More information about the Digitalmars-d-bugs mailing list