[Issue 24856] std.array.Appender.ensureAddable can create stale memory references

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 13 20:45:11 UTC 2024


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

--- Comment #3 from Steven Schveighoffer <schveiguy at gmail.com> ---
(In reply to apham from comment #1)
> In light of this bug, can build in array also affected by this bug since
> there are various bugs reported of runtime memory leak?

You are right. The same mistake is made there. Very interesting!

https://github.com/dlang/dmd/blob/5cce98ed7fbd80cad0f7dcce08c09da3c1bffad8/druntime/src/rt/lifetime.d#L1906

--


More information about the Digitalmars-d-bugs mailing list