Kernel buffer overflow exposes iPhone 11 Pro to radio based attacks

Walter Bright newshound2 at digitalmars.com
Fri Dec 4 04:10:50 UTC 2020


On 12/3/2020 8:08 PM, Walter Bright wrote:
> 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.



https://dlang.org/dmd-windows.html#switch-checkaction


More information about the Digitalmars-d mailing list