Typical security issues in C++: why the GC isn't your enemy

Adam D Ruppe destructionator at gmail.com
Mon Dec 12 13:27:09 UTC 2022


On Monday, 12 December 2022 at 03:48:26 UTC, Walter Bright wrote:
> Safe code is where bounds checking is needed.

Most code needs bounds checking. The exceptions can use the 
`.ptr` property to *locally* bypass it. (Which is correctly 
prohibited in `@safe` code, since it is trusting the programmer 
to do it right.)

The global switches should *never* be used in *any* real world 
code. If you think you can trust every last bit of the code, you 
have no business handling user data.


More information about the Digitalmars-d mailing list