[Issue 16470] Segfault with negative array length

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Feb 17 19:45:22 PST 2017


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

--- Comment #5 from github-bugzilla at puremagic.com ---
Commit pushed to master at https://github.com/dlang/druntime

https://github.com/dlang/druntime/commit/2d38937e3ff6597a143e83cf2d2d38c76b117d56
Fix issue 16470: Segfault with negative array length

If the array length is too large, and the element
size small enough, the overflow might go undetected
in the check while multiplying array size and element
size, but it can later manifest when adding padding, etc.

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

--


More information about the Digitalmars-d-bugs mailing list