Mail Archives: djgpp/2004/07/24/14:15:31
Cesar Rabak <crabak AT acm DOT org> wrote:
> IIRC, be checkergcc or MSS, a similar package known to work with DJGPP,
> only work on allocated memory ('malloced') and do not monitor index
> values for static arrays.
That's true for MSS, but not for checker-gcc. That one does (or
should I say "did" ? I seem to remember it's not been kept up with gcc
development) quite a bit more than that. It does full blown array
bounds checking, pointer validation, system call parameter sanity
checking, and then some. It essentially creates a program that
executes the C code on a kind of simulated CPU, so it can check every
memory access before it's done.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -