-
Hello,
on some files, I had cccc crashing. After investigating, it appears that it occurs when stack_depth becomes greater than MAX_STACK_DEPTH.
My problems were in ParseUtility::tracein at cccc_utl.cc:507, but it could occur at other places too judging by the code.
At each usage to index a fixed size array, stack_depth should be checked to be < MAX_STACK_DEPTH.
Patch attached...
2009-10-16 13:48:39 UTC by nobody
-
Hello,
when running cccc on x86_64 archi with a filename that has no extension, it crashes. The core give the following info:
(gdb) bt
(...)
#7 0x00007f4e0b809b93 in std::string::substr(unsigned long, unsigned long) const () from /usr/lib/libstdc++.so.6
#8 0x000000000043ec41 in CCCC_Options::getFileLanguage (filename=...) at cccc_opt.cc:229
#9 0x00000000004374b0 in Main::ParseFiles...
2009-10-16 13:37:55 UTC by nobody
-
find . | cccc - (on Unix family platforms)
or
dir /b/s | cccc - (on DOS/Windows family platforms)
2009-09-21 13:02:42 UTC by davidlpack
-
In XML reports, the element under is incorrectly represented as .
Problem appears to be the use of the symbol LOC_NODE_NAME instead of COM_NODE_NAME in cccc_xml.cc (see attached patch).
2009-06-04 12:10:43 UTC by endef
-
Generics and annotations are not recognized, syntax errors are generated by the parser and afterwards measurements are calculated wrongly.
2009-05-27 06:58:29 UTC by sozgur
-
The cccc command cannot be parsed properly if the directory names include space characters.
2009-05-27 06:43:11 UTC by sozgur