[Issue 16469] New: Segmentation fault in bigAlloc with negative size
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Sep 5 13:23:32 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16469
Issue ID: 16469
Summary: Segmentation fault in bigAlloc with negative size
Product: D
Version: D2
Hardware: x86
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: cpicard at openmailbox.org
The following snippet segfaults with DMD 2.071.1 when compiled with no flag:
void main() {
auto buf = new ubytes[-18];
}
For some reasons values between 0 and -17 cause OutOfMemoryError but no
segfault.
This was found while fuzzing arsd/png.d with afl (American Fuzzy Loop).
--
More information about the Digitalmars-d-bugs
mailing list