D array expansion and non-deterministic re-allocation

grauzone none at example.net
Sun Nov 15 23:36:26 PST 2009


Walter Bright wrote:
>> Safe? Fuck no.
> 
> It's safe as in memory safe. This is as opposed to undefined-behavior, 
> which is not memory safe. A buffer overflow is an example of 
> undefined-behavior.

Even if it's memory safe, it could cause a bug. Look at Bartosz example 
again; if the memory block gets copied really depends from the input 
data length.



More information about the Digitalmars-d mailing list