S
spoc
I am using VC++6 and Numega bounds checker and have been getting many STATIC
MEMORY OVERRUN errors (boundschecker) while trying to track down bugs. An
example is below:
void func()
{
static int midSection[ 10 ][ 10 ];
memset(&midSection, 0, sizeof(midSection));
}
For the life of me I can't see why this should cause an error. I also get
the error for the following:
void func()
{
static char f[ 100 ];
strcpy(f, funcb() ); // where funcb() is guaranteed to return a string <
100
}
Maybe it's just bounds checker? Anyone help?
MEMORY OVERRUN errors (boundschecker) while trying to track down bugs. An
example is below:
void func()
{
static int midSection[ 10 ][ 10 ];
memset(&midSection, 0, sizeof(midSection));
}
For the life of me I can't see why this should cause an error. I also get
the error for the following:
void func()
{
static char f[ 100 ];
strcpy(f, funcb() ); // where funcb() is guaranteed to return a string <
100
}
Maybe it's just bounds checker? Anyone help?