The comments are owned by the poster. We aren't responsible for their content.

No Comments Allowed for Anonymous, please register

Re: Great Refactor: Step 5: Remove all memory errors (Score: 1)
by Xaignar on Tuesday, July 13 @ 18:38:55 CDT
(User Info )
Heya HopeSeekr.
I'm afraid that valgrind wont catch all mem bugs as you seem to imply. For instance, it doesn't catch the following:

char somearray[10];
somearray[10] = 0;

though it will catch this:
char* somearray = new char[10];
somearray[10] = 0;

Also, it doesn't always catch stuff like

class* someptr;
if ( <test> ) {
someptr = new <something>[x];
[...]
}
delete[] someptr;

Personally I've already done a quick audit of aMule for the second type of error (which did unearth a couple of bugs), and plan on doing a more throughout audit for other types of errors as well.

Cheers,
Xaignar