[DUG] Security/Buffer overflows

David Brennan dugdavid at dbsolutions.co.nz
Wed Jan 10 17:39:00 NZDT 2007


Hehe... I thought that too... ;-)



-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Ben Taylor
Sent: Wednesday, 10 January 2007 2:14 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Security/Buffer overflows

>    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 
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi



More information about the Delphi mailing list