malloc and buffer overflow attacks

Elronnd elronnd at elronnd.net
Fri Dec 31 01:09:06 UTC 2021


On Friday, 31 December 2021 at 00:37:20 UTC, sarn wrote:
> Walter's talking about integer overflow with the `len * 
> T.sizeof` calculation itself.

Slicing should have its own overflow check, meaning it doesn't 
matter if the other calculation overflows.  (I don't know if it 
does, but should.)


More information about the Digitalmars-d mailing list