[DUG] Security/Buffer overflows

Ben Taylor to_ben at yahoo.com
Wed Jan 10 14:14:11 NZDT 2007


>    getMemory(buffer, 100 * SizeOf(Integer));
>    for i := 0 to 101 do // woops! should be 100, not 101. Bufferoverflow!

i assume you left the obvious flaw there as an indication of how easy it is to mess
this up? :-)

> there is no way to guard against this except careful programming andtesting. 
well.. there is.. i can go into a deeper discussion/example here if anyone is
interested..


Send instant messages to your online friends http://au.messenger.yahoo.com 


More information about the Delphi mailing list