Re:Undefined behavior in C is a reading error
by barrkel on Thursday May 20, 2021 @08:06PM
(#27229030)
Triggering signed overflow and testing whether it has occurred was how I protected the Delphi RTL memory allocation routines from signed overflow attacks, attacks which if not prevented, lead fairly directly to buffer overruns.
The code was written in Pascal and assembly, though, so it was safe from a C compiler.
The code was written in Pascal and assembly, though, so it was safe from a C compiler.