Donate Share

C and C++ Code Counter

Code

Programming Languages: C++, Java, C

License: GNU General Public License (GPL)

Repositories

browse code, statistics svn co https://cccc.svn.sourceforge.net/svnroot/cccc cccc

Show:

What's happening?

  • Maximum stack depth not checked

    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

  • Error on 64 bits archi when filename has no extension

    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

  • Followup: RE: cccc traverse sub-folders

    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

  • XML output: error in module_summary representation

    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

  • Parsing errors with Java 5

    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

  • Space character in directory name

    The cccc command cannot be parsed properly if the directory names include space characters.

    2009-05-27 06:43:11 UTC by sozgur

Our Numbers