[Issue 19890] ICE: Segmentation fault with negative array size

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 21 19:31:01 UTC 2019


Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
                 CC|                            |ibuclaw at gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
And adjusting the size of the static array instead causes a memory allocation
failed ICE.  Meaning that the first test triggers an integer overflow.

void[] f = cast(void[-2]) "a";


More information about the Digitalmars-d-bugs mailing list