cmake-3.30.5-1.fc42
List of Findings
Error: COMPILER_WARNING: [#def1]
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmCTestResourceGroupsLexer.cxx:688:8: warning[-Wodr]: type ‘struct yyguts_t’ violates the C++ One Definition Rule
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmCommandArgumentLexer.cxx:694: note: a different type is defined in another translation unit
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmCTestResourceGroupsLexer.cxx:692:19: note: the first difference of corresponding definitions is field ‘yyextra_r’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmCommandArgumentLexer.cxx:698: note: a field of same name but different type is defined in another translation unit
cmake-3.30.5-build/cmake-3.30.5/Source/CTest/cmCTestResourceGroupsLexerHelper.h:10:7: note: type name ‘cmCTestResourceGroupsLexerHelper’ should match type name ‘cmCommandArgumentParserHelper’
cmake-3.30.5-build/cmake-3.30.5/Source/cmCommandArgumentParserHelper.h:13:7: note: the incompatible type is defined here
Error: COMPILER_WARNING: [#def2]
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmCommandArgumentLexer.cxx:694: warning[-Wodr]: type ‘struct yyguts_t’ violates the C++ One Definition Rule
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmExprLexer.cxx:690: note: a different type is defined in another translation unit
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmCommandArgumentLexer.cxx:698: note: the first difference of corresponding definitions is field ‘yyextra_r’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmExprLexer.cxx:694: note: a field of same name but different type is defined in another translation unit
cmake-3.30.5-build/cmake-3.30.5/Source/cmCommandArgumentParserHelper.h:13:7: note: type name ‘cmCommandArgumentParserHelper’ should match type name ‘cmExprParserHelper’
cmake-3.30.5-build/cmake-3.30.5/Source/cmExprParserHelper.h:12:7: note: the incompatible type is defined here
Error: COMPILER_WARNING: [#def3]
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmCommandArgumentParserTokens.h:51: warning[-Wodr]: type ‘yytokentype’ violates the C++ One Definition Rule
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmExprParserTokens.h:51: note: an enum with different value name is defined in another translation unit
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmCommandArgumentParserTokens.h:57: note: name ‘cal_ENVCURLY’ differs from name ‘exp_PLUS’ defined in another translation unit
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmExprParserTokens.h:57: note: mismatching definition
Error: COMPILER_WARNING: [#def4]
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmExprLexer.cxx:690: warning[-Wodr]: type ‘struct yyguts_t’ violates the C++ One Definition Rule
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmFortranLexer.cxx:878: note: a different type is defined in another translation unit
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmExprLexer.cxx:694: note: the first difference of corresponding definitions is field ‘yyextra_r’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmFortranLexer.cxx:882: note: a field of same name but different type is defined in another translation unit
cmake-3.30.5-build/cmake-3.30.5/Source/cmExprParserHelper.h:12:7: note: type name ‘cmExprParserHelper’ should match type name ‘cmFortranParser_s’
Error: COMPILER_WARNING: [#def5]
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmFortranLexer.cxx:878: warning[-Wodr]: type ‘struct yyguts_t’ violates the C++ One Definition Rule
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmCommandArgumentLexer.cxx:694: note: a different type is defined in another translation unit
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmFortranLexer.cxx:882: note: the first difference of corresponding definitions is field ‘yyextra_r’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmCommandArgumentLexer.cxx:698: note: a field of same name but different type is defined in another translation unit
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmFortranLexer.cxx:878: note: type name ‘cmFortranParser_s’ should match type name ‘cmCommandArgumentParserHelper’
cmake-3.30.5-build/cmake-3.30.5/Source/cmCommandArgumentParserHelper.h:13:7: note: the incompatible type is defined here
Error: COMPILER_WARNING: [#def6]
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmFortranParserTokens.h:51: warning[-Wodr]: type ‘yytokentype’ violates the C++ One Definition Rule
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmCommandArgumentParserTokens.h:51: note: an enum with different value name is defined in another translation unit
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmFortranParserTokens.h:57: note: name ‘EOSTMT’ differs from name ‘cal_ENVCURLY’ defined in another translation unit
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmCommandArgumentParserTokens.h:57: note: mismatching definition
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c: scope_hint: In function ‘cmListFileLexer_yy_create_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1924:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1032:1: note: in expansion of macro ‘YY_DECL’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1057:25: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1057:25: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:2068:13: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1057:25: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1059:33: note: in expansion of macro ‘yy_create_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1910:21: note: in expansion of macro ‘yy_create_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1914:31: note: in expansion of macro ‘yyalloc’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c: scope_hint: In function ‘cmListFileLexer_yy_create_buffer’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c: scope_hint: In function ‘cmListFileLexer_yy_init_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1966:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1032:1: note: in expansion of macro ‘YY_DECL’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1618:25: note: in expansion of macro ‘yyrestart’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1618:25: note: in expansion of macro ‘yyrestart’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1845:10: note: in expansion of macro ‘yyrestart’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1850:9: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:2068:13: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:2080:66: note: in expansion of macro ‘yyalloc’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c: scope_hint: In function ‘cmListFileLexer_yy_init_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1850:9: note: in expansion of macro ‘yyensure_buffer_stack’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1852:13: note: in expansion of macro ‘yy_create_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1910:21: note: in expansion of macro ‘yy_create_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1929:9: note: in expansion of macro ‘yy_init_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1958:17: note: in expansion of macro ‘yy_init_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1964:9: note: in expansion of macro ‘yy_flush_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1987:10: note: in expansion of macro ‘yy_flush_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:2007:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:2007:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:2007:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1964:9: note: in expansion of macro ‘yy_flush_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1973:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1973:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1973:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1929:9: note: in expansion of macro ‘yy_init_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1852:13: note: in expansion of macro ‘yy_create_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1855:9: note: in expansion of macro ‘yy_init_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1855:9: note: in expansion of macro ‘yy_init_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1855:9: note: in expansion of macro ‘yy_init_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1958:17: note: in expansion of macro ‘yy_init_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1964:9: note: in expansion of macro ‘yy_flush_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1987:10: note: in expansion of macro ‘yy_flush_buffer’
cmake-3.30.5-build/cmake-3.30.5/Source/LexerParser/cmListFileLexer.c:1964:9: note: in expansion of macro ‘yy_flush_buffer’
Error: CPPCHECK_WARNING (CWE-398): [#def9]
cmake-3.30.5-build/cmake-3.30.5/Source/cmDebuggerBreakpointManager.cxx:91: error[containerOutOfBounds]: Out of bounds access in expression 'breakpoints[i]' because 'breakpoints' is empty.
Error: CPPCHECK_WARNING (CWE-398): [#def10]
cmake-3.30.5-build/cmake-3.30.5/Source/cmDebuggerBreakpointManager.cxx:101: error[containerOutOfBounds]: Out of bounds access in expression 'breakpoints[i]' because 'breakpoints' is empty.
Error: CPPCHECK_WARNING (CWE-398): [#def11]
cmake-3.30.5-build/cmake-3.30.5/Source/cmDebuggerBreakpointManager.cxx:113: error[containerOutOfBounds]: Out of bounds access in expression 'breakpoints[i]' because 'breakpoints' is empty.
Error: CPPCHECK_WARNING (CWE-664): [#def12]
cmake-3.30.5-build/cmake-3.30.5/Source/cmFindPackageCommand.cxx:564: error[mismatchingContainerIterator]: Iterator 'labels->begin()' referring to container 'this->PathGroupLabelMap[PathGroup::All]' is used with container 'labels'.
Error: CPPCHECK_WARNING (CWE-664): [#def13]
cmake-3.30.5-build/cmake-3.30.5/Source/cmFindPackageCommand.cxx:565: error[mismatchingContainerIterator]: Iterator 'std::find(labels->begin(),labels->end(),PathLabel::CMakeSystem)' referring to container 'this->PathGroupLabelMap[PathGroup::All]' is used with container 'labels'.
Error: CPPCHECK_WARNING (CWE-664): [#def14]
cmake-3.30.5-build/cmake-3.30.5/Source/cmFindPackageCommand.cxx:568: error[mismatchingContainerIterator]: Iterator 'std::find(labels->begin(),labels->end(),PathLabel::CMakeSystem)' referring to container 'this->PathGroupLabelMap[PathGroup::All]' is used with container 'labels'.
Error: CPPCHECK_WARNING (CWE-664): [#def15]
cmake-3.30.5-build/cmake-3.30.5/Source/cmFindPackageCommand.cxx:571: error[mismatchingContainerIterator]: Iterator 'std::find(labels->begin(),labels->end(),PathLabel::Guess)' referring to container 'this->PathGroupLabelMap[PathGroup::All]' is used with container 'labels'.
Error: CPPCHECK_WARNING (CWE-562): [#def16]
cmake-3.30.5-build/cmake-3.30.5/Source/cmGeneratorTarget.cxx:218: error[returnTempReference]: Reference to temporary returned.
Error: COMPILER_WARNING (CWE-563): [#def17]
cmake-3.30.5-build/cmake-3.30.5/Source/cmGeneratorTarget_Sources.cxx: scope_hint: In function ‘void {anonymous}::addFileSetEntry(const cmGeneratorTarget*, const std::string&, cmGeneratorExpressionDAGChecker*, const cmFileSet*, EvaluatedTargetPropertyEntries&)’
cmake-3.30.5-build/cmake-3.30.5/Source/cmGeneratorTarget_Sources.cxx:98:10: warning[-Wunused-variable]: unused variable ‘cm’
Error: CPPCHECK_WARNING (CWE-457): [#def18]
cmake-3.30.5-build/cmake-3.30.5/Source/cmGlobalGenerator.cxx:3340: error[uninitvar]: Uninitialized variable: hash
Error: CPPCHECK_WARNING (CWE-457): [#def19]
cmake-3.30.5-build/cmake-3.30.5/Source/cmGlobalGenerator.cxx:3397: error[uninitvar]: Uninitialized variable: hash
Error: CPPCHECK_WARNING (CWE-909): [#def20]
cmake-3.30.5-build/cmake-3.30.5/Source/cmGlobalNinjaGenerator.cxx:2672: error[uninitStructMember]: Uninitialized struct member: module_reference.Method
Error: CPPCHECK_WARNING (CWE-457): [#def21]
cmake-3.30.5-build/cmake-3.30.5/Source/cmGlobalNinjaGenerator.cxx:2672: warning[uninitvar]: Uninitialized variable: module_reference.Method
Error: CPPCHECK_WARNING (CWE-562): [#def22]
cmake-3.30.5-build/cmake-3.30.5/Source/cmMakefile.h:444: error[returnTempReference]: Reference to temporary returned.
Error: CPPCHECK_WARNING (CWE-562): [#def23]
cmake-3.30.5-build/cmake-3.30.5/Source/cmMakefileTargetGenerator.cxx:1257: error[invalidLifetime]: Using object that points to local variable 'shellObjI' that is out of scope.
Error: CPPCHECK_WARNING (CWE-587): [#def24]
cmake-3.30.5-build/cmake-3.30.5/Source/cmPolicies.cxx:418: error[assignBoolToPointer]: Boolean value assigned to pointer.
Error: CPPCHECK_WARNING (CWE-587): [#def25]
cmake-3.30.5-build/cmake-3.30.5/Source/cmPolicies.cxx:419: error[assignBoolToPointer]: Boolean value assigned to pointer.
Error: CPPCHECK_WARNING (CWE-587): [#def26]
cmake-3.30.5-build/cmake-3.30.5/Source/cmPolicies.cxx:420: error[assignBoolToPointer]: Boolean value assigned to pointer.
Error: CPPCHECK_WARNING (CWE-562): [#def27]
cmake-3.30.5-build/cmake-3.30.5/Source/cmStringCommand.cxx:969: error[returnTempReference]: Reference to temporary returned.
Error: COMPILER_WARNING (CWE-1164): [#def28]
cmake-3.30.5-build/cmake-3.30.5/Source/cmakemain.cxx:662:6: warning[-Wunused-function]: ‘bool {anonymous}::parse_default_directory_permissions(const std::string&, std::string&)’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/ProcessUNIX.c: scope_hint: In function ‘cmsysProcess_AddCommand’
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/ProcessUNIX.c:428:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*cp.Commands’
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Bootstrap.cmk/cmsys/Process.h:6: included_from: Included from here.
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/ProcessUNIX.c:8: included_from: Included from here.
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Bootstrap.cmk/cmsys/Process.h:21:35: note: in expansion of macro ‘kwsys_ns’
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/ProcessUNIX.c:382:5: note: in expansion of macro ‘kwsysProcess_SetCommand’
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Bootstrap.cmk/cmsys/Process.h:22:35: note: in expansion of macro ‘kwsys_ns’
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/ProcessUNIX.c:401:12: note: in expansion of macro ‘kwsysProcess_AddCommand’
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Bootstrap.cmk/cmsys/Process.h:22:35: note: in expansion of macro ‘kwsys_ns’
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/ProcessUNIX.c:401:12: note: in expansion of macro ‘kwsysProcess_AddCommand’
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Bootstrap.cmk/cmsys/Process.h:22:35: note: in expansion of macro ‘kwsys_ns’
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/ProcessUNIX.c:406:5: note: in expansion of macro ‘kwsysProcess_AddCommand’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def30]
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/ProcessUNIX.c:1658:13: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘*cp.SignalPipe’
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Bootstrap.cmk/cmsys/Process.h:83:29: note: in expansion of macro ‘kwsys_ns’
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/ProcessUNIX.c:1441:6: note: in expansion of macro ‘kwsysProcess_Kill’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def31]
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/ProcessUNIX.c: scope_hint: In function ‘kwsysProcessCleanupDescriptor.part.0’
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/ProcessUNIX.c:1658:13: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘*pfd’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def32]
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/System.c: scope_hint: In function ‘kwsysSystem__AppendByte’
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/System.c:35:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*begin’
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Bootstrap.cmk/cmsys/System.h:6: included_from: Included from here.
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/System.c:4: included_from: Included from here.
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Bootstrap.cmk/cmsys/System.h:18:5: note: in expansion of macro ‘kwsys_ns’
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/System.c:227:8: note: in expansion of macro ‘kwsysSystem_Parse_CommandForUnix’
Error: CPPCHECK_WARNING (CWE-562): [#def33]
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/SystemTools.cxx:2023: error[returnDanglingLifetime]: Returning pointer to local variable 'newstr' that will be invalid when returning.
Error: GCC_ANALYZER_WARNING (CWE-835): [#def34]
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/testProcess.c: scope_hint: In function ‘test6’
cmake-3.30.5-build/cmake-3.30.5/Source/kwsys/testProcess.c:186:5: warning[-Wanalyzer-infinite-loop]: infinite loop
Error: CPPCHECK_WARNING (CWE-664): [#def35]
cmake-3.30.5-build/cmake-3.30.5/Tests/CMakeLib/testStringAlgorithms.cxx:163: error[invalidContainer]: Using pointer to local variable 'val' that may be invalid.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def36]
cmake-3.30.5-build/cmake-3.30.5/Tests/RunCMake/detect_jobserver.c: scope_hint: In function ‘jobserver_auth’
cmake-3.30.5-build/cmake-3.30.5/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
Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
cmake-3.30.5-build/cmake-3.30.5/Tests/RunCMake/detect_jobserver.c: scope_hint: In function ‘main’
cmake-3.30.5-build/cmake-3.30.5/Tests/RunCMake/detect_jobserver.c:158:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_file, "w")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
cmake-3.30.5-build/cmake-3.30.5/Tests/RunCMake/detect_jobserver.c:158:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_file, "w")’
Error: CPPCHECK_WARNING (CWE-404): [#def39]
cmake-3.30.5-build/cmake-3.30.5/Tests/RunCMake/detect_jobserver.c:166: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-404): [#def40]
cmake-3.30.5-build/cmake-3.30.5/Tests/RunCMake/detect_jobserver.c:177: error[resourceLeak]: Resource leak: fp
Error: COMPILER_WARNING (CWE-1164): [#def41]
cmake-3.30.5-build/cmake-3.30.5/Utilities/cmlibrhash/librhash/rhash.c:429:13: warning[-Wunused-function]: ‘rhash_put_digest’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
cmake-3.30.5-build/cmake-3.30.5/Utilities/cmlibuv/src/unix/core.c: scope_hint: In function ‘uv__open_file’
cmake-3.30.5-build/cmake-3.30.5/Utilities/cmlibuv/src/unix/core.c:1009:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘uv__open_cloexec(path, 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
cmake-3.30.5-build/cmake-3.30.5/Utilities/cmlibuv/src/unix/pipe.c: scope_hint: In function ‘uv__pipe_listen’
cmake-3.30.5-build/cmake-3.30.5/Utilities/cmlibuv/src/unix/pipe.c:110:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*handle.io_watcher.fd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
cmake-3.30.5-build/cmake-3.30.5/Utilities/cmlibuv/src/unix/pipe.c:115:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*handle.io_watcher.fd’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def45]
cmake-3.30.5-build/cmake-3.30.5/Utilities/cmlibuv/src/unix/pipe.c: scope_hint: In function ‘uv__pipe_getsockpeername’
cmake-3.30.5-build/cmake-3.30.5/Utilities/cmlibuv/src/unix/pipe.c:273:3: warning[-Wanalyzer-null-argument]: use of NULL ‘buffer’ where non-null expected
cmake-3.30.5-build/cmake-3.30.5/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
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
cmake-3.30.5-build/cmake-3.30.5/Utilities/cmlibuv/src/unix/process.c: scope_hint: In function ‘uv__process_child_init’
cmake-3.30.5-build/cmake-3.30.5/Utilities/cmlibuv/src/unix/process.c:357:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘close_fd’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def47]
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Source/kwsys/cmsysTestsC.c: scope_hint: In function ‘main’
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Source/kwsys/cmsysTestsC.c:175:31: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
cmake-3.30.5-build/cmake-3.30.5/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
Error: GCC_ANALYZER_WARNING (CWE-688): [#def48]
cmake-3.30.5-build/cmake-3.30.5/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.30.5-build/cmake-3.30.5/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
Error: GCC_ANALYZER_WARNING (CWE-457): [#def49]
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Source/kwsys/cmsysTestsC.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Source/kwsys/cmsysTestsC.c:29:38: note: in definition of macro ‘CM_CAST’
/usr/include/string.h:350:14: note: argument 1 of ‘strstr’ must be a pointer to a null-terminated string
Error: GCC_ANALYZER_WARNING (CWE-457): [#def50]
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Source/kwsys/cmsysTestsC.c:175:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*arg’
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Source/kwsys/cmsysTestsC.c:29:38: note: in definition of macro ‘CM_CAST’
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Source/kwsys/cmsysTestsC.c:4: included_from: Included from here.
/usr/include/string.h:350:14: note: argument 2 of ‘strstr’ must be a pointer to a null-terminated string
Error: GCC_ANALYZER_WARNING (CWE-688): [#def51]
cmake-3.30.5-build/cmake-3.30.5/redhat-linux-build/Source/kwsys/cmsysTestsC.c:179:38: warning[-Wanalyzer-null-argument]: use of NULL ‘arg’ where non-null expected
cmake-3.30.5-build/cmake-3.30.5/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
Error: GCC_ANALYZER_WARNING (CWE-688): [#def52]
cmake-3.30.5-build/cmake-3.30.5/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.30.5-build/cmake-3.30.5/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
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-27.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | cmake-3.30.5-1.fc42 |
store-results-to | /tmp/tmp351tpknn/cmake-3.30.5-1.fc42.tar.xz |
time-created | 2024-11-12 23:56:13 |
time-finished | 2024-11-13 00:25:33 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp351tpknn/cmake-3.30.5-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp351tpknn/cmake-3.30.5-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |