On Thu, 2003-02-13 at 04:59, Martin Liddle wrote:
In article 200302130727.IAA30049@goedel.fjf.gnu.de, Frank Heckenbach frank@g-n-u.de writes
If what you mean is treating the string as an array of char and indexing out of range, this would be a matter of range-checking(*) -- I'm not sure if you mean this, that's why it's always a good idea to include some example code!
(*) which GPC is currently lacking. I wrote a mail about it on 2002-12-14, but there doesn't seem to be much interested from the users.
I'd like to see range checking available as an option but I think the work to integrate gpc with gcc is more important.
I agree with this as a carfull programer will not allow this to happen. The one place where you do need range checking is input which you can get around by using a libc function I forget the exact function names but I know they are there in libc due to all of the buffer overflow security issues.
Richard