Thread overview
[Issue 19890] ICE: Segmentation fault with negative array size
May 21, 2019
Iain Buclaw
May 21, 2019
Iain Buclaw
May 21, 2019
Iain Buclaw
May 22, 2019
Dlang Bot
May 24, 2019
Dlang Bot
Jun 09, 2019
Dlang Bot
May 21, 2019
https://issues.dlang.org/show_bug.cgi?id=19890

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw@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";

--
May 21, 2019
https://issues.dlang.org/show_bug.cgi?id=19890

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Casting to void[uint.max] causes a segmentation fault in another part of the compiler.

void[] f = cast(void[uint.max]) "a";

--
May 21, 2019
https://issues.dlang.org/show_bug.cgi?id=19890

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Casting to void[int.max] causes the backend to run out of memory.

void[] f = cast(void[int.max]) "a";

--
May 22, 2019
https://issues.dlang.org/show_bug.cgi?id=19890

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ibuclaw created dlang/dmd pull request #9840 "fix Issue 19890 - ICE: Segmentation fault with negative array size" fixing this issue:

- fix Issue 19890 - ICE: Segmentation fault with negative array size

https://github.com/dlang/dmd/pull/9840

--
May 24, 2019
https://issues.dlang.org/show_bug.cgi?id=19890

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #9840 "fix Issue 19890 - ICE: Segmentation fault with negative array size" was merged into master:

- fb7814cc95e504503f6d6f94f3fc4ed2b73715b7 by Iain Buclaw:
  fix Issue 19890 - ICE: Segmentation fault with negative array size

https://github.com/dlang/dmd/pull/9840

--
June 09, 2019
https://issues.dlang.org/show_bug.cgi?id=19890

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #10007 "[dmd-cxx] fix Issue 19890 - ICE: Segmentation fault with negative array size" was merged into dmd-cxx:

- 789cf579d506e3b021d9beb47bf43b36bdb629d8 by Iain Buclaw:
  fix Issue 19890 - ICE: Segmentation fault with negative array size

https://github.com/dlang/dmd/pull/10007

--