-
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
-
What is the command to run cccc traversing sub-folders.
2009-03-24 15:08:11 UTC by colone
-
I ran CCCC against some C code and got some unexpected results. Although there were 8 source files, the output indicated on 1 module. The module name showed to be "anonymous" instead of the file names. I'm assuming that a "module" is equivalent to a C++ class, which it found none. Is there a way to configure the tool to be more C friendly?
Thanks in advance.
2009-01-20 23:44:17 UTC by jwilson-2
-
Command line utility cccc (version 3.1.4, x86, Gentoo Linux) hangs.
2008-11-11 20:54:53 UTC by maximdementiev
-
Attempted to initialize a std::wstring variable in an initializer list:
FooClass::FooClass() : wString(L"")
{
}
It chokes at the L".
2007-10-25 00:25:24 UTC by techno5le