Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/exampleProgram/exampleProgram.c Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/include/libExample.h Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/libExample/libExample.c Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Basename.c Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/HelloWorldCPPAutotoolsProject/src/Basename.cpp Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.cmake.core/templates/simple/main.cpp Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.core.autotools.core/templates/autotools/src/main.c Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.make.core/templates/simple/main.cpp Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/resources/test21Projects/linkedFolder/f1.c Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/resources/test21Projects/linkedFolder/f2.c Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/resources/test21Projects/linkedFolder/test_ar.h Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/resources/test21Projects/linkedLib/f1.c Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/resources/test21Projects/linkedLib/f2.c Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/resources/test21Projects/linkedLib/test_ar.h Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/resources/test30Projects/linkedFolder/f1.c Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/resources/test30Projects/linkedFolder/f2.c Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/resources/test30Projects/linkedFolder/test_ar.h Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/resources/test30Projects/linkedLib30/f1_30.c Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/resources/test30Projects/linkedLib30/f2_30.c Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/resources/test30Projects/linkedLib30/test_ar_30.h Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/testdata/Basename.cpp Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/testdata/Basename.h Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.gnu.ui/templates/projecttemplates/HelloWorldCAnsiProject/src/Basename.c Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.gnu.ui/templates/projecttemplates/HelloWorldCCProject/src/Basename.cpp Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.gnu.ui/templates/projecttemplates/MakefileHelloWorldCCProject/Basename.cpp Examining data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.meson.core/templates/simple/main.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/PTY.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/PTYInputStream.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/PTYOutputStream.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/Spawner.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/SpawnerInputStream.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/SpawnerOutputStream.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/exec0.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/exec_pty.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/exec_unix.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/io.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/openpty.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/openpty.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/pfind.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/pty.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/ptyio.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/spawner.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/PTY.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/PTYInputStream.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/PTYOutputStream.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/Spawner.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/SpawnerInputStream.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/SpawnerOutputStream.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/exec0.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/exec_pty.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/exec_unix.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/io.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/openpty.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/openpty.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/pfind.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/pty.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/ptyio.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/spawner.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cfiles/CModelElementsTestStart.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cfiles/TranslationUnits.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cfiles/WorkingCopyTestStart.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cfiles/included.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cmodel/CModelBuilderInactiveCodeTest.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cmodel/CModelBuilderTest.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cmodel/DeclaratorsTests.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cmodel/IIncludeTest.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cmodel/IMacroTest.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cmodel/IStructure.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cmodel/ITemplate.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cmodel/MacroTests.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/dependency/DepTest.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/dependency/DepTest.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/dependency/DepTest2.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/dependency/DepTest2.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/dependency/DepTest3.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/dependency/DepTest3.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/dependency/Inc1.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/dependency/a.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/dependency/c.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/dependency/d.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/exebig/main.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexTests/bug246129/include/ext/dummy.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexTests/bug246129/include/type.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexTests/bug246129/source.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexTests/bug246129/wrapper_include/type.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexTests/includes/included.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexTests/includes/notIncluded.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexTests/includes/testInclude.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexTests/search/enumerator.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexTests/search/macro.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexTests/search/nested.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexTests/search/staticFunc1.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexTests/search/staticFunc2.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexTests/trilogy/trilogy.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexer/DocumentManager.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexer/DocumentManager.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexer/extramail.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexer/mail.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/indexer/reftest.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/parser/AutomatedTest/defaultC/Simple.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/parser/AutomatedTest/defaultC/Simple.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/parser/AutomatedTest/defaultCpp/Simple.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/parser/AutomatedTest/defaultCpp/Simple.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/parser/LineNumberTest.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/classTests/class.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/classTests/friend.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/classTests/nested.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/classTests/pr147903.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/compositeTypeTests/compositeType.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/compositeTypeTests/compositeType.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/defDeclTests/func.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/defDeclTests/second.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/defDeclTests/types.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/defDeclTests/vars.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/enumerationTests/enumTest.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/enumerationTests/enumTest.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/fieldTests/fields.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/filesOnReindex/simple.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/functionTests/declarations.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/functionTests/declarations.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/functionTests/modifiers.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/functionTests/modifiers.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/functionTests/overloaded.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/generatePDOMTests/cyclicIncludes1/a.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/generatePDOMTests/cyclicIncludes1/b.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/generatePDOMTests/cyclicIncludes1/c.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/generatePDOMTests/cyclicIncludes2/a.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/generatePDOMTests/cyclicIncludes2/b.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/generatePDOMTests/project1/a/b/c/d e/this.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/generatePDOMTests/project1/this.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/generatePDOMTests/project2/aaa.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/generatePDOMTests/project2/base.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/generatePDOMTests/project3/aaa.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/includesTests/I1.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/includesTests/I1.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/includesTests/I2.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/includesTests/I2.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/includesTests/I3.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/includesTests/I3.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/includesTests/I4.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/includesTests/I4.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/includesTests/I5.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/includesTests/I5.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/includesTests/I6.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/includesTests/a/I7.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/includesTests/a/b/I6.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/methodTests/inheritance.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/namespaceTests/extend.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/namespaceTests/friend.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/namespaceTests/namespace.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/namespaceTests/overload.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/namespaceTests/unnamed.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/overloadsWithinCommonHeader/common.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/overloadsWithinCommonHeader/manyOverloadedClientA.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/overloadsWithinCommonHeader/manyOverloadedClientB.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/overloadsWithinSingleTU/withinSingleTranslationUnit.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/searchTests/Class1.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/searchTests/Class1.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/searchTests/Class2.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/searchTests/Class2.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/searchTests/Class3.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/searchTests/main.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/types/bug145351.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/types/typedef.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/types/typedef.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/variableTests/variables.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/pdomtests/variableTests/variables.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/search/classDecl.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/search/include.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/templateengine/Basename.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/templateengine/Basename.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/testlib/test.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/testlib/test2.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Spawner.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/SpawnerInputStream.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/SpawnerOutputStream.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/StdAfx.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/StdAfx.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/iostream.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/listtasks/StdAfx.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/listtasks/StdAfx.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/listtasks/listtasks.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/listtasks/listtasks.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/pty/jni/include/PTY.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/pty/jni/include/PTYInputStream.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/pty/jni/include/PTYOutputStream.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/pty/jni/src/dllmain.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/pty/jni/src/pty.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/raise.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/spawner.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/winreg/dllmain.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/winreg/stdafx.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/winreg/stdafx.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/winreg/targetver.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/winreg/winreg.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/Enumerator_307738.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/Enumerator_307738.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/InsertionPoint_301780.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/InsertionPoint_301780.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/InsertionPoint_435340.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/InsertionPoint_435340a.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/InsertionPoint_435340b.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/Macro.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/Macro.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/Other.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/OverloadedFunction.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/OverloadedFunction.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/ResolvedName.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/ResolvedName.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/Template_306670.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/Template_306670.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/UnresolvedName.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/UnresolvedName.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/VariableType.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/VariableType.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/addInclude/VariableTypeHelper.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/ceditor/main.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/ceditor/occurrences.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/ceditor/occurrences.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/compare/CompareTest.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/constalign/leftChanged/After.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/constalign/leftChanged/Before.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/constalign/leftUnchanged/After.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/constalign/leftUnchanged/Before.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/constalign/rightChanged/After.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/constalign/rightChanged/Before.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/constalign/rightUnchanged/After.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/constalign/rightUnchanged/Before.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart1.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart10.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart11.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart12.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart13.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart14.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart15.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart16.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart17.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart18.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart19.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart2.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart20.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart21.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart22.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart23.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart24.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart25.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart26.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart27.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart28.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart29.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart3.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart30.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart31.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart32.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart33.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart34.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart35.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart36.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart37.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart38.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart39.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart4.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart40.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart40.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart41.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart41.h Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart42.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart5.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart6.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart7.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart8.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/contentassist/CompletionTestStart9.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/docComments/this.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/folding/FoldingTest.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/formatter/bugs/After.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/formatter/bugs/Before.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/formatter/complex/After.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/formatter/complex/Before.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/Before.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/formatter/sample/After.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/formatter/sample/Before.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/Before.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/inactiveCode/InactiveCodeTest.c Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/indentation/complex/After.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/indentation/complex/Before.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/indentation/rawString/After.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/indentation/rawString/Before.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/indentation/sample/After.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/indentation/sample/Before.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/indentation/unchanged/After.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/indentation/unchanged/Before.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/projectTemplates/testExtraPages/hello.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/projectTemplates/testWidgets/hello.cpp Examining data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/quickFix/RenameInFile.cpp Examining data/eclipse-cdt-9.9.0/debug/org.eclipse.cdt.debug.application.tests/projects/hello/hello.c Examining data/eclipse-cdt-9.9.0/debug/org.eclipse.cdt.debug.application.tests/projects/hello/somehdr.h Examining data/eclipse-cdt-9.9.0/debug/org.eclipse.cdt.debug.application.tests/projects/hello/x.c Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/BreakpointTestApp.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/CatchpointTestApp.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/ConsoleSyncTestApp.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/ExpressionTestApp.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/GDBMIGenericTestApp.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/LaunchConfigurationAndRestartTestApp.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/MemoryTestApp.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/MultiThread.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/MultiThreadRunControl.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/PatternMatchingExpressionsTestApp.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/Sleep.h Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/SourceLookup.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/SpecialTestApp.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/StepIntoSelection.h Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/StepIntoSelectionTestApp.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/TargetAvail.cc Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/Thread.h Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/ThreadPthread.h Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/ThreadPthreadTypes.h Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/ThreadWindows.h Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/ThreadWindowsTypes.h Examining data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/TracepointTestApp.cc Examining data/eclipse-cdt-9.9.0/jtag/org.eclipse.cdt.debug.gdbjtag.core.tests/data/launch/src/Minimal.cc Examining data/eclipse-cdt-9.9.0/native/org.eclipse.cdt.native.serial/jni/serial.c Examining data/eclipse-cdt-9.9.0/qt/org.eclipse.cdt.qt.core/templates/project/Qt5/DateTime.cpp Examining data/eclipse-cdt-9.9.0/qt/org.eclipse.cdt.qt.core/templates/project/Qt5/DateTime.h Examining data/eclipse-cdt-9.9.0/qt/org.eclipse.cdt.qt.core/templates/project/Qt5/baseName.cpp Examining data/eclipse-cdt-9.9.0/qt/org.eclipse.cdt.qt.core/templates/project2/appProject/main.cpp Examining data/eclipse-cdt-9.9.0/toolchains/arduino/org.eclipse.cdt.arduino.core/templates/cppsketch/arduino.cpp FINAL RESULTS: data/eclipse-cdt-9.9.0/build/org.eclipse.cdt.managedbuilder.core.tests/testdata/Basename.cpp:27:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(message); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/exec_pty.c:121:4: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(full_path, argv); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/exec_unix.c:101:4: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(full_path, argv); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/openpty.c:57:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name, line); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/openpty.c:111:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pts_name, ptr); /* return name of slave */ data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/pfind.c:65:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(name, X_OK) == 0) { data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/pfind.c:86:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(fullpath, X_OK) == 0) { data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/exec_pty.c:121:4: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(full_path, argv); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/exec_unix.c:101:4: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(full_path, argv); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/openpty.c:58:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name, line); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/openpty.c:112:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pts_name, ptr); /* return name of slave */ data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/pfind.c:65:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(name, X_OK) == 0) { data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/pfind.c:86:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(fullpath, X_OK) == 0) { data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cfiles/CModelElementsTestStart.h:5:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINT(string,msg) printf(string, msg) data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/cmodel/IMacroTest.h:4:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINT(string,msg) printf(string, msg) data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/templateengine/Basename.cpp:27:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(message); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:213:2: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. swprintf(buffer, _T("Opened pipes: %s, %s, %s\n"), inPipeName, outPipeName, errPipeName); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:247:2: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. swprintf(szCmdLine, L"\"%sstarter.exe\" %i %i %s %s %s %s %s ", path, pid, nLocalCounter, eventBreakName, eventWaitName, eventTerminateName, eventKillName, eventCtrlcName); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:315:5: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. swprintf(buffer, _T("%s\n"), str); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/pty/jni/src/dllmain.cpp:58:5: [4] (buffer) lstrcpynA: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). lstrcpynA( szPath + cchPath, pszModuleName, MAX_PATH - cchPath ); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:102:2: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. swprintf(cygcmd, L"%s\\%s", cygwinBin, command); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:217:2: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. swprintf(buffer, _T("Pipes: %s, %s, %s\n"), inPipeName, outPipeName, errPipeName); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:270:4: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. swprintf(buffer, _T("%s\n"), lpszVariable); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:278:2: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. swprintf(buffer, _T("Starting: %s\n"), szCmdLine); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:385:5: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. swprintf(buffer, _T("starter received %s event (PID %i)\n"), signal, currentPID); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:391:6: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. swprintf(kill, L"kill -%s %d", signal, pi.dwProcessId); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:427:3: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. swprintf(buffer, _T("Cannot start: %s\n"), szCmdLine); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/compare/CompareTest.cpp:5:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINT(string,msg) printf(string, msg) data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/folding/FoldingTest.cpp:7:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(x); \ data/eclipse-cdt-9.9.0/native/org.eclipse.cdt.native.serial/jni/serial.c:43:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s: %s", msg, strerror(errno)); data/eclipse-cdt-9.9.0/native/org.eclipse.cdt.native.serial/jni/serial.c:58:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "Error opening %s", cportName); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/pfind.c:38:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv("PATH" ); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/pfind.c:38:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv("PATH" ); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:188:4: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&cs); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:410:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&cs); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:810:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&cs); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/pty/jni/src/pty.cpp:58:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand((unsigned int)time(NULL)); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/raise.c:83:17: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE hmod = LoadLibrary(L"Kernel32.dll"); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/spawner.c:39:4: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&cs); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:109:6: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. if (CreateProcess(NULL, cygcmd, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) { data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:109:6: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. if (CreateProcess(NULL, cygcmd, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) { data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:114:13: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. } else if (CreateProcess(NULL, command, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) { data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:114:13: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. } else if (CreateProcess(NULL, command, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) { data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/LaunchConfigurationAndRestartTestApp.cc:20:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. home = getenv("HOME"); data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/LaunchConfigurationAndRestartTestApp.cc:21:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. launchTest = getenv("LAUNCHTEST"); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/exec0.h:23:46: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const envp[], const char *dirpath, data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/exec0.h:28:49: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const envp[], const char *dirpath, data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/exec_pty.c:33:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *dirpath, int channels[3], const char *pts_name, int fdm, int console) data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/exec_pty.c:160:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pts_name[32]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/exec_pty.c:162:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[32]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/exec_unix.c:30:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *dirpath, int channels[3]) data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/openpty.c:45:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[20]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/openpty.c:94:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(pts_name, "/dev/ptmx"); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/openpty.c:120:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fds = open(pts_name, O_RDWR); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/pfind.c:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fullpath[PATH_MAX+1]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/pty.c:29:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[1024]; /* FIXME: Should be enough */ data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/exec0.h:21:46: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const envp[], const char *dirpath, data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/exec0.h:25:49: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const envp[], const char *dirpath, data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/exec_pty.c:33:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *dirpath, int channels[3], const char *pts_name, int fdm, int console) data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/exec_pty.c:160:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pts_name[32]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/exec_pty.c:162:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[32]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/exec_unix.c:30:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *dirpath, int channels[3]) data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/openpty.c:46:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[20]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/openpty.c:95:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(pts_name, "/dev/ptmx"); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/openpty.c:121:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fds = open(pts_name, O_RDWR); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/pfind.c:55:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fullpath[PATH_MAX+1]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/pty.c:30:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[1024]; /* FIXME: Should be enough */ data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.tests/resources/parser/AutomatedTest/defaultC/Simple.h:7:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[ ]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:88:8: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern wchar_t path[MAX_PATH]; // Directory where spawner.dll is located data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:157:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t eventBreakName[MAX_EVENT_NAME_LENGTH]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:158:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t eventWaitName[MAX_EVENT_NAME_LENGTH]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:159:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t eventTerminateName[MAX_EVENT_NAME_LENGTH]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:160:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t eventKillName[MAX_EVENT_NAME_LENGTH]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:161:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t eventCtrlcName[MAX_EVENT_NAME_LENGTH]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:163:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t buffer[4000]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:166:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t inPipeName[PIPE_NAME_LENGTH]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:167:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t outPipeName[PIPE_NAME_LENGTH]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:168:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t errPipeName[PIPE_NAME_LENGTH]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:189:4: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(inPipeName, L"\\\\.\\pipe\\stdin%08i%010i", pid, nCounter); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:190:4: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(outPipeName, L"\\\\.\\pipe\\stdout%08i%010i", pid, nCounter); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:191:4: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(errPipeName, L"\\\\.\\pipe\\stderr%08i%010i", pid, nCounter); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:230:2: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(eventBreakName, L"SABreak%04x%08x", pid, nLocalCounter); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:231:2: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(eventWaitName, L"SAWait%004x%08x", pid, nLocalCounter); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:232:2: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(eventTerminateName, L"SATerm%004x%08x", pid, nLocalCounter); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:233:2: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(eventKillName, L"SAKill%04x%08x", pid, nLocalCounter); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:234:2: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(eventCtrlcName, L"SACtrlc%04x%08x", pid, nLocalCounter); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:284:2: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(buffer, _T("There are %i environment variables \n"), nEnvVars); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:309:6: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(buffer, _T("Realloc environment block; new length is %i \n"), nBlkSize); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:420:4: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(buffer, _T("Process %i failed\n"), pi.dwProcessId); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:442:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(piCopy, &pi, sizeof(PROCESS_INFORMATION)); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:660:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t buffer[100]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:671:2: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(buffer, _T("Spawner received signal %i for process %i\n"), signal, pCurProcInfo -> pid); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:692:4: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(buffer, _T("Spawner received TERM signal for process %i\n"), data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:705:4: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(buffer, _T("Spawner received KILL signal for process %i\n"), data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:907:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t buffer[1000]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:919:5: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(buffer, _T("waitProcTermination: set PID %i to 0\n"), data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/iostream.c:79:2: [2] (buffer) _stprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. _stprintf(buffer, _T("Start read %i\n"), fd); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/iostream.c:109:5: [2] (buffer) _stprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. _stprintf(buffer, _T("Read failed - %i, error %i\n"), fd, err); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/iostream.c:136:6: [2] (buffer) _stprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. _stprintf(buffer, _T("Buffer full - %i, bytes read: %i\n"), fd, nNumberOfBytesRead); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/iostream.c:164:2: [2] (buffer) _stprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. _stprintf(buffer, _T("End read %i - bytes read: %d\n"), fd, nBuffOffset); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/iostream.c:184:3: [2] (buffer) _stprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. _stprintf(buffer, _T("Close %i\n"), fd); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/iostream.c:189:3: [2] (buffer) _stprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. _stprintf(buffer, _T("Closed %i\n"), fd); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/iostream.c:262:3: [2] (buffer) _stprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. _stprintf(buffer, _T("Close %i\n"), fd); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/iostream.c:268:3: [2] (buffer) _stprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. _stprintf(buffer, _T("Closed %i\n"), fd); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/listtasks/listtasks.cpp:74:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char szFileName[ MAX_PATH ] ; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/pty/jni/src/pty.cpp:42:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[1024]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/pty/jni/src/pty.cpp:65:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(line, "winpty_%i", master); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/pty/jni/src/pty.cpp:146:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, buffer, amount); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/pty/jni/src/pty.cpp:216:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, data, buf_len); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/raise.c:47:7: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t window_class[32]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/raise.c:112:3: [2] (buffer) _stprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. _stprintf(buffer, _T("Try to interrupt process %i\n"), pid); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/raise.c:180:3: [2] (buffer) _stprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. _stprintf(buffer, _T("Sent Ctrl-C & Ctrl-Break to process %i\n"), pid); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/raise.c:187:3: [2] (buffer) _stprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. _stprintf(buffer, _T("Cannot find console for process %i\n"), pid); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/spawner.c:26:1: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t path[MAX_PATH + 1] = {_T('\0') }; // Directory where spawner.dll is located data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:80:4: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t modName[MAX_PATH]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:101:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t cygcmd[1024]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:193:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t buffer[MAX_CMD_LINE_LENGTH]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:209:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t inPipeName[PIPE_NAME_LENGTH]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:210:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t outPipeName[PIPE_NAME_LENGTH]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:211:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t errPipeName[PIPE_NAME_LENGTH]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:213:2: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(inPipeName, L"\\\\.\\pipe\\stdin%08i%010i", parentPid, nCounter); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:214:2: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(outPipeName, L"\\\\.\\pipe\\stdout%08i%010i", parentPid, nCounter); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:215:2: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(errPipeName, L"\\\\.\\pipe\\stderr%08i%010i", parentPid, nCounter); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:233:3: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(buffer, _T("Failed to open pipe %i, %i, %i: %i\n"), stdHandles[0], stdHandles[1], stdHandles[2], GetLastError()); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:249:3: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(buffer, _T("Failed to reassign standard streams: %i\n"), GetLastError()); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:320:3: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(buffer, _T("Process %i started\n"), pi.dwProcessId); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:330:5: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(buffer, _T("Cannot assign process %i to a job\n"), pi.dwProcessId); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:347:5: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(buffer, _T("starter (PID %i) received CTRL-C event\n"), currentPID); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:352:6: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t kill[1024]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:353:6: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(kill, L"kill -SIGINT %d", pi.dwProcessId); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:368:5: [2] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. swprintf(buffer, _T("starter: launched process has been terminated(PID %i)\n"), data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:390:6: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t kill[1024]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/winreg/winreg.cpp:25:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t buffer[256]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/winreg/winreg.cpp:69:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t valueName[256]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/winreg/winreg.cpp:120:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t keyName[256]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.ui.tests/resources/formatter/sample/Before.cpp:8:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name [ ]; data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/BreakpointTestApp.cc:14:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char charBlock[ARRAY_SIZE]; data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/ExpressionTestApp.cc:10:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gCharArray[2] = {'g', 'd'}; data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/ExpressionTestApp.cc:108:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lCharArray[2] = {'i', 'm'}; data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/ExpressionTestApp.cc:349:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char array_double_large[111][210]; data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/GDBMIGenericTestApp.cc:8:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fd = fopen(path, mode); data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/MemoryTestApp.cc:14:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char charBlock[ARRAY_SIZE]; data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/MultiThread.cc:50:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *thread_names[NUM_THREADS] = {"monday", "tuesday", "wednesday", "thursday", "friday"}; data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/PatternMatchingExpressionsTestApp.cc:31:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char chararray[201]; data/eclipse-cdt-9.9.0/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/SpecialTestApp.cc:8:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fd = fopen(path, mode); data/eclipse-cdt-9.9.0/native/org.eclipse.cdt.native.serial/jni/serial.c:41:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[256]; data/eclipse-cdt-9.9.0/native/org.eclipse.cdt.native.serial/jni/serial.c:55:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(cportName, O_RDWR | O_NOCTTY | O_NDELAY); data/eclipse-cdt-9.9.0/native/org.eclipse.cdt.native.serial/jni/serial.c:57:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[256]; data/eclipse-cdt-9.9.0/native/org.eclipse.cdt.native.serial/jni/serial.c:180:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[256]; data/eclipse-cdt-9.9.0/native/org.eclipse.cdt.native.serial/jni/serial.c:302:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[256]; data/eclipse-cdt-9.9.0/native/org.eclipse.cdt.native.serial/jni/serial.c:402:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[256]; data/eclipse-cdt-9.9.0/native/org.eclipse.cdt.native.serial/jni/serial.c:444:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t name[256]; data/eclipse-cdt-9.9.0/native/org.eclipse.cdt.native.serial/jni/serial.c:455:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t value[256]; data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/io.c:45:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). status = read( fd, data, data_len ); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/pfind.c:74:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (path == NULL || strlen(path) <= 0) { data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.linux/library/ptyio.c:44:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). status = read( fd, data, data_len ); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/io.c:44:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). status = read( fd, data, data_len ); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/pfind.c:74:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (path == NULL || strlen(path) <= 0) { data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.macosx/library/ptyio.c:44:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). status = read( fd, data, data_len ); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:248:9: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nPos = wcslen(szCmdLine); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:318:5: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wcsncpy(szEnvBlock + nPos, str, len); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c:558:5: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wcsncpy(szEnvBlock + nPos, str, len); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/listtasks/listtasks.cpp:232:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(!isWin64 && _stricmp( szFileName+(strlen(szFileName)-9), data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/spawner.c:45:5: [1] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Risk is low because the source is a constant character. wcscat(path, L"\\"); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:160:12: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len= wcslen(argv[i]); data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp:269:82: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (wchar_t * lpszVariable = (wchar_t *) lpvEnv; *lpszVariable; lpszVariable+=wcslen(lpszVariable) + 1) { data/eclipse-cdt-9.9.0/core/org.eclipse.cdt.core.win32/library/winreg/winreg.cpp:29:54: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result = env->NewString((jchar *) buffer, (jsize) wcslen(buffer)); data/eclipse-cdt-9.9.0/native/org.eclipse.cdt.native.serial/jni/serial.c:288:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(jhandle, buff, n); data/eclipse-cdt-9.9.0/native/org.eclipse.cdt.native.serial/jni/serial.c:464:66: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). jstring result = (*env)->NewString(env, (jchar *)value, (jsize) wcslen(value)); ANALYSIS SUMMARY: Hits = 169 Lines analyzed = 13748 in approximately 3.78 seconds (3636 lines/second) Physical Source Lines of Code (SLOC) = 9332 Hits@level = [0] 109 [1] 16 [2] 108 [3] 14 [4] 31 [5] 0 Hits@level+ = [0+] 278 [1+] 169 [2+] 153 [3+] 45 [4+] 31 [5+] 0 Hits/KSLOC@level+ = [0+] 29.79 [1+] 18.1097 [2+] 16.3952 [3+] 4.82212 [4+] 3.3219 [5+] 0 Dot directories skipped = 143 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.