On 24.05.19 18:51, ag0aep6g wrote:
char[3] buf;
[...]
buf.ptr[i .. i + 3] = '!';
[...]
UnsafeAllocator.instance.i = 8; /* greater than buf.length, whoops */
Actually, anything greater than zero is a whoops, of course.
ag0aep6g via Digitalmars-d-announce Fri, 24 May 2019 10:00:54 -0700
On 24.05.19 18:51, ag0aep6g wrote:
char[3] buf;
[...]
buf.ptr[i .. i + 3] = '!';
[...]
UnsafeAllocator.instance.i = 8; /* greater than buf.length, whoops */
Actually, anything greater than zero is a whoops, of course.