hi, I'm trying to diagnose a problem that may (or may not) be down to a char array overflowing.
My project consists of a couple of dozen libraries I've written myself, all of which have passed functional testing (each library tested on its own). All libraries have passed all their tests, but the project itself is currently failing (full details listed in numerous other postings - but that's not the current question).
If it is an overflow issue, it's occurred to me that one of the factors is that when I test a library in isolation any overflow will probably effect unused memory, so won't get noticed. It's only when there are more objects in memory that an overflow is likely to corrupt something important. So, is there a technique where I can test just one library on it's own, and deliberately populate all the rest of the dynamic memory with some known value (set everything to NULL or FF). I can then run my tests on that one library, check that all the other memory values are unchanged, thereby confirming if anything in the library is causing corruption.
I think what I'm describing sounds like a nice idea, but i'm not sure there's a practical way of doing this.
Comment / suggestions please?