Bug report and patch

Mar 22, 2011 at 8:32 PM

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.

Apr 18, 2011 at 4:08 PM

Maybe report this on the "Issue Tracker" tab available on the top of this page.

 

Coordinator
May 19, 2011 at 6:22 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 ;)

Coordinator
Sep 16, 2014 at 12:19 PM
Also solved in the latest revision
Marked as answer by jkalmbach on 9/16/2014 at 5:20 AM