I have memory leak issue, I found from stack trace that "sendto" points to uninitialised data in the below routine, does vsnprintf cause this error?
syscall param socketcall.send to(msg) points to uninitialised bytes(s)
at 0x43B731E: sendto (in /lib/libpthread-2.5.so)
by 0x439A019: adpModuleDebug (in /pfrm/lib/libi386adaptos. so)
syscall param socketcall.send to(msg) points to uninitialised bytes(s)
at 0x43B731E: sendto (in /lib/libpthread-2.5.so)
by 0x439A019: adpModuleDebug (in /pfrm/lib/libi386adaptos. so)
Code:
f (!pEntry || (pEntry->debugLevel & debugLevel))
{
int len;
char buf[256];
len = sprintf(buf, "%s:%d:", function, line);
va_start (arg, pszFormat);
vsnprintf (&buf[len], 255-len, pszFormat, arg);
va_end (arg);
printf ("%s", buf);
}
Comment