[Issue 14578] [ddemangle] core.exception.InvalidMemoryOperationError@(0) handling large symbol list

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri May 22 02:10:23 PDT 2015


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

--- Comment #7 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Walter Bright from comment #6)
> (In reply to Iain Buclaw from comment #3)
> > Going to upgrade this to regression:
> > https://github.com/D-Programming-Language/druntime/commit/
> > 0b72987df17354c83bc302672f4f132fe03db65a
> > https://github.com/D-Programming-Language/druntime/commit/
> > e25cab10d763b36b9c63c62e3713134a137e2760
> > 
> > It throws because newsize + 2 overflows 1024, so assumeSafeAppend fails.
> 
> I don't get what those changes have to do with the last sentence.

__setArrayAllocLength returns false if newlength+padding exceeds the size
allocated to the array.  Before, it just blissfully ignored this assertion and
let the program continue.

What's interesting in the context of this failure, however, is that newlength
== oldlength.

--


More information about the Digitalmars-d-bugs mailing list