This project has moved. For the latest updates, please go here.
1

Closed

Too long function name causes abnormal termination

description

If (due to overenthusiastic use of templates and/or boost, for instance) a stack trace line grows to over STACKWALK_MAX_NAMELEN, trying to create the stackwalk will cause the program to abnormally abort.
 
This is due to two things:
 
line 1122 strcpy_s should in fact be strncpy(csEntry.name, pSym->Name,sizeof(csEntry.name));
 
line 1265, buffer should be allocated larger; it can be given a name of size STACKWALK_MAX_NAMELEN but also a lineFIleName that might be STACKWALK_MAX_NAMELEN, and a few other characters also. 2*STACKWALK_MAX_NAMELEN+20 should be good.
Closed May 19, 2011 at 7:25 AM by jkalmbach
Thanks for reporting this! I fixed this already in the RC11 release of my leak finder (http://blog.kalmbachnet.de/files/LeakFinder_RC11.zip)... I also now fixed it here ;)

comments

jkalmbach wrote May 19, 2011 at 7:25 AM

Thanks for reporting this! I fixed this already in the RC11 release of my leak finder (http://blog.kalmbachnet.de/files/LeakFinder_RC11.zip)... I also now fixed it here ;)