Menu

CWE Checker

2017-02-01
2017-02-01
  • Raphael de Carvalho Muniz

    Hi everybody,

    I need that the CppCheck find occurrences of CWE in C files. Do you know whether he is able to find this?

    I am using this parameter: "cppcheck --force --enable=all --xml-version=2 file.c"

    But he doesn't report CWE occurrences in files that I'm analyzing.

    Can someone help me?

     
  • Raphael de Carvalho Muniz

    Someone can suggest me one tool of static analyze of C code that reports CWE?
    I can't make it with CppCheck.

     
  • Alexander Mai

    Alexander Mai - 2017-02-02

    cppcheck 1.77 has CWE mapping for all messages.
    What version do you use?
    Does it show any messages for your source code?

     
    • Raphael de Carvalho Muniz

      Good morning Alexander,
      Thanks for your answer.

      I'm using the 1.72 version of CppCheck for Ubuntu 64 bits.

      "Does it show any messages to your source code?"
      Yes! I'm using this parameter: cppcheck --force --enable=all --xml-version=2 file.c

      Is there any additional configuration that I can make to it show CWE messages.

       
  • Mr. X

    Mr. X - 2017-02-03

    1.72 does not support CWE afaik. You should update to the latest cppcheck version.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.