Kernel buffer overflow exposes iPhone 11 Pro to radio based attacks

Walter Bright newshound2 at digitalmars.com
Fri Dec 4 04:08:31 UTC 2020


On 12/2/2020 7:04 AM, IGotD- wrote:
> I also forgot to mention that when there is an out of bound access, both C++ and 
> D throw an exception. Exceptions are usually a big no no in kernels because the 
> potential memory allocation. In kernels you want to reduce and have absolute 
> control over memory allocations. Only the new proposal "lean exceptions" in C++ 
> might be interesting for kernels.

D has configurable options on what to do on a buffer overflow. One of them, the 
simplest, is just execute a halt instruction.


More information about the Digitalmars-d mailing list