@safe and null dereferencing

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 27 13:48:51 PDT 2017


On Thu, Jul 27, 2017 at 07:50:52PM +0000, Moritz Maxeiner via Digitalmars-d wrote:
> On Thursday, 27 July 2017 at 18:46:16 UTC, Jonathan M Davis wrote:
[...]
> > I see no problem whatsoever requiring that the platform segfaults
> > when you dereference null. Anything even vaguely modern will do
> > that. Adding extra null checks is therefore redundant and
> > complicates the compiler for no gain whatsoever.
> 
> Except that when someone gets (root) access to any modern Linux
> servers running D services he now has an easy way to create a denial
> of service attack the owner of the server won't easily be able to find
> the cause of, because pretty much everything *looks* right, except
> that somehow the D services hang.

If someone malicious has root access to your server, you already have
much bigger things to worry about than D services hanging. :-D


T

-- 
Don't get stuck in a closet---wear yourself out.


More information about the Digitalmars-d mailing list