cmake-3.28.3-6.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
cmake-3.28.3-build/cmake-3.28.3/Source/CPack/IFW/cmCPackIFWGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2]
cmake-3.28.3-build/cmake-3.28.3/Source/CPack/IFW/cmCPackIFWInstaller.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def3]
cmake-3.28.3-build/cmake-3.28.3/Source/CPack/IFW/cmCPackIFWPackage.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def4]
cmake-3.28.3-build/cmake-3.28.3/Source/CPack/cmCPackArchiveGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def5]
cmake-3.28.3-build/cmake-3.28.3/Source/CPack/cmCPackDebGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def6]
cmake-3.28.3-build/cmake-3.28.3/Source/CPack/cmCPackExternalGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def7]
cmake-3.28.3-build/cmake-3.28.3/Source/CPack/cmCPackGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def8]
cmake-3.28.3-build/cmake-3.28.3/Source/CPack/cmCPackInnoSetupGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def9]
cmake-3.28.3-build/cmake-3.28.3/Source/CPack/cmCPackLog.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
cmake-3.28.3-build/cmake-3.28.3/Source/CPack/cmCPackNSISGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def11]
cmake-3.28.3-build/cmake-3.28.3/Source/CPack/cmCPackNuGetGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def12]
cmake-3.28.3-build/cmake-3.28.3/Source/CPack/cmCPackRPMGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def13]
cmake-3.28.3-build/cmake-3.28.3/Source/CPack/cpack.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def14]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestBZR.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def15]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestBuildAndTestHandler.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def16]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestBuildCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def17]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestBuildHandler.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def18]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestConfigureCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def19]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestCoverageHandler.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def20]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestGIT.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def21]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestHG.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def22]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestHandlerCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def23]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestLaunch.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def24]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestLaunchReporter.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def25]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestMemCheckHandler.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def26]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestMultiProcessHandler.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def27]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestResourceSpec.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def28]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestRunTest.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def29]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestScriptHandler.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def30]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestStartCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def31]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestSubmitCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def32]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestSubmitHandler.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def33]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestTestCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def34]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestTestHandler.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def35]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestUpdateHandler.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def36]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmParseBlanketJSCoverage.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def37]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmParseCacheCoverage.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def38]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmParseCoberturaCoverage.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def39]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmParseDelphiCoverage.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def40]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmParseGTMCoverage.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def41]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmParseJacocoCoverage.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def42]
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmParsePHPCoverage.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def43]
cmake-3.28.3-build/cmake-3.28.3/Source/CursesDialog/ccmake.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def44]
cmake-3.28.3-build/cmake-3.28.3/Source/CursesDialog/cmCursesColor.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def45]
cmake-3.28.3-build/cmake-3.28.3/Source/CursesDialog/cmCursesMainForm.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def46]
cmake-3.28.3-build/cmake-3.28.3/Source/CursesDialog/cmCursesStringWidget.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def47]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCTestResourceGroupsLexer.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def48]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCTestResourceGroupsLexer.cxx:684:8: warning[-Wodr]: type ‘struct yyguts_t’ violates the C++ One Definition Rule
# 684 | struct yyguts_t
# | ^
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCommandArgumentLexer.cxx:694: note: a different type is defined in another translation unit
# 694 | struct yyguts_t
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCTestResourceGroupsLexer.cxx:688:19: note: the first difference of corresponding definitions is field ‘yyextra_r’
# 688 | YY_EXTRA_TYPE yyextra_r;
# | ^
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCommandArgumentLexer.cxx:698: note: a field of same name but different type is defined in another translation unit
# 698 | YY_EXTRA_TYPE yyextra_r;
cmake-3.28.3-build/cmake-3.28.3/Source/CTest/cmCTestResourceGroupsLexerHelper.h:10:7: note: type name ‘cmCTestResourceGroupsLexerHelper’ should match type name ‘cmCommandArgumentParserHelper’
# 10 | class cmCTestResourceGroupsLexerHelper
# | ^
cmake-3.28.3-build/cmake-3.28.3/Source/cmCommandArgumentParserHelper.h:13:7: note: the incompatible type is defined here
# 13 | class cmCommandArgumentParserHelper
# | ^
# 682|
# 683| /* Holds the entire state of the reentrant scanner. */
# 684|-> struct yyguts_t
# 685| {
# 686|
Error: CPPCHECK_WARNING: [#def49]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCommandArgumentLexer.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def50]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCommandArgumentLexer.cxx:694: warning[-Wodr]: type ‘struct yyguts_t’ violates the C++ One Definition Rule
# 694 | struct yyguts_t
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmExprLexer.cxx:690: note: a different type is defined in another translation unit
# 690 | struct yyguts_t
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCommandArgumentLexer.cxx:698: note: the first difference of corresponding definitions is field ‘yyextra_r’
# 698 | YY_EXTRA_TYPE yyextra_r;
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmExprLexer.cxx:694: note: a field of same name but different type is defined in another translation unit
# 694 | YY_EXTRA_TYPE yyextra_r;
cmake-3.28.3-build/cmake-3.28.3/Source/cmCommandArgumentParserHelper.h:13:7: note: type name ‘cmCommandArgumentParserHelper’ should match type name ‘cmExprParserHelper’
# 13 | class cmCommandArgumentParserHelper
# | ^
cmake-3.28.3-build/cmake-3.28.3/Source/cmExprParserHelper.h:12:7: note: the incompatible type is defined here
# 12 | class cmExprParserHelper
# | ^
# 692|
# 693| /* Holds the entire state of the reentrant scanner. */
# 694|-> struct yyguts_t
# 695| {
# 696|
Error: CPPCHECK_WARNING: [#def51]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCommandArgumentParser.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def52]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCommandArgumentParserTokens.h:51: warning[-Wodr]: type ‘yytokentype’ violates the C++ One Definition Rule
# 51 | enum yytokentype
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmExprParserTokens.h:51: note: an enum with different value name is defined in another translation unit
# 51 | enum yytokentype
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCommandArgumentParserTokens.h:57: note: name ‘cal_ENVCURLY’ differs from name ‘exp_PLUS’ defined in another translation unit
# 57 | cal_ENVCURLY = 258, /* cal_ENVCURLY */
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmExprParserTokens.h:57: note: mismatching definition
# 57 | exp_PLUS = 258, /* exp_PLUS */
# 49| #ifndef YYTOKENTYPE
# 50| # define YYTOKENTYPE
# 51|-> enum yytokentype
# 52| {
# 53| YYEMPTY = -2,
Error: CPPCHECK_WARNING: [#def53]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmDependsJavaLexer.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def54]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmDependsJavaParser.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def55]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmExprLexer.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def56]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmExprLexer.cxx:690: warning[-Wodr]: type ‘struct yyguts_t’ violates the C++ One Definition Rule
# 690 | struct yyguts_t
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmFortranLexer.cxx:878: note: a different type is defined in another translation unit
# 878 | struct yyguts_t
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmExprLexer.cxx:694: note: the first difference of corresponding definitions is field ‘yyextra_r’
# 694 | YY_EXTRA_TYPE yyextra_r;
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmFortranLexer.cxx:882: note: a field of same name but different type is defined in another translation unit
# 882 | YY_EXTRA_TYPE yyextra_r;
cmake-3.28.3-build/cmake-3.28.3/Source/cmExprParserHelper.h:12:7: note: type name ‘cmExprParserHelper’ should match type name ‘cmFortranParser_s’
# 12 | class cmExprParserHelper
# | ^
# 688|
# 689| /* Holds the entire state of the reentrant scanner. */
# 690|-> struct yyguts_t
# 691| {
# 692|
Error: CPPCHECK_WARNING: [#def57]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmExprParser.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def58]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmFortranLexer.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def59]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmFortranLexer.cxx:878: warning[-Wodr]: type ‘struct yyguts_t’ violates the C++ One Definition Rule
# 878 | struct yyguts_t
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCommandArgumentLexer.cxx:694: note: a different type is defined in another translation unit
# 694 | struct yyguts_t
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmFortranLexer.cxx:882: note: the first difference of corresponding definitions is field ‘yyextra_r’
# 882 | YY_EXTRA_TYPE yyextra_r;
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCommandArgumentLexer.cxx:698: note: a field of same name but different type is defined in another translation unit
# 698 | YY_EXTRA_TYPE yyextra_r;
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmFortranLexer.cxx:878: note: type name ‘cmFortranParser_s’ should match type name ‘cmCommandArgumentParserHelper’
# 878 | struct yyguts_t
cmake-3.28.3-build/cmake-3.28.3/Source/cmCommandArgumentParserHelper.h:13:7: note: the incompatible type is defined here
# 13 | class cmCommandArgumentParserHelper
# | ^
# 876|
# 877| /* Holds the entire state of the reentrant scanner. */
# 878|-> struct yyguts_t
# 879| {
# 880|
Error: CPPCHECK_WARNING: [#def60]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmFortranParser.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def61]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmFortranParserTokens.h:51: warning[-Wodr]: type ‘yytokentype’ violates the C++ One Definition Rule
# 51 | enum yytokentype
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCommandArgumentParserTokens.h:51: note: an enum with different value name is defined in another translation unit
# 51 | enum yytokentype
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmFortranParserTokens.h:57: note: name ‘EOSTMT’ differs from name ‘cal_ENVCURLY’ defined in another translation unit
# 57 | EOSTMT = 258, /* EOSTMT */
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmCommandArgumentParserTokens.h:57: note: mismatching definition
# 57 | cal_ENVCURLY = 258, /* cal_ENVCURLY */
# 49| #ifndef YYTOKENTYPE
# 50| # define YYTOKENTYPE
# 51|-> enum yytokentype
# 52| {
# 53| YYEMPTY = -2,
Error: CPPCHECK_WARNING: [#def62]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmGccDepfileLexer.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def63]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c: scope_hint: In function ‘cmListFileLexer_yy_create_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1924:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1032:1: note: in expansion of macro ‘YY_DECL’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1057:25: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1057:25: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:2068:13: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1057:25: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1059:33: note: in expansion of macro ‘yy_create_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1910:21: note: in expansion of macro ‘yy_create_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1914:31: note: in expansion of macro ‘yyalloc’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c: scope_hint: In function ‘cmListFileLexer_yy_create_buffer’
# 1922| */
# 1923| b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 1924|-> if ( ! b->yy_ch_buf )
# 1925| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1926|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c: scope_hint: In function ‘cmListFileLexer_yy_init_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1966:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1032:1: note: in expansion of macro ‘YY_DECL’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1618:25: note: in expansion of macro ‘yyrestart’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1618:25: note: in expansion of macro ‘yyrestart’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1845:10: note: in expansion of macro ‘yyrestart’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1850:9: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:2068:13: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:2080:66: note: in expansion of macro ‘yyalloc’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c: scope_hint: In function ‘cmListFileLexer_yy_init_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1850:9: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1852:13: note: in expansion of macro ‘yy_create_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1910:21: note: in expansion of macro ‘yy_create_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1929:9: note: in expansion of macro ‘yy_init_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1958:17: note: in expansion of macro ‘yy_init_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1964:9: note: in expansion of macro ‘yy_flush_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1987:10: note: in expansion of macro ‘yy_flush_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:2007:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:2007:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:2007:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1964:9: note: in expansion of macro ‘yy_flush_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1973:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1973:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1973:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1929:9: note: in expansion of macro ‘yy_init_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1852:13: note: in expansion of macro ‘yy_create_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1855:9: note: in expansion of macro ‘yy_init_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1855:9: note: in expansion of macro ‘yy_init_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1855:9: note: in expansion of macro ‘yy_init_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1958:17: note: in expansion of macro ‘yy_init_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1964:9: note: in expansion of macro ‘yy_flush_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1987:10: note: in expansion of macro ‘yy_flush_buffer’
cmake-3.28.3-build/cmake-3.28.3/Source/LexerParser/cmListFileLexer.c:1964:9: note: in expansion of macro ‘yy_flush_buffer’
# 1964| yy_flush_buffer( b , yyscanner);
# 1965|
# 1966|-> b->yy_input_file = file;
# 1967| b->yy_fill_buffer = 1;
# 1968|
Error: CPPCHECK_WARNING: [#def66]
cmake-3.28.3-build/cmake-3.28.3/Source/bindexplib.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def67]
cmake-3.28.3-build/cmake-3.28.3/Source/cmAddCustomCommandCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def68]
cmake-3.28.3-build/cmake-3.28.3/Source/cmAddCustomTargetCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def69]
cmake-3.28.3-build/cmake-3.28.3/Source/cmAddExecutableCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def70]
cmake-3.28.3-build/cmake-3.28.3/Source/cmAddLibraryCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def71]
cmake-3.28.3-build/cmake-3.28.3/Source/cmAddSubDirectoryCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def72]
cmake-3.28.3-build/cmake-3.28.3/Source/cmAddTestCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def73]
cmake-3.28.3-build/cmake-3.28.3/Source/cmArchiveWrite.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def74]
cmake-3.28.3-build/cmake-3.28.3/Source/cmBinUtilsLinuxELFLinker.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def75]
cmake-3.28.3-build/cmake-3.28.3/Source/cmBinUtilsLinuxELFObjdumpGetRuntimeDependenciesTool.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def76]
cmake-3.28.3-build/cmake-3.28.3/Source/cmBinUtilsMacOSMachOLinker.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def77]
cmake-3.28.3-build/cmake-3.28.3/Source/cmBinUtilsMacOSMachOOToolGetRuntimeDependenciesTool.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def78]
cmake-3.28.3-build/cmake-3.28.3/Source/cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def79]
cmake-3.28.3-build/cmake-3.28.3/Source/cmBinUtilsWindowsPEObjdumpGetRuntimeDependenciesTool.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def80]
cmake-3.28.3-build/cmake-3.28.3/Source/cmBlockCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def81]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCMakeHostSystemInformationCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def82]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCMakeLanguageCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def83]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCMakeMinimumRequired.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def84]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCMakePathCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def85]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCMakePresetsErrors.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def86]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCMakePresetsGraph.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def87]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCMakePresetsGraphReadJSON.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def88]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCMakePresetsGraphReadJSONBuildPresets.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def89]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCMakePresetsGraphReadJSONConfigurePresets.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def90]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCMakePresetsGraphReadJSONPackagePresets.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def91]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCMakePresetsGraphReadJSONTestPresets.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def92]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCMakePresetsGraphReadJSONWorkflowPresets.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def93]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCTest.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def94]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCacheManager.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def95]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCommandArgumentParserHelper.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def96]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCommonTargetGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def97]
cmake-3.28.3-build/cmake-3.28.3/Source/cmComputeLinkDepends.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def98]
cmake-3.28.3-build/cmake-3.28.3/Source/cmComputeLinkInformation.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def99]
cmake-3.28.3-build/cmake-3.28.3/Source/cmComputeTargetDepends.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def100]
cmake-3.28.3-build/cmake-3.28.3/Source/cmConditionEvaluator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def101]
cmake-3.28.3-build/cmake-3.28.3/Source/cmConfigureFileCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def102]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCoreTryCompile.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def103]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCreateTestSourceList.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def104]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCustomCommandGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def105]
cmake-3.28.3-build/cmake-3.28.3/Source/cmCxxModuleMapper.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-398): [#def106]
cmake-3.28.3-build/cmake-3.28.3/Source/cmDebuggerBreakpointManager.cxx:91: error[containerOutOfBounds]: Out of bounds access in expression 'breakpoints[i]' because 'breakpoints' is empty.
# 89| for (size_t i = 0; i < breakpoints.size(); i++) {
# 90| int64_t correctedLine =
# 91|-> CalibrateBreakpointLine(sourcePath, breakpoints[i].line);
# 92| if (correctedLine > 0) {
# 93| Breakpoints[sourcePath].emplace_back(NextBreakpointId++,
Error: CPPCHECK_WARNING (CWE-398): [#def107]
cmake-3.28.3-build/cmake-3.28.3/Source/cmDebuggerBreakpointManager.cxx:101: error[containerOutOfBounds]: Out of bounds access in expression 'breakpoints[i]' because 'breakpoints' is empty.
# 99| } else {
# 100| response.breakpoints[i].verified = false;
# 101|-> response.breakpoints[i].line = breakpoints[i].line;
# 102| }
# 103| dap::Source dapSrc;
Error: CPPCHECK_WARNING (CWE-398): [#def108]
cmake-3.28.3-build/cmake-3.28.3/Source/cmDebuggerBreakpointManager.cxx:113: error[containerOutOfBounds]: Out of bounds access in expression 'breakpoints[i]' because 'breakpoints' is empty.
# 111| for (size_t i = 0; i < breakpoints.size(); i++) {
# 112| Breakpoints[sourcePath].emplace_back(NextBreakpointId++,
# 113|-> breakpoints[i].line);
# 114| response.breakpoints[i].id = Breakpoints[sourcePath].back().GetId();
# 115| response.breakpoints[i].line = Breakpoints[sourcePath].back().GetLine();
Error: CPPCHECK_WARNING: [#def109]
cmake-3.28.3-build/cmake-3.28.3/Source/cmDefinePropertyCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def110]
cmake-3.28.3-build/cmake-3.28.3/Source/cmDepends.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def111]
cmake-3.28.3-build/cmake-3.28.3/Source/cmDependsC.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def112]
cmake-3.28.3-build/cmake-3.28.3/Source/cmDependsCompiler.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def113]
cmake-3.28.3-build/cmake-3.28.3/Source/cmDependsFortran.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def114]
cmake-3.28.3-build/cmake-3.28.3/Source/cmDependsJavaParserHelper.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def115]
cmake-3.28.3-build/cmake-3.28.3/Source/cmDocumentation.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def116]
cmake-3.28.3-build/cmake-3.28.3/Source/cmDocumentationFormatter.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def117]
cmake-3.28.3-build/cmake-3.28.3/Source/cmDyndepCollation.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def118]
cmake-3.28.3-build/cmake-3.28.3/Source/cmELF.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def119]
cmake-3.28.3-build/cmake-3.28.3/Source/cmExecProgramCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def120]
cmake-3.28.3-build/cmake-3.28.3/Source/cmExecuteProcessCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def121]
cmake-3.28.3-build/cmake-3.28.3/Source/cmExportBuildAndroidMKGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def122]
cmake-3.28.3-build/cmake-3.28.3/Source/cmExportBuildFileGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def123]
cmake-3.28.3-build/cmake-3.28.3/Source/cmExportCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def124]
cmake-3.28.3-build/cmake-3.28.3/Source/cmExportFileGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def125]
cmake-3.28.3-build/cmake-3.28.3/Source/cmExportInstallFileGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def126]
cmake-3.28.3-build/cmake-3.28.3/Source/cmExportLibraryDependenciesCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def127]
cmake-3.28.3-build/cmake-3.28.3/Source/cmExportTryCompileFileGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def128]
cmake-3.28.3-build/cmake-3.28.3/Source/cmExtraCodeBlocksGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def129]
cmake-3.28.3-build/cmake-3.28.3/Source/cmExtraEclipseCDT4Generator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def130]
cmake-3.28.3-build/cmake-3.28.3/Source/cmExtraKateGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def131]
cmake-3.28.3-build/cmake-3.28.3/Source/cmExtraSublimeTextGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def132]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFileAPI.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def133]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFileAPICodemodel.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def134]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFileAPICommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def135]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFileCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def136]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFileCopier.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def137]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFileInstaller.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def138]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFindBase.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def139]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFindCommon.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def140]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFindLibraryCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def141]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFindPackageCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-664): [#def142]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFindPackageCommand.cxx:563: error[mismatchingContainerIterator]: Iterator 'labels->begin()' referring to container 'this->PathGroupLabelMap[PathGroup::All]' is used with container 'labels'.
# 561| std::vector<cmFindCommon::PathLabel>* const labels =
# 562| &this->PathGroupLabelMap[PathGroup::All];
# 563|-> labels->insert(labels->begin(), PathLabel::PackageRedirect);
# 564| labels->insert(
# 565| std::find(labels->begin(), labels->end(), PathLabel::CMakeSystem),
Error: CPPCHECK_WARNING (CWE-664): [#def143]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFindPackageCommand.cxx:564: error[mismatchingContainerIterator]: Iterator 'std::find(labels->begin(),labels->end(),PathLabel::CMakeSystem)' referring to container 'this->PathGroupLabelMap[PathGroup::All]' is used with container 'labels'.
# 562| &this->PathGroupLabelMap[PathGroup::All];
# 563| labels->insert(labels->begin(), PathLabel::PackageRedirect);
# 564|-> labels->insert(
# 565| std::find(labels->begin(), labels->end(), PathLabel::CMakeSystem),
# 566| PathLabel::UserRegistry);
Error: CPPCHECK_WARNING (CWE-664): [#def144]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFindPackageCommand.cxx:567: error[mismatchingContainerIterator]: Iterator 'std::find(labels->begin(),labels->end(),PathLabel::CMakeSystem)' referring to container 'this->PathGroupLabelMap[PathGroup::All]' is used with container 'labels'.
# 565| std::find(labels->begin(), labels->end(), PathLabel::CMakeSystem),
# 566| PathLabel::UserRegistry);
# 567|-> labels->insert(
# 568| std::find(labels->begin(), labels->end(), PathLabel::CMakeSystem),
# 569| PathLabel::Builds);
Error: CPPCHECK_WARNING (CWE-664): [#def145]
cmake-3.28.3-build/cmake-3.28.3/Source/cmFindPackageCommand.cxx:570: error[mismatchingContainerIterator]: Iterator 'std::find(labels->begin(),labels->end(),PathLabel::Guess)' referring to container 'this->PathGroupLabelMap[PathGroup::All]' is used with container 'labels'.
# 568| std::find(labels->begin(), labels->end(), PathLabel::CMakeSystem),
# 569| PathLabel::Builds);
# 570|-> labels->insert(std::find(labels->begin(), labels->end(), PathLabel::Guess),
# 571| PathLabel::SystemRegistry);
# 572|
Error: CPPCHECK_WARNING: [#def146]
cmake-3.28.3-build/cmake-3.28.3/Source/cmForEachCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def147]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGccDepfileLexerHelper.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def148]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGccDepfileReader.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def149]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGeneratorExpression.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def150]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGeneratorExpressionEvaluationFile.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def151]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGeneratorExpressionEvaluator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def152]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGeneratorExpressionNode.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def153]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGeneratorExpressionParser.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def154]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGeneratorTarget.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def155]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGeneratorTarget.cxx:385: error[returnTempReference]: Reference to temporary returned.
# 383| std::string const& prop) const
# 384| {
# 385|-> return this->GetProperty(prop);
# 386| }
# 387|
Error: COMPILER_WARNING (CWE-563): [#def156]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGeneratorTarget.cxx: scope_hint: In function ‘void {anonymous}::addFileSetEntry(const cmGeneratorTarget*, const std::string&, cmGeneratorExpressionDAGChecker*, const cmFileSet*, EvaluatedTargetPropertyEntries&)’
cmake-3.28.3-build/cmake-3.28.3/Source/cmGeneratorTarget.cxx:1640:10: warning[-Wunused-variable]: unused variable ‘cm’
# 1640 | cmake* cm = headTarget->GetLocalGenerator()->GetCMakeInstance();
# | ^~
# 1638| }
# 1639| }
# 1640|-> cmake* cm = headTarget->GetLocalGenerator()->GetCMakeInstance();
# 1641| for (auto& entryCge : fileSet->CompileFileEntries()) {
# 1642| TargetPropertyEntryFileSet tpe(dirs, contextSensitiveDirs,
Error: CPPCHECK_WARNING: [#def157]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGetCMakePropertyCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def158]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGetFilenameComponentCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def159]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGetPropertyCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def160]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGetSourceFilePropertyCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def161]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGetTargetPropertyCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def162]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGetTestPropertyCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def163]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGhsMultiTargetGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def164]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGlobVerificationManager.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def165]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGlobalCommonGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def166]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGlobalGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def167]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGlobalGenerator.cxx:3301: error[uninitvar]: Uninitialized variable: hash
# 3299|
# 3300| // Associate the hash with this output.
# 3301|-> this->RuleHashes[fname] = hash;
# 3302| }
# 3303|
Error: CPPCHECK_WARNING (CWE-457): [#def168]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGlobalGenerator.cxx:3358: error[uninitvar]: Uninitialized variable: hash
# 3356| RuleHash hash;
# 3357| memcpy(hash.Data, line.c_str(), 32);
# 3358|-> this->RuleHashes[fname] = hash;
# 3359| }
# 3360| }
Error: CPPCHECK_WARNING: [#def169]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGlobalGhsMultiGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def170]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGlobalNinjaGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-909): [#def171]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGlobalNinjaGenerator.cxx:2622: error[uninitStructMember]: Uninitialized struct member: module_reference.Method
# 2620| }
# 2621| }
# 2622|-> usages.Reference[i.key().asString()] = module_reference;
# 2623| }
# 2624| }
Error: CPPCHECK_WARNING (CWE-457): [#def172]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGlobalNinjaGenerator.cxx:2622: warning[uninitvar]: Uninitialized variable: module_reference.Method
# 2620| }
# 2621| }
# 2622|-> usages.Reference[i.key().asString()] = module_reference;
# 2623| }
# 2624| }
Error: CPPCHECK_WARNING: [#def173]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGlobalUnixMakefileGenerator3.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def174]
cmake-3.28.3-build/cmake-3.28.3/Source/cmGraphVizWriter.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def175]
cmake-3.28.3-build/cmake-3.28.3/Source/cmHexFileConverter.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def176]
cmake-3.28.3-build/cmake-3.28.3/Source/cmIfCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def177]
cmake-3.28.3-build/cmake-3.28.3/Source/cmIncludeCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def178]
cmake-3.28.3-build/cmake-3.28.3/Source/cmInstallCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def179]
cmake-3.28.3-build/cmake-3.28.3/Source/cmInstallFilesGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def180]
cmake-3.28.3-build/cmake-3.28.3/Source/cmInstallTargetGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def181]
cmake-3.28.3-build/cmake-3.28.3/Source/cmJSONHelpers.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def182]
cmake-3.28.3-build/cmake-3.28.3/Source/cmLinkItemGraphVisitor.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def183]
cmake-3.28.3-build/cmake-3.28.3/Source/cmLinkLineDeviceComputer.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def184]
cmake-3.28.3-build/cmake-3.28.3/Source/cmListCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def185]
cmake-3.28.3-build/cmake-3.28.3/Source/cmListFileCache.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def186]
cmake-3.28.3-build/cmake-3.28.3/Source/cmLoadCacheCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def187]
cmake-3.28.3-build/cmake-3.28.3/Source/cmLoadCommandCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def188]
cmake-3.28.3-build/cmake-3.28.3/Source/cmLocalGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def189]
cmake-3.28.3-build/cmake-3.28.3/Source/cmLocalNinjaGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def190]
cmake-3.28.3-build/cmake-3.28.3/Source/cmLocalUnixMakefileGenerator3.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def191]
cmake-3.28.3-build/cmake-3.28.3/Source/cmMacroCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def192]
cmake-3.28.3-build/cmake-3.28.3/Source/cmMakefile.h:443: error[returnTempReference]: Reference to temporary returned.
# 441| const std::string& GetIncludeRegularExpression() const
# 442| {
# 443|-> return this->GetProperty("INCLUDE_REGULAR_EXPRESSION");
# 444| }
# 445|
Error: CPPCHECK_WARNING: [#def193]
cmake-3.28.3-build/cmake-3.28.3/Source/cmMakefileExecutableTargetGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def194]
cmake-3.28.3-build/cmake-3.28.3/Source/cmMakefileLibraryTargetGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def195]
cmake-3.28.3-build/cmake-3.28.3/Source/cmMakefileTargetGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def196]
cmake-3.28.3-build/cmake-3.28.3/Source/cmMakefileTargetGenerator.cxx:1257: error[invalidLifetime]: Using object that points to local variable 'shellObjI' that is out of scope.
# 1255| std::string shellObjS = this->LocalGenerator->ConvertToOutputFormat(
# 1256| objS, cmOutputConverter::SHELL);
# 1257|-> vars.AssemblySource = shellObjS.c_str();
# 1258|
# 1259| // Expand placeholders in the commands.
Error: CPPCHECK_WARNING: [#def197]
cmake-3.28.3-build/cmake-3.28.3/Source/cmMarkAsAdvancedCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def198]
cmake-3.28.3-build/cmake-3.28.3/Source/cmMessageCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def199]
cmake-3.28.3-build/cmake-3.28.3/Source/cmMessenger.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def200]
cmake-3.28.3-build/cmake-3.28.3/Source/cmNinjaNormalTargetGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def201]
cmake-3.28.3-build/cmake-3.28.3/Source/cmNinjaTargetGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def202]
cmake-3.28.3-build/cmake-3.28.3/Source/cmNinjaUtilityTargetGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def203]
cmake-3.28.3-build/cmake-3.28.3/Source/cmOutputConverter.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def204]
cmake-3.28.3-build/cmake-3.28.3/Source/cmOutputRequiredFilesCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def205]
cmake-3.28.3-build/cmake-3.28.3/Source/cmParseArgumentsCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def206]
cmake-3.28.3-build/cmake-3.28.3/Source/cmPolicies.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-587): [#def207]
cmake-3.28.3-build/cmake-3.28.3/Source/cmPolicies.cxx:418: error[assignBoolToPointer]: Boolean value assigned to pointer.
# 416| cmPolicies::PolicyStatus status)
# 417| {
# 418|-> this->Status[(POLICY_STATUS_COUNT * id) + OLD] = (status == OLD);
# 419| this->Status[(POLICY_STATUS_COUNT * id) + WARN] = (status == WARN);
# 420| this->Status[(POLICY_STATUS_COUNT * id) + NEW] = (status == NEW);
Error: CPPCHECK_WARNING (CWE-587): [#def208]
cmake-3.28.3-build/cmake-3.28.3/Source/cmPolicies.cxx:419: error[assignBoolToPointer]: Boolean value assigned to pointer.
# 417| {
# 418| this->Status[(POLICY_STATUS_COUNT * id) + OLD] = (status == OLD);
# 419|-> this->Status[(POLICY_STATUS_COUNT * id) + WARN] = (status == WARN);
# 420| this->Status[(POLICY_STATUS_COUNT * id) + NEW] = (status == NEW);
# 421| }
Error: CPPCHECK_WARNING (CWE-587): [#def209]
cmake-3.28.3-build/cmake-3.28.3/Source/cmPolicies.cxx:420: error[assignBoolToPointer]: Boolean value assigned to pointer.
# 418| this->Status[(POLICY_STATUS_COUNT * id) + OLD] = (status == OLD);
# 419| this->Status[(POLICY_STATUS_COUNT * id) + WARN] = (status == WARN);
# 420|-> this->Status[(POLICY_STATUS_COUNT * id) + NEW] = (status == NEW);
# 421| }
# 422|
Error: CPPCHECK_WARNING: [#def210]
cmake-3.28.3-build/cmake-3.28.3/Source/cmProjectCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def211]
cmake-3.28.3-build/cmake-3.28.3/Source/cmQtAutoGen.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def212]
cmake-3.28.3-build/cmake-3.28.3/Source/cmQtAutoGenInitializer.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def213]
cmake-3.28.3-build/cmake-3.28.3/Source/cmQtAutoMocUic.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def214]
cmake-3.28.3-build/cmake-3.28.3/Source/cmRST.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def215]
cmake-3.28.3-build/cmake-3.28.3/Source/cmRulePlaceholderExpander.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def216]
cmake-3.28.3-build/cmake-3.28.3/Source/cmScanDepFormat.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def217]
cmake-3.28.3-build/cmake-3.28.3/Source/cmSearchPath.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def218]
cmake-3.28.3-build/cmake-3.28.3/Source/cmSeparateArgumentsCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def219]
cmake-3.28.3-build/cmake-3.28.3/Source/cmSetCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def220]
cmake-3.28.3-build/cmake-3.28.3/Source/cmSetPropertyCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def221]
cmake-3.28.3-build/cmake-3.28.3/Source/cmSetSourceFilesPropertiesCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def222]
cmake-3.28.3-build/cmake-3.28.3/Source/cmSetTargetPropertiesCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def223]
cmake-3.28.3-build/cmake-3.28.3/Source/cmSetTestsPropertiesCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def224]
cmake-3.28.3-build/cmake-3.28.3/Source/cmSiteNameCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def225]
cmake-3.28.3-build/cmake-3.28.3/Source/cmSourceFile.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def226]
cmake-3.28.3-build/cmake-3.28.3/Source/cmSourceFileLocation.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def227]
cmake-3.28.3-build/cmake-3.28.3/Source/cmSourceGroupCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def228]
cmake-3.28.3-build/cmake-3.28.3/Source/cmStandardLevelResolver.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def229]
cmake-3.28.3-build/cmake-3.28.3/Source/cmStateDirectory.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def230]
cmake-3.28.3-build/cmake-3.28.3/Source/cmStringCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def231]
cmake-3.28.3-build/cmake-3.28.3/Source/cmStringCommand.cxx:970: error[returnTempReference]: Reference to temporary returned.
# 968| const std::string& res = *this->begin();
# 969| this->advance(1);
# 970|-> return res;
# 971| }
# 972|
Error: CPPCHECK_WARNING: [#def232]
cmake-3.28.3-build/cmake-3.28.3/Source/cmStringReplaceHelper.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def233]
cmake-3.28.3-build/cmake-3.28.3/Source/cmSystemTools.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def234]
cmake-3.28.3-build/cmake-3.28.3/Source/cmTarget.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def235]
cmake-3.28.3-build/cmake-3.28.3/Source/cmTargetLinkLibrariesCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def236]
cmake-3.28.3-build/cmake-3.28.3/Source/cmTargetPropCommandBase.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def237]
cmake-3.28.3-build/cmake-3.28.3/Source/cmTargetSourcesCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def238]
cmake-3.28.3-build/cmake-3.28.3/Source/cmTestGenerator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def239]
cmake-3.28.3-build/cmake-3.28.3/Source/cmTimestamp.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def240]
cmake-3.28.3-build/cmake-3.28.3/Source/cmTransformDepfile.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def241]
cmake-3.28.3-build/cmake-3.28.3/Source/cmTryRunCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def242]
cmake-3.28.3-build/cmake-3.28.3/Source/cmUVProcessChain.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def243]
cmake-3.28.3-build/cmake-3.28.3/Source/cmUtilitySourceCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def244]
cmake-3.28.3-build/cmake-3.28.3/Source/cmVariableRequiresCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def245]
cmake-3.28.3-build/cmake-3.28.3/Source/cmWriteFileCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def246]
cmake-3.28.3-build/cmake-3.28.3/Source/cmXcFramework.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def247]
cmake-3.28.3-build/cmake-3.28.3/Source/cm_get_date.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def248]
cmake-3.28.3-build/cmake-3.28.3/Source/cmake.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def249]
cmake-3.28.3-build/cmake-3.28.3/Source/cmakemain.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-1164): [#def250]
cmake-3.28.3-build/cmake-3.28.3/Source/cmakemain.cxx:659:6: warning[-Wunused-function]: ‘bool {anonymous}::parse_default_directory_permissions(const std::string&, std::string&)’ defined but not used
# 659 | bool parse_default_directory_permissions(const std::string& permissions,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 657| }
# 658|
# 659|-> bool parse_default_directory_permissions(const std::string& permissions,
# 660| std::string& parsedPermissionsVar)
# 661| {
Error: CPPCHECK_WARNING: [#def251]
cmake-3.28.3-build/cmake-3.28.3/Source/cmcmd.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def252]
cmake-3.28.3-build/cmake-3.28.3/Source/ctest.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def253]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/Base64.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def254]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/FStream.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def255]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/Glob.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def256]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/MD5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def257]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/ProcessUNIX.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def258]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/ProcessUNIX.c: scope_hint: In function ‘cmsysProcess_AddCommand’
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/ProcessUNIX.c:428:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*cp.Commands’
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Bootstrap.cmk/cmsys/Process.h:6: included_from: Included from here.
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/ProcessUNIX.c:8: included_from: Included from here.
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Bootstrap.cmk/cmsys/Process.h:21:35: note: in expansion of macro ‘kwsys_ns’
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/ProcessUNIX.c:382:5: note: in expansion of macro ‘kwsysProcess_SetCommand’
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Bootstrap.cmk/cmsys/Process.h:22:35: note: in expansion of macro ‘kwsys_ns’
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/ProcessUNIX.c:401:12: note: in expansion of macro ‘kwsysProcess_AddCommand’
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Bootstrap.cmk/cmsys/Process.h:22:35: note: in expansion of macro ‘kwsys_ns’
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/ProcessUNIX.c:401:12: note: in expansion of macro ‘kwsysProcess_AddCommand’
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Bootstrap.cmk/cmsys/Process.h:22:35: note: in expansion of macro ‘kwsys_ns’
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/ProcessUNIX.c:406:5: note: in expansion of macro ‘kwsysProcess_AddCommand’
# 426| int i;
# 427| for (i = 0; i < cp->NumberOfCommands; ++i) {
# 428|-> newCommands[i] = cp->Commands[i];
# 429| }
# 430| }
Error: CLANG_WARNING: [#def259]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/ProcessUNIX.c:461:46: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 459| for (i = 0; i < n; ++i) {
# 460| assert(command[i]); /* Quiet Clang scan-build. */
# 461|-> newCommands[cp->NumberOfCommands][i] = strdup(command[i]);
# 462| if (!newCommands[cp->NumberOfCommands][i]) {
# 463| break;
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def260]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/ProcessUNIX.c:1658:13: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘*cp.SignalPipe’
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Bootstrap.cmk/cmsys/Process.h:83:29: note: in expansion of macro ‘kwsys_ns’
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/ProcessUNIX.c:1441:6: note: in expansion of macro ‘kwsysProcess_Kill’
# 1656| /* Keep trying to close until it is not interrupted by a
# 1657| * signal. */
# 1658|-> while ((close(*pfd) < 0) && (errno == EINTR)) {
# 1659| }
# 1660| *pfd = -1;
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def261]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/ProcessUNIX.c: scope_hint: In function ‘kwsysProcessCleanupDescriptor.part.0’
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/ProcessUNIX.c:1658:13: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘*pfd’
# 1656| /* Keep trying to close until it is not interrupted by a
# 1657| * signal. */
# 1658|-> while ((close(*pfd) < 0) && (errno == EINTR)) {
# 1659| }
# 1660| *pfd = -1;
Error: CPPCHECK_WARNING: [#def262]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/RegularExpression.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def263]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/System.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def264]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/System.c: scope_hint: In function ‘kwsysSystem__AppendByte’
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/System.c:35:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*begin’
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Bootstrap.cmk/cmsys/System.h:6: included_from: Included from here.
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/System.c:4: included_from: Included from here.
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Bootstrap.cmk/cmsys/System.h:18:5: note: in expansion of macro ‘kwsys_ns’
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/System.c:227:8: note: in expansion of macro ‘kwsysSystem_Parse_CommandForUnix’
# 33| return 0;
# 34| }
# 35|-> memcpy(newBuffer, *begin, (size_t)(length) * sizeof(char));
# 36| if (*begin != local) {
# 37| free(*begin);
Error: CPPCHECK_WARNING: [#def265]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/SystemInformation.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def266]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/SystemTools.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def267]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/SystemTools.cxx:1962: error[returnDanglingLifetime]: Returning pointer to local variable 'newstr' that will be invalid when returning.
# 1960| if (str) {
# 1961| char* newstr = new char[strlen(str) + 1];
# 1962|-> return strcpy(newstr, str);
# 1963| }
# 1964| return nullptr;
Error: CPPCHECK_WARNING: [#def268]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/Terminal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def269]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/kwsysPlatformTestsCXX.cxx:131:7: warning[deadcode.DeadStores]: Value stored to 'ierr' during its initialization is never read
# 129| {
# 130| Dl_info info;
# 131|-> int ierr = dladdr((void*)main, &info);
# 132| return 0;
# 133| }
Error: CLANG_WARNING: [#def270]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/kwsysPlatformTestsCXX.cxx:151:9: warning[deadcode.DeadStores]: Value stored to 'demangledFunction' during its initialization is never read
# 149| char buffer[512] = { '\0' };
# 150| const char* function = "_ZN5kwsys17SystemInformation15GetProgramStackEii";
# 151|-> char* demangledFunction =
# 152| abi::__cxa_demangle(function, buffer, &bufferLen, &status);
# 153| return status;
Error: CPPCHECK_WARNING: [#def271]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/testCommandLineArguments.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def272]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/testCommandLineArguments1.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def273]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/testProcess.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def274]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/testProcess.c:138:19: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'invalidAddress')
# 136| assert(invalidAddress); /* Quiet Clang scan-build. */
# 137| /* Provoke deliberate crash by writing to the invalid address. */
# 138|-> *invalidAddress = 0;
# 139| #endif
# 140| fprintf(stdout, "Output after crash on stdout from crash test.\n");
Error: GCC_ANALYZER_WARNING (CWE-835): [#def275]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/testProcess.c: scope_hint: In function ‘test6’
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/testProcess.c:186:5: warning[-Wanalyzer-infinite-loop]: infinite loop
# 184| /* Generate huge amounts of output to test killing. */
# 185| for (;;) {
# 186|-> fwrite(runaway, 1, TEST6_SIZE + 1, stdout);
# 187| fflush(stdout);
# 188| }
Error: CPPCHECK_WARNING: [#def276]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/testStatus.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def277]
cmake-3.28.3-build/cmake-3.28.3/Source/kwsys/testSystemTools.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def278]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testArgumentParser.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def279]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testCMExtAlgorithm.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def280]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testCMakePath.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def281]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testCTestBinPacker.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def282]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testCTestResourceAllocator.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def283]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testDebug.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def284]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testDebuggerAdapter.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def285]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testDebuggerAdapterPipe.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def286]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testDebuggerBreakpointManager.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def287]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testDebuggerVariables.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def288]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testDebuggerVariablesHelper.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def289]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testFindPackageCommand.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def290]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testGeneratedFileStream.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def291]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testJSONHelpers.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def292]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testList.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def293]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testOptional.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def294]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testRST.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def295]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testRange.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def296]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testString.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def297]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testStringAlgorithms.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-664): [#def298]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testStringAlgorithms.cxx:163: error[invalidContainer]: Using pointer to local variable 'val' that may be invalid.
# 161| expect = "cmStrCat " + std::move(expect);
# 162| }
# 163|-> if (val.data() != data || val.capacity() != capacity) {
# 164| moved = false;
# 165| }
Error: CPPCHECK_WARNING: [#def299]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testSystemTools.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def300]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testUTF8.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def301]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testUVProcessChain.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def302]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testUVProcessChainHelper.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def303]
cmake-3.28.3-build/cmake-3.28.3/Tests/CMakeLib/testUVStreambuf.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def304]
cmake-3.28.3-build/cmake-3.28.3/Tests/RunCMake/CTestResourceAllocation/ctresalloc.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def305]
cmake-3.28.3-build/cmake-3.28.3/Tests/RunCMake/detect_jobserver.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def306]
cmake-3.28.3-build/cmake-3.28.3/Tests/RunCMake/detect_jobserver.c: scope_hint: In function ‘jobserver_auth’
cmake-3.28.3-build/cmake-3.28.3/Tests/RunCMake/detect_jobserver.c:65:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strncpy’ must be non-null
# 63| len = (size_t)(end - start);
# 64| result = (char*)malloc(len + 1);
# 65|-> strncpy(result, start, len);
# 66| result[len] = '\0';
# 67|
Error: GCC_ANALYZER_WARNING (CWE-775): [#def307]
cmake-3.28.3-build/cmake-3.28.3/Tests/RunCMake/detect_jobserver.c: scope_hint: In function ‘main’
cmake-3.28.3-build/cmake-3.28.3/Tests/RunCMake/detect_jobserver.c:159:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_file, "w")’
# 157| output_file = argv[1];
# 158| fp = fopen(output_file, "w");
# 159|-> if (fp == NULL) {
# 160| fprintf(stderr, "Error opening output file: %s\n", output_file);
# 161| return 2;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
cmake-3.28.3-build/cmake-3.28.3/Tests/RunCMake/detect_jobserver.c:159:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_file, "w")’
# 157| output_file = argv[1];
# 158| fp = fopen(output_file, "w");
# 159|-> if (fp == NULL) {
# 160| fprintf(stderr, "Error opening output file: %s\n", output_file);
# 161| return 2;
Error: CPPCHECK_WARNING (CWE-404): [#def309]
cmake-3.28.3-build/cmake-3.28.3/Tests/RunCMake/detect_jobserver.c:167: error[resourceLeak]: Resource leak: fp
# 165| if (jobserver == NULL) {
# 166| fprintf(stderr, "%s\n", message);
# 167|-> return 1;
# 168| }
# 169|
Error: CPPCHECK_WARNING (CWE-404): [#def310]
cmake-3.28.3-build/cmake-3.28.3/Tests/RunCMake/detect_jobserver.c:178: error[resourceLeak]: Resource leak: fp
# 176| message[MAX_MESSAGE_LENGTH] = '\0';
# 177|
# 178|-> return result;
# 179| }
Error: GCC_ANALYZER_WARNING (CWE-775): [#def311]
cmake-3.28.3-build/cmake-3.28.3/Tests/RunCMake/pseudo_llvm-rc.c: scope_hint: In function ‘main’
cmake-3.28.3-build/cmake-3.28.3/Tests/RunCMake/pseudo_llvm-rc.c:24:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "rb")’
# 22| return 1;
# 23| }
# 24|-> target = fopen(argv[argc - 2], "wb");
# 25| if (target != NULL) {
# 26| char buffer[500];
Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
cmake-3.28.3-build/cmake-3.28.3/Tests/RunCMake/pseudo_llvm-rc.c:24:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "rb")’
# 22| return 1;
# 23| }
# 24|-> target = fopen(argv[argc - 2], "wb");
# 25| if (target != NULL) {
# 26| char buffer[500];
Error: CPPCHECK_WARNING: [#def313]
cmake-3.28.3-build/cmake-3.28.3/Utilities/KWIML/test/test_int_C.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def314]
cmake-3.28.3-build/cmake-3.28.3/Utilities/KWIML/test/test_int_CXX.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def315]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmcppdap/src/jsoncpp_json_serializer.cpp:15: included_from: Included from here.
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmcppdap/src/jsoncpp_json_serializer.h:18: included_from: Included from here.
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmcppdap/include/dap/protocol.h:25: included_from: Included from here.
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmcppdap/include/dap/typeof.h:19: included_from: Included from here.
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmcppdap/include/dap/types.h:21: included_from: Included from here.
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmcppdap/include/dap/any.h:150:5: warning[core.CallAndMessage]: Called C++ object pointer is null
# 148| assert(value != nullptr);
# 149| #endif
# 150|-> *reinterpret_cast<T*>(value) = val;
# 151| }
# 152| return *this;
Error: CPPCHECK_WARNING: [#def316]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmcppdap/src/io.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def317]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmcppdap/src/session.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def318]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmjsoncpp/src/lib_json/json_reader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def319]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmjsoncpp/src/lib_json/json_value.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def320]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def321]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/md5.c:208:51: warning[-Warray-parameter=]: argument 2 of type ‘unsigned char *’ declared as a pointer
# 208 | void rhash_md5_final(md5_ctx* ctx, unsigned char* result)
# | ~~~~~~~~~~~~~~~^~~~~~
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/md5.c:19: included_from: Included from here.
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/md5.h:25:50: note: previously declared as an array ‘unsigned char[16]’
# 25 | void rhash_md5_final(md5_ctx* ctx, unsigned char result[16]);
# | ~~~~~~~~~~~~~~^~~~~~~~~~
# 206| * @param result calculated hash in binary form
# 207| */
# 208|-> void rhash_md5_final(md5_ctx* ctx, unsigned char* result)
# 209| {
# 210| unsigned index = ((unsigned)ctx->length & 63) >> 2;
Error: CPPCHECK_WARNING: [#def322]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/rhash.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/rhash.c: scope_hint: In function ‘rhash_init’
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/rhash.c:153:16: warning[-Wanalyzer-malloc-leak]: leak of ‘rctx’
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/algorithms.h:6: included_from: Included from here.
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/rhash.c:30: included_from: Included from here.
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/rhash.c:82:26: note: in expansion of macro ‘rhash_ctz’
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/rhash.c:34: included_from: Included from here.
# 151| }
# 152|
# 153|-> return &rctx->rc; /* return allocated and initialized rhash context */
# 154| }
# 155|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def324]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/rhash.c: scope_hint: In function ‘rhash_final’
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/rhash.c:232:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/rhash.c:82:26: note: in expansion of macro ‘rhash_ctz’
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/rhash.c: scope_hint: In function ‘rhash_final’
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/rhash.c: scope_hint: In function ‘rhash_final’
# 230| for (i = 0; i < ectx->hash_vector_size; i++) {
# 231| struct rhash_hash_info* info = ectx->vector[i].hash_info;
# 232|-> assert(info->final != 0);
# 233| assert(info->info->digest_size < sizeof(buffer));
# 234| info->final(ectx->vector[i].context, out);
Error: COMPILER_WARNING (CWE-1164): [#def325]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/rhash.c:250:13: warning[-Wunused-function]: ‘rhash_put_digest’ defined but not used
# 250 | static void rhash_put_digest(rhash ctx, unsigned hash_id, unsigned char* result)
# | ^~~~~~~~~~~~~~~~
# 248| * @param result buffer to put the hash into
# 249| */
# 250|-> static void rhash_put_digest(rhash ctx, unsigned hash_id, unsigned char* result)
# 251| {
# 252| rhash_context_ext* const ectx = (rhash_context_ext*)ctx;
Error: CPPCHECK_WARNING (CWE-682): [#def326]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/rhash.c:329: error[nullPointerArithmetic]: Overflow in pointer arithmetic, NULL pointer is subtracted.
# 327| if (!pmem) return -1; /* errno is set to ENOMEM according to UNIX 98 */
# 328|
# 329|-> align8 = ((unsigned char*)0 - pmem) & 7;
# 330| buffer = pmem + align8;
# 331|
Error: CPPCHECK_WARNING: [#def327]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/sha1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def328]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/sha256.c:213:57: warning[-Warray-parameter=]: argument 2 of type ‘unsigned char *’ declared as a pointer
# 213 | void rhash_sha256_final(sha256_ctx* ctx, unsigned char* result)
# | ~~~~~~~~~~~~~~~^~~~~~
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/sha256.c:20: included_from: Included from here.
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/sha256.h:26:56: note: previously declared as an array ‘unsigned char[32]’
# 26 | void rhash_sha256_final(sha256_ctx* ctx, unsigned char result[32]);
# | ~~~~~~~~~~~~~~^~~~~~~~~~
# 211| * @param result calculated hash in binary form
# 212| */
# 213|-> void rhash_sha256_final(sha256_ctx* ctx, unsigned char* result)
# 214| {
# 215| size_t index = ((unsigned)ctx->length & 63) >> 2;
Error: CPPCHECK_WARNING: [#def329]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibrhash/librhash/sha3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def330]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/timer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def331]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/core.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def332]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/core.c: scope_hint: In function ‘uv__open_file’
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/core.c:1008:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘uv__open_cloexec(path, 0)’
# 1006| int fd;
# 1007|
# 1008|-> fd = open(path, flags | O_CLOEXEC);
# 1009| if (fd == -1)
# 1010| return UV__ERR(errno);
Error: CPPCHECK_WARNING: [#def333]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/fs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def334]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/loop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def335]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/pipe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def336]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/pipe.c: scope_hint: In function ‘uv__pipe_listen’
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/pipe.c:110:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*handle.io_watcher.fd’
# 108| #endif
# 109|
# 110|-> if (listen(uv__stream_fd(handle), backlog))
# 111| return UV__ERR(errno);
# 112|
Error: GCC_ANALYZER_WARNING (CWE-775): [#def337]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/pipe.c:115:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*handle.io_watcher.fd’
# 113| handle->connection_cb = cb;
# 114| handle->io_watcher.cb = uv__server_io;
# 115|-> uv__io_start(handle->loop, &handle->io_watcher, POLLIN);
# 116| return 0;
# 117| }
Error: GCC_ANALYZER_WARNING (CWE-688): [#def338]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/pipe.c: scope_hint: In function ‘uv__pipe_getsockpeername’
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/pipe.c:273:3: warning[-Wanalyzer-null-argument]: use of NULL ‘buffer’ where non-null expected
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/pipe.c: scope_hint: In function ‘uv__pipe_getsockpeername’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 271| }
# 272|
# 273|-> memcpy(buffer, sa.sun_path, addrlen);
# 274| *size = addrlen;
# 275|
Error: CPPCHECK_WARNING: [#def339]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/poll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def340]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/posix-poll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def341]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/process.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def342]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/process.c: scope_hint: In function ‘uv__process_child_init’
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/process.c:336:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘close_fd’
# 334| use_fd = pipes[fd][1];
# 335|
# 336|-> if (use_fd < 0) {
# 337| if (fd >= 3)
# 338| continue;
Error: CPPCHECK_WARNING: [#def343]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/signal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def344]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/stream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def345]
cmake-3.28.3-build/cmake-3.28.3/Utilities/cmlibuv/src/unix/tty.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def346]
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def347]
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c: scope_hint: In function ‘main’
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c:29:38: note: in definition of macro ‘CM_CAST’
<built-in>: note: argument 2 of ‘__builtin_strstr’ must be non-null
# 173| for (i = 0; i < NumTests && testToRun == -1; ++i) {
# 174| char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
# 175|-> if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
# 176| testToRun = i;
# 177| ac -= 2;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def348]
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c:29:38: note: in definition of macro ‘CM_CAST’
<built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null
# 173| for (i = 0; i < NumTests && testToRun == -1; ++i) {
# 174| char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
# 175|-> if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
# 176| testToRun = i;
# 177| ac -= 2;
Error: GCC_ANALYZER_WARNING (CWE-457): [#def349]
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c:29:38: note: in definition of macro ‘CM_CAST’
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c:4: included_from: Included from here.
/usr/include/string.h:350:14: note: argument 1 of ‘strstr’ must be a pointer to a null-terminated string
# 173| for (i = 0; i < NumTests && testToRun == -1; ++i) {
# 174| char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
# 175|-> if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
# 176| testToRun = i;
# 177| ac -= 2;
Error: GCC_ANALYZER_WARNING (CWE-457): [#def350]
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c:29:38: note: in definition of macro ‘CM_CAST’
/usr/include/string.h:350:14: note: argument 2 of ‘strstr’ must be a pointer to a null-terminated string
# 173| for (i = 0; i < NumTests && testToRun == -1; ++i) {
# 174| char *test_name = lowercase(cmakeGeneratedFunctionMapEntries[i].name);
# 175|-> if (partial_match != 0 && strstr(test_name, arg) != CM_NULL) { /* NOLINT */
# 176| testToRun = i;
# 177| ac -= 2;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def351]
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c:29:38: note: in definition of macro ‘CM_CAST’
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
# 177| ac -= 2;
# 178| av += 2;
# 179|-> } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
# 180| testToRun = i;
# 181| ac--;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def352]
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘lowercase(cmakeGeneratedFunctionMapEntries[i].name)’ where non-null expected
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsC.c:29:38: note: in definition of macro ‘CM_CAST’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
# 177| ac -= 2;
# 178| av += 2;
# 179|-> } else if (partial_match == 0 && strcmp(test_name, arg) == 0) {
# 180| testToRun = i;
# 181| ac--;
Error: CPPCHECK_WARNING: [#def353]
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Source/kwsys/cmsysTestsCxx.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def354]
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Tests/CMakeLib/CMakeLibTests.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def355]
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Tests/CMakeLib/PseudoMemcheck/ret0.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def356]
cmake-3.28.3-build/cmake-3.28.3/redhat-linux-build/Tests/CMakeLib/PseudoMemcheck/ret1.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-250.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | cmake-3.28.3-6.fc41 |
store-results-to | /tmp/tmp8rnvlvgy/cmake-3.28.3-6.fc41.tar.xz |
time-created | 2024-07-03 12:46:41 |
time-finished | 2024-07-03 13:20:05 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp8rnvlvgy/cmake-3.28.3-6.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp8rnvlvgy/cmake-3.28.3-6.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |