[Issue 6874] heap corruption caused by std.array.insertInPlaceImpl or gc.gcx

2012-01-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6874 Nils mailm...@nilsb.dyndns.org changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 6874] heap corruption caused by std.array.insertInPlaceImpl or gc.gcx

2011-11-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6874 --- Comment #1 from Nils mailm...@nilsb.dyndns.org 2011-11-02 21:16:44 PDT --- What happens is this: b.insertInPlaceImpl(...) does realloc(b.ptr, newLength * b[0].sizeof), assuming that realloc will allocate enough space to safely write