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/gradle-4.4.1/subprojects/core/src/integTest/resources/org/gradle/api/tasks/copyTestResources/src/accents.c Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-source/lib.c Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-pch-source/lib.c Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-pch-source/pch.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-monolithic/src/src.cpp Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-monolithic/src/src.c Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-monolithic/src/prebuilt.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-monolithic/src/src.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-monolithic/src/common.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-monolithic/src/unused.c Examining data/gradle-4.4.1/subprojects/performance/src/templates/cpp-source/lib.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/cpp-source/exe.cpp Examining data/gradle-4.4.1/subprojects/performance/src/templates/cpp-source/lib.cpp Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-spi.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest_prod.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-test-part.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-death-test.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest_pred_impl.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-printers.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-tuple.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-death-test-internal.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-linked_ptr.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-param-util-generated.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-filepath.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-string.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-param-util.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-type-util.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-typed-test.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-param-test.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-message.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents/test_main.cpp Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents/main.cpp Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents/header.h Examining data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents/lib.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/src/main/cpp/library/cpp/main.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/visual-studio/src/main/cpp/main.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/visual-studio/src/hello/cpp/hello.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/visual-studio/src/hello/headers/hello.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/flavors/src/main/cpp/main.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/flavors/src/hello/cpp/hello.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/flavors/src/hello/headers/hello.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/prebuilt/src/main/cpp/main.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/prebuilt/3rd-party-lib/boost_1_55_0/boost/version.hpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/prebuilt/3rd-party-lib/util/src/util/cpp/util.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/prebuilt/3rd-party-lib/util/src/util/headers/util.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/src/operatorsTest/headers/test_operators.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/src/operatorsTest/c/suite_operators.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/src/operatorsTest/c/test_plus.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/src/operatorsTest/c/test_minus.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/src/operators/headers/operators.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/src/operators/c/minus.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/src/operators/c/plus.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/libs/cunit/2.1-2/include/CUnit/TestDB.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/libs/cunit/2.1-2/include/CUnit/Console.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/libs/cunit/2.1-2/include/CUnit/CUError.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/libs/cunit/2.1-2/include/CUnit/Automated.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/libs/cunit/2.1-2/include/CUnit/CUnit.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/libs/cunit/2.1-2/include/CUnit/Basic.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/libs/cunit/2.1-2/include/CUnit/CUnit_intl.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/libs/cunit/2.1-2/include/CUnit/Util.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/libs/cunit/2.1-2/include/CUnit/TestRun.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/libs/cunit/2.1-2/include/CUnit/MyMem.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/idl/src/main/c/main.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/tool-chains/src/main/cpp/main.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/objective-c/src/main/headers/greeter.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cpp-lib/src/main/cpp/hello.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cpp-lib/src/main/headers/hello.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/multi-project/lib/src/main/cpp/hello.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/multi-project/lib/src/main/headers/hello.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/multi-project/exe/src/main/cpp/main.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/sourceset-variant/src/main/windows/platform-windows.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/sourceset-variant/src/main/linux/platform-linux.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/sourceset-variant/src/main/mac/platform-mac.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/sourceset-variant/src/main/headers/platform.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/sourceset-variant/src/main/c/main.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/src/operatorsTest/cpp/test_main.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/src/operatorsTest/cpp/test_plus.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/src/operatorsTest/cpp/test_minus.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/src/operators/cpp/minus.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/src/operators/cpp/plus.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/src/operators/headers/operators.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/gtest-spi.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/gtest_prod.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/gtest-test-part.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/gtest-death-test.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/gtest_pred_impl.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/gtest-printers.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-tuple.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-death-test-internal.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-linked_ptr.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-param-util-generated.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-filepath.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-string.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-param-util.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-type-util.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/gtest.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/gtest-typed-test.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/gtest-param-test.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/gtest-message.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/assembler/src/main/headers/sum.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/assembler/src/main/c/main.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/objective-cpp/src/main/headers/greeter.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/custom-layout/src/include/hello.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/custom-layout/src/source/main.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/custom-layout/src/source/hello.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/variants/src/main/cpp/main.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/variants/src/hello/cpp/hello.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/variants/src/hello/headers/hello.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/pre-compiled-headers/src/main/cpp/main.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/pre-compiled-headers/src/hello/cpp/hello.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/pre-compiled-headers/src/hello/headers/pch.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/pre-compiled-headers/src/hello/headers/hello.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cpp/src/main/cpp/main.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cpp/src/hello/cpp/hello.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cpp/src/hello/headers/hello.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/windows-resources/src/main/cpp/main.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/windows-resources/src/hello/cpp/hello.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/windows-resources/src/hello/headers/resources.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/windows-resources/src/hello/headers/hello.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/target-platforms/src/main/cpp/main.cpp Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/c/src/main/c/main.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/c/src/hello/headers/hello.h Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/c/src/hello/c/hello.c Examining data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cpp-exe/src/main/cpp/hello.cpp Examining data/gradle-4.4.1/subprojects/testing-native/src/main/resources/org/gradle/nativeplatform/test/cunit/tasks/gradle_cunit_register.h Examining data/gradle-4.4.1/subprojects/testing-native/src/main/resources/org/gradle/nativeplatform/test/cunit/tasks/gradle_cunit_main.c FINAL RESULTS: data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/libs/cunit/2.1-2/include/CUnit/CUnit.h:105:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/cunit/libs/cunit/2.1-2/include/CUnit/CUnit.h:105:22: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-death-test-internal.h:165:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(\ data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1761:20: [4] (buffer) StrNCpy: 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). inline const char* StrNCpy(char* dest, const char* src, size_t n) { data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1833:26: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define GTEST_SNPRINTF_ _snprintf data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1835:26: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define GTEST_SNPRINTF_ snprintf data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-death-test-internal.h:165:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(\ data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1761:20: [4] (buffer) StrNCpy: 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). inline const char* StrNCpy(char* dest, const char* src, size_t n) { data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1833:26: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define GTEST_SNPRINTF_ _snprintf data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1835:26: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define GTEST_SNPRINTF_ snprintf data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/gtest.h:893:39: [3] (random) random: 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. void ShuffleTests(internal::Random* random); data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1799:27: [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. const char* const env = getenv(name); data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1802: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(name); data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest.h:893:39: [3] (random) random: 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. void ShuffleTests(internal::Random* random); data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1799:27: [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. const char* const env = getenv(name); data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1802: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(name); data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1773:10: [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). return fopen(path, mode); data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1773:10: [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). return fopen(path, mode); data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1762:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). return strncpy(dest, src, n); data/gradle-4.4.1/subprojects/docs/src/samples/native-binaries/google-test/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1784:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return static_cast<int>(read(fd, buf, count)); data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1762:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). return strncpy(dest, src, n); data/gradle-4.4.1/subprojects/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h:1784:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return static_cast<int>(read(fd, buf, count)); ANALYSIS SUMMARY: Hits = 22 Lines analyzed = 43957 in approximately 7.96 seconds (5524 lines/second) Physical Source Lines of Code (SLOC) = 28292 Hits@level = [0] 16 [1] 4 [2] 2 [3] 6 [4] 10 [5] 0 Hits@level+ = [0+] 38 [1+] 22 [2+] 18 [3+] 16 [4+] 10 [5+] 0 Hits/KSLOC@level+ = [0+] 1.34314 [1+] 0.777605 [2+] 0.636222 [3+] 0.565531 [4+] 0.353457 [5+] 0 Dot directories skipped = 3 (--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.