Menu

Missing errors from --errorlist

Ryan
2018-06-06
2018-06-20
  • Ryan

    Ryan - 2018-06-06

    I've noticed there's some errors that seem to be missing from the --errorlist.
    - allocaCalled
    - stlcstrthrow
    - pureVirtualCall
    - comparisonOfBoolWithInvalidComparator
    - invalidScanfFormatWidth_smaller
    - redundantBitwiseOperationInSwitch
    - invalidFree
    As far as I can tell, all of these are run in their respective runChecks/runSimplifiedChecks methods, but arent in getErrorMessages (or for invalidScanfFormatWidth_smaller, where it only has the case to show invalidScanfFormatWidth), so none of them show up in the errorlist.

     
  • versat

    versat - 2018-06-20

    Thanks for reporting this.
    IMHO they were just beeing forgotten.
    Instead of "allocaCalled" something more generic like "functionCalled" could maybe be better since it also depends on the library which functions are marked with a warning. I am not sure if it makes sense to list all according functions from the libraries.
    There is already a related ticket where amai also added your report:
    https://trac.cppcheck.net/ticket/7772

     

    Last edit: versat 2018-06-20

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.