Talk:Secure programming

From Free Pascal wiki
Revision as of 17:56, 26 February 2005 by Ik 5 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
var
  sName : String[10];
  ....
  sName :=  'abcdefghijklmnopqrstuvwxyz' ;
  ....

won't create any trouble. The compiler knows how long strings are when storing data. --FPK 23:32, 25 Feb 2005 (CET)

As I said, it's just a static example that even the compiler will find out... But first we need to understand what is a buffer overflow in order to know how to make a better workaround :) --ik_5

Is there some code that would

  1. illustrate buffer overflow problem
  2. not be detected by a range checking during runtime?

--Ruza 06:19, 26 Feb 2005 (CET)