Compiled dmd2.032 in VC++ 2009!

Rainer Deyke rainerd at eldwood.com
Sat Sep 5 22:08:30 PDT 2009


Jeremie Pelletier wrote:
> bearophile Wrote:
>> - if(de.name[$-2 .. $] == ".c") is a bit unsafe, (...)
> I don't see how unsafe that is in this context.

Potential buffer underrun.
http://www.digitalmars.com/d/1.0/arrays.html: "A program may not rely on
array bounds checking happening"


-- 
Rainer Deyke - rainerd at eldwood.com



More information about the Digitalmars-d mailing list