|
From: Nicholas N. <nj...@ca...> - 2004-09-07 12:02:12
|
On Tue, 7 Sep 2004, Oswald Buddenhagen wrote: >> It can't really do so - no run time only system can. >> > actually, i think a run time only solution would work to some extent, > particularly if we have debug info available. I've worked on this, and got a runtime-only tool working that could detect bounds errors on static arrays (but not stack arrays). It relies on debug information to know where the static arrays are. Unfortunately the technique is not very robust which is why it's not in the Valgrind distribution, and probably never will be. Detecting these bounds errors is really something that is best done at the source level, so GCC's bounds-checking patches or Insure++ seem the best option. N |