I also get segfaults. In my case it's due to dereferencing the variable valueType when it is null. Not exactly sure why it's null though... Your link looks to have basically the same issue in a different place. I posted about it here: https://sourceforge.net/p/cppcheck/discussion/general/thread/702232fdaf/
I also get segfaults. In my case it's due to dereferencing the variable valueType when it is null. Not exactly sure why it's null though...
Ah I see. I didnt think that the production of a dump file for a plugin could be affected by the yet to be run plugin. Wouldn't this issue be present for any plugin, regardless of what it is?
Invoked with approximately the following command: cppcheck -iF:/project/external/catch2 --enable=all --addon=F:/project/cmake/misra.json --project=F:/project/build/compile_commands.json --inline-suppr --suppress=missingIncludeSystem --suppress=preprocessorErrorDirective --suppress=unmatchedSuppression --cppcheck-build-dir=F:/project/build/cppcheck --std=c++20 --language=c++ --template=gcc --suppressions-list=F:/project/.cppcheckignore With the following JSON file: { "script": "${CPPCHECK_ADDONS_PATH}/misra.py",...
Invoked with approximately the following command: cppcheck -iF:/project/external/catch2 --enable=all --addon=F:/project/cmake/misra.json --project=F:/project/build/compile_commands.json --inline-suppr --suppress=missingIncludeSystem --suppress=preprocessorErrorDirective --suppress=unmatchedSuppression --cppcheck-build-dir=F:/project/build/cppcheck --std=c++20 --language=c++ --template=gcc --suppressions-list=F:/project/.cppcheckignore With the following JSON file: { "script": "${CPPCHECK_ADDONS_PATH}/misra.py",...
Gday, The following outlines some issues: The following results in a cppcheck crash. var->valueType() can be nullptr. Inside symboldatabase.cpp out << " access=\"" << accessControlToString(var->mAccess) << '\"'; out << " scope=\"" << var->scope() << '\"'; out << " constness=\"" << var->valueType()->constness << '\"'; // THIS out << " isArgument=\"" << var->isArgument() << '\"'; out << " isArray=\"" << var->isArray() << '\"'; Also here in checkother.cpp: if (var->valueType()->type == ValueType::Type::CONTAINER)...
Gday, The following outlines some issues: The following results in a cppcheck crash. var->valueType() can be nullptr. Inside symboldatabase.cpp out << " access=\"" << accessControlToString(var->mAccess) << '\"'; out << " scope=\"" << var->scope() << '\"'; out << " constness=\"" << var->valueType()->constness << '\"'; // THIS out << " isArgument=\"" << var->isArgument() << '\"'; out << " isArray=\"" << var->isArray() << '\"'; Also here in checkother.cpp: if (var->valueType()->type == ValueType::Type::CONTAINER)...
Gday, The following outlines some issues: The following results in a cppcheck crash. var->valueType() can be nullptr. Inside symboldatabase.cpp out << " access=\"" << accessControlToString(var->mAccess) << '\"'; out << " scope=\"" << var->scope() << '\"'; out << " constness=\"" << var->valueType()->constness << '\"'; // THIS out << " isArgument=\"" << var->isArgument() << '\"'; out << " isArray=\"" << var->isArray() << '\"'; Also here in checkother.cpp: if (var->valueType()->type == ValueType::Type::CONTAINER)...