Reducing the cost of autodecoding
safety0ff via Digitalmars-d
digitalmars-d at puremagic.com
Thu Oct 13 10:42:37 PDT 2016
On Thursday, 13 October 2016 at 14:51:50 UTC, Kagamin wrote:
> On Wednesday, 12 October 2016 at 20:24:54 UTC, safety0ff wrote:
>> Code: http://pastebin.com/CFCpUftW
>
> Line 25 doesn't look trusted: reads past the end of an empty
> string.
Length is checked in the loop that calls this function.
In phobos length is only checked with an assertion,
More information about the Digitalmars-d
mailing list