A serious security bug... caused by no bounds checking.

Brad Anderson eco at gnuk.net
Wed Apr 9 10:09:12 PDT 2014


On Tuesday, 8 April 2014 at 21:52:56 UTC, Brad Anderson wrote:
> On Tuesday, 8 April 2014 at 21:01:26 UTC, Martin Krejcirik 
> wrote:
>> On Tuesday, 8 April 2014 at 20:20:59 UTC, Brad Anderson wrote:
>>> Good point. I think perhaps a -boundscheck is in order if the
>>
>> What about:
>>
>> -boundscheck=<none|safe|all>
>>
>> which defaults to 'all' and to 'safe' in combination with 
>> -release
>>
>> -noboundscheck would be the same as -boundscheck=none
>
> Asked Andrei in IRC about it and he liked -boundscheck=.
>
> https://d.puremagic.com/issues/show_bug.cgi?id=12550
>
> I'll try to make a pull request if someone else doesn't beat me 
> to it.

https://github.com/D-Programming-Language/dmd/pull/3443


More information about the Digitalmars-d mailing list