[Issue 24856] std.array.Appender.ensureAddable can create stale memory references
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 14 18:20:30 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24856
--- Comment #6 from Steven Schveighoffer <schveiguy at gmail.com> ---
(In reply to Steven Schveighoffer from comment #3)
> You are right. The same mistake is made there. Very interesting!
>
I made a bug report for this, but I'm realizing it's not actually a problem in
current released compilers, nor will it be a problem in 2.110, due to a quirk
in the way small allocations are grown, and the way large allocations are
scanned. So this would not explain any existing bugs with memory leaks.
The 2.111 version however, was changed to adjust the growth factor for small
blocks, so this problem would appear in that unless we do something.
In any case, I created issue 24860 to track that, it is separate from this.
--
More information about the Digitalmars-d-bugs
mailing list