Menu

#1 Access Violation

open
nobody
None
5
2002-05-03
2002-05-03
No

Hi,

I modifed your RpcMod.cpp line 63 to:
if (pAnnot)
{
if(strlen((char *)pAnnot) < 1)
{
fprintf(HTMLFile,"<BR><B><FONT
FACE=\"Arial\"><FONT SIZE=+0>Service Name : </B>%
s\n</FONT></FONT>\n","Unknown");
}
else
{
fprintf(HTMLFile,"<BR><B><FONT
FACE=\"Arial\"><FONT SIZE=+0>Service Name : </B>%
s\n</FONT></FONT>\n",pAnnot);
}
RpcStringFree (&pAnnot);
}

To avoid it crashing on RpcStringFree, this was cause
because strcpy() modified the size of the string,
while the RPC function didn't know about it and later
tried to free more than it should have...

Discussion


Log in to post a comment.

MongoDB Logo MongoDB