[Issue 16470] Segfault with negative array length

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 5 14:16:51 PDT 2016


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

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g at gmail.com

--- Comment #1 from ag0aep6g at gmail.com ---
There's no such thing as a negative length. -1 becomes size_t.max. Still
shouldn't segfault, though. Should throw an OutOfMemoryError.

--


More information about the Digitalmars-d-bugs mailing list