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/vc-1.3.3/avx/casts.h Examining data/vc-1.3.3/avx/const.h Examining data/vc-1.3.3/avx/const_data.h Examining data/vc-1.3.3/avx/debug.h Examining data/vc-1.3.3/avx/detail.h Examining data/vc-1.3.3/avx/helperimpl.h Examining data/vc-1.3.3/avx/intrinsics.h Examining data/vc-1.3.3/avx/limits.h Examining data/vc-1.3.3/avx/macros.h Examining data/vc-1.3.3/avx/mask.h Examining data/vc-1.3.3/avx/math.h Examining data/vc-1.3.3/avx/shuffle.h Examining data/vc-1.3.3/avx/simd_cast.h Examining data/vc-1.3.3/avx/types.h Examining data/vc-1.3.3/avx/vector.h Examining data/vc-1.3.3/avx/vectorhelper.h Examining data/vc-1.3.3/cmake/msvc_version.c Examining data/vc-1.3.3/common/algorithms.h Examining data/vc-1.3.3/common/aliasingentryhelper.h Examining data/vc-1.3.3/common/alignedbase.h Examining data/vc-1.3.3/common/bitscanintrinsics.h Examining data/vc-1.3.3/common/const.h Examining data/vc-1.3.3/common/data.h Examining data/vc-1.3.3/common/deinterleave.h Examining data/vc-1.3.3/common/elementreference.h Examining data/vc-1.3.3/common/exponential.h Examining data/vc-1.3.3/common/fix_clang_emmintrin.h Examining data/vc-1.3.3/common/gatherimplementation.h Examining data/vc-1.3.3/common/gatherinterface.h Examining data/vc-1.3.3/common/generalinterface.h Examining data/vc-1.3.3/common/iif.h Examining data/vc-1.3.3/common/indexsequence.h Examining data/vc-1.3.3/common/interleave.h Examining data/vc-1.3.3/common/interleavedmemory.h Examining data/vc-1.3.3/common/iterators.h Examining data/vc-1.3.3/common/loadinterface.h Examining data/vc-1.3.3/common/loadstoreflags.h Examining data/vc-1.3.3/common/logarithm.h Examining data/vc-1.3.3/common/macros.h Examining data/vc-1.3.3/common/makeContainer.h Examining data/vc-1.3.3/common/make_unique.h Examining data/vc-1.3.3/common/malloc.h Examining data/vc-1.3.3/common/mask.h Examining data/vc-1.3.3/common/maskbool.h Examining data/vc-1.3.3/common/math.h Examining data/vc-1.3.3/common/memory.h Examining data/vc-1.3.3/common/memorybase.h Examining data/vc-1.3.3/common/memoryfwd.h Examining data/vc-1.3.3/common/operators.h Examining data/vc-1.3.3/common/permutation.h Examining data/vc-1.3.3/common/scatterimplementation.h Examining data/vc-1.3.3/common/scatterinterface.h Examining data/vc-1.3.3/common/set.h Examining data/vc-1.3.3/common/simd_cast.h Examining data/vc-1.3.3/common/simdarray.h Examining data/vc-1.3.3/common/simdarrayfwd.h Examining data/vc-1.3.3/common/simdarrayhelper.h Examining data/vc-1.3.3/common/simdize.h Examining data/vc-1.3.3/common/simdmaskarray.h Examining data/vc-1.3.3/common/storage.h Examining data/vc-1.3.3/common/storeinterface.h Examining data/vc-1.3.3/common/subscript.h Examining data/vc-1.3.3/common/support.h Examining data/vc-1.3.3/common/transpose.h Examining data/vc-1.3.3/common/trigonometric.h Examining data/vc-1.3.3/common/types.h Examining data/vc-1.3.3/common/utility.h Examining data/vc-1.3.3/common/vector.h Examining data/vc-1.3.3/common/vector/casts.h Examining data/vc-1.3.3/common/vectorabi.h Examining data/vc-1.3.3/common/vectortraits.h Examining data/vc-1.3.3/common/vectortuple.h Examining data/vc-1.3.3/common/where.h Examining data/vc-1.3.3/common/writemaskedvector.h Examining data/vc-1.3.3/common/x86_prefetches.h Examining data/vc-1.3.3/doc/dox-math.h Examining data/vc-1.3.3/doc/dox-real-ops.h Examining data/vc-1.3.3/doc/dox.h Examining data/vc-1.3.3/doc/examples.h Examining data/vc-1.3.3/examples/buddhabrot/main.cpp Examining data/vc-1.3.3/examples/buddhabrot/main.h Examining data/vc-1.3.3/examples/cpuid/main.cpp Examining data/vc-1.3.3/examples/finitediff/main.cpp Examining data/vc-1.3.3/examples/linear_find/main.cpp Examining data/vc-1.3.3/examples/mandelbrot/main.cpp Examining data/vc-1.3.3/examples/mandelbrot/main.h Examining data/vc-1.3.3/examples/mandelbrot/mandel.cpp Examining data/vc-1.3.3/examples/mandelbrot/mandel.h Examining data/vc-1.3.3/examples/matrix/main.cpp Examining data/vc-1.3.3/examples/polarcoord/main.cpp Examining data/vc-1.3.3/examples/scaling/main.cpp Examining data/vc-1.3.3/examples/simdize/main.cpp Examining data/vc-1.3.3/examples/test_inside/main.cpp Examining data/vc-1.3.3/examples/tsc.h Examining data/vc-1.3.3/godbolt.h Examining data/vc-1.3.3/include/Vc/cpuid.h Examining data/vc-1.3.3/include/Vc/global.h Examining data/vc-1.3.3/include/Vc/support.h Examining data/vc-1.3.3/include/Vc/vector.h Examining data/vc-1.3.3/include/Vc/version.h Examining data/vc-1.3.3/mic/casts.h Examining data/vc-1.3.3/mic/const_data.h Examining data/vc-1.3.3/mic/debug.h Examining data/vc-1.3.3/mic/detail.h Examining data/vc-1.3.3/mic/helperimpl.h Examining data/vc-1.3.3/mic/interleaveimpl.h Examining data/vc-1.3.3/mic/intrinsics.h Examining data/vc-1.3.3/mic/limits.h Examining data/vc-1.3.3/mic/macros.h Examining data/vc-1.3.3/mic/mask.h Examining data/vc-1.3.3/mic/math.h Examining data/vc-1.3.3/mic/simd_cast.h Examining data/vc-1.3.3/mic/sorthelper.h Examining data/vc-1.3.3/mic/storemixin.h Examining data/vc-1.3.3/mic/type_traits.h Examining data/vc-1.3.3/mic/types.h Examining data/vc-1.3.3/mic/vector.h Examining data/vc-1.3.3/mic/writemaskedvector.h Examining data/vc-1.3.3/scalar/detail.h Examining data/vc-1.3.3/scalar/helperimpl.h Examining data/vc-1.3.3/scalar/limits.h Examining data/vc-1.3.3/scalar/macros.h Examining data/vc-1.3.3/scalar/mask.h Examining data/vc-1.3.3/scalar/math.h Examining data/vc-1.3.3/scalar/operators.h Examining data/vc-1.3.3/scalar/simd_cast.h Examining data/vc-1.3.3/scalar/type_traits.h Examining data/vc-1.3.3/scalar/types.h Examining data/vc-1.3.3/scalar/vector.h Examining data/vc-1.3.3/src/avx_sorthelper.cpp Examining data/vc-1.3.3/src/const.cpp Examining data/vc-1.3.3/src/cpuid.cpp Examining data/vc-1.3.3/src/mic_const.cpp Examining data/vc-1.3.3/src/mic_sorthelper.cpp Examining data/vc-1.3.3/src/sse_sorthelper.cpp Examining data/vc-1.3.3/src/support_dummy.cpp Examining data/vc-1.3.3/src/support_x86.cpp Examining data/vc-1.3.3/src/trigonometric.cpp Examining data/vc-1.3.3/sse/casts.h Examining data/vc-1.3.3/sse/const.h Examining data/vc-1.3.3/sse/const_data.h Examining data/vc-1.3.3/sse/debug.h Examining data/vc-1.3.3/sse/detail.h Examining data/vc-1.3.3/sse/helperimpl.h Examining data/vc-1.3.3/sse/intrinsics.h Examining data/vc-1.3.3/sse/limits.h Examining data/vc-1.3.3/sse/macros.h Examining data/vc-1.3.3/sse/mask.h Examining data/vc-1.3.3/sse/math.h Examining data/vc-1.3.3/sse/shuffle.h Examining data/vc-1.3.3/sse/simd_cast.h Examining data/vc-1.3.3/sse/type_traits.h Examining data/vc-1.3.3/sse/types.h Examining data/vc-1.3.3/sse/vector.h Examining data/vc-1.3.3/sse/vectorhelper.h Examining data/vc-1.3.3/tests/abi.cpp Examining data/vc-1.3.3/tests/alignedbase.cpp Examining data/vc-1.3.3/tests/alignmentinheritance.cpp Examining data/vc-1.3.3/tests/arithmetics.cpp Examining data/vc-1.3.3/tests/casts.cpp Examining data/vc-1.3.3/tests/convert-sincos-reference.cpp Examining data/vc-1.3.3/tests/deinterleave.cpp Examining data/vc-1.3.3/tests/gather.cpp Examining data/vc-1.3.3/tests/gatherinterleavedmemory.cpp Examining data/vc-1.3.3/tests/generators.h Examining data/vc-1.3.3/tests/implicit_type_conversion.cpp Examining data/vc-1.3.3/tests/implicit_type_conversion_failures.cpp Examining data/vc-1.3.3/tests/iterators.cpp Examining data/vc-1.3.3/tests/linkTest0.cpp Examining data/vc-1.3.3/tests/linkTest1.cpp Examining data/vc-1.3.3/tests/linkTestLib0.cpp Examining data/vc-1.3.3/tests/linkTestLib1.cpp Examining data/vc-1.3.3/tests/linkTestLib2.cpp Examining data/vc-1.3.3/tests/linkTestLib3.cpp Examining data/vc-1.3.3/tests/load.cpp Examining data/vc-1.3.3/tests/logarithm.cpp Examining data/vc-1.3.3/tests/mask.cpp Examining data/vc-1.3.3/tests/math.cpp Examining data/vc-1.3.3/tests/mathreference.h Examining data/vc-1.3.3/tests/memory.cpp Examining data/vc-1.3.3/tests/random.cpp Examining data/vc-1.3.3/tests/reductions.cpp Examining data/vc-1.3.3/tests/scalaraccess.cpp Examining data/vc-1.3.3/tests/scatter.cpp Examining data/vc-1.3.3/tests/scatterinterleavedmemory.cpp Examining data/vc-1.3.3/tests/simdarray.cpp Examining data/vc-1.3.3/tests/simdize.cpp Examining data/vc-1.3.3/tests/sorted.cpp Examining data/vc-1.3.3/tests/sse_blend.cpp Examining data/vc-1.3.3/tests/stlcontainer.cpp Examining data/vc-1.3.3/tests/store.cpp Examining data/vc-1.3.3/tests/subscript.cpp Examining data/vc-1.3.3/tests/supportfunctions.cpp Examining data/vc-1.3.3/tests/trigonometric.cpp Examining data/vc-1.3.3/tests/type_traits.cpp Examining data/vc-1.3.3/tests/typelist.h Examining data/vc-1.3.3/tests/types.cpp Examining data/vc-1.3.3/tests/ulp.cpp Examining data/vc-1.3.3/tests/ulp.h Examining data/vc-1.3.3/tests/unittest-old.h Examining data/vc-1.3.3/tests/unittest.h Examining data/vc-1.3.3/tests/utils.cpp Examining data/vc-1.3.3/tests/vectormemoryhelper.h Examining data/vc-1.3.3/traits/decay.h Examining data/vc-1.3.3/traits/entry_type_of.h Examining data/vc-1.3.3/traits/has_addition_operator.h Examining data/vc-1.3.3/traits/has_contiguous_storage.h Examining data/vc-1.3.3/traits/has_equality_operator.h Examining data/vc-1.3.3/traits/has_multiply_operator.h Examining data/vc-1.3.3/traits/has_no_allocated_data.h Examining data/vc-1.3.3/traits/has_subscript_operator.h Examining data/vc-1.3.3/traits/is_functor_argument_immutable.h Examining data/vc-1.3.3/traits/is_gather_signature.h Examining data/vc-1.3.3/traits/is_implicit_cast_allowed.h Examining data/vc-1.3.3/traits/is_index_sequence.h Examining data/vc-1.3.3/traits/is_initializer_list.h Examining data/vc-1.3.3/traits/is_load_arguments.h Examining data/vc-1.3.3/traits/is_output_iterator.h Examining data/vc-1.3.3/traits/type_traits.h FINAL RESULTS: data/vc-1.3.3/common/vectortuple.h:57:49: [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. Vc_INTRINSIC void callDeinterleave(const A &access, index_sequence<Indexes...>) const data/vc-1.3.3/common/vectortuple.h:59:9: [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. access.deinterleave(*r[Indexes]...); data/vc-1.3.3/common/vectortuple.h:85:66: [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. const InterleavedMemoryReadAccess<StructSize, V, I, RO> &access) data/vc-1.3.3/common/vectortuple.h:87:26: [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. callDeinterleave(access, IndexSequence()); data/vc-1.3.3/common/vectortuple.h:92:66: [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. const InterleavedMemoryReadAccess<StructSize, V, I, RO> &access) = data/vc-1.3.3/godbolt.h:34919:49: [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. Vc_INTRINSIC void callDeinterleave(const A &access, index_sequence<Indexes...>) const data/vc-1.3.3/godbolt.h:34921:9: [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. access.deinterleave(*r[Indexes]...); data/vc-1.3.3/godbolt.h:34947:66: [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. const InterleavedMemoryReadAccess<StructSize, V, I, RO> &access) data/vc-1.3.3/godbolt.h:34949:26: [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. callDeinterleave(access, IndexSequence()); data/vc-1.3.3/godbolt.h:34954:66: [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. const InterleavedMemoryReadAccess<StructSize, V, I, RO> &access) = data/vc-1.3.3/common/simdarray.h:250:50: [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. return fromOperation(Common::Operations::random()); data/vc-1.3.3/common/simdarray.h:664:50: [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. return fromOperation(Common::Operations::random()); data/vc-1.3.3/common/simdarrayhelper.h:66:21: [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. Vc_DEFINE_OPERATION(random, v = V::Random()); data/vc-1.3.3/godbolt.h:27986:21: [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. Vc_DEFINE_OPERATION(random, v = V::Random()); data/vc-1.3.3/godbolt.h:29507:50: [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. return fromOperation(Common::Operations::random()); data/vc-1.3.3/godbolt.h:29921:50: [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. return fromOperation(Common::Operations::random()); data/vc-1.3.3/avx/const_data.h:41:35: [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. alignas(16) extern const unsigned char _IndexesFromZero8 [32]; data/vc-1.3.3/common/memory.h:406:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_mem, rhs, entriesCount() * sizeof(EntryType)); data/vc-1.3.3/common/memory.h:588:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_mem, rhs, entriesCount() * sizeof(EntryType)); data/vc-1.3.3/godbolt.h:7444:35: [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. alignas(16) extern const unsigned char _IndexesFromZero8 [32]; data/vc-1.3.3/godbolt.h:8972:35: [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. alignas(16) extern const unsigned char _IndexesFromZero16[16]; data/vc-1.3.3/godbolt.h:23865:26: [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. alignas(16) extern const char _IndexesFromZero8[16]; data/vc-1.3.3/godbolt.h:23879:27: [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. static const unsigned char frexpAndMask[16]; data/vc-1.3.3/godbolt.h:24238:26: [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. alignas(16) extern const char _IndexesFromZero[16]; data/vc-1.3.3/godbolt.h:36951:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_mem, rhs, entriesCount() * sizeof(EntryType)); data/vc-1.3.3/godbolt.h:37133:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(m_mem, rhs, entriesCount() * sizeof(EntryType)); data/vc-1.3.3/mic/const_data.h:39:26: [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. alignas(16) extern const char _IndexesFromZero8[16]; data/vc-1.3.3/mic/const_data.h:53:27: [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. static const unsigned char frexpAndMask[16]; data/vc-1.3.3/mic/intrinsics.h:388:26: [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. alignas(16) extern const char _IndexesFromZero[16]; data/vc-1.3.3/src/const.cpp:49:39: [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. alignas(16) extern const unsigned char _IndexesFromZero8 [32] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 }; data/vc-1.3.3/src/const.cpp:480:39: [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. alignas(16) extern const unsigned char _IndexesFromZero16[16] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; data/vc-1.3.3/src/mic_const.cpp:41:30: [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. alignas(16) extern const char _IndexesFromZero[16] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; data/vc-1.3.3/sse/const_data.h:41:35: [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. alignas(16) extern const unsigned char _IndexesFromZero16[16]; data/vc-1.3.3/tests/convert-sincos-reference.cpp:92:12: [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 = fopen(filenameOut<T, Function::sincos>(), "wb"); data/vc-1.3.3/tests/convert-sincos-reference.cpp:96:12: [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 = fopen(filenameOut<T, Function::atan>(), "wb"); data/vc-1.3.3/tests/convert-sincos-reference.cpp:100:12: [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 = fopen(filenameOut<T, Function::asin>(), "wb"); data/vc-1.3.3/tests/convert-sincos-reference.cpp:104:12: [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 = fopen(filenameOut<T, Function::acos>(), "wb"); data/vc-1.3.3/tests/convert-sincos-reference.cpp:108:12: [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 = fopen(filenameOut<T, Function::ln>(), "wb"); data/vc-1.3.3/tests/convert-sincos-reference.cpp:112:12: [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 = fopen(filenameOut<T, Function::log2>(), "wb"); data/vc-1.3.3/tests/convert-sincos-reference.cpp:116:12: [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 = fopen(filenameOut<T, Function::log10>(), "wb"); data/vc-1.3.3/tests/mathreference.h:217:27: [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 *file = std::fopen(filename<T, Sincos>(), "rb"); data/vc-1.3.3/tests/mathreference.h:244:27: [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 *file = std::fopen(filename<T, Fun>(), "rb"); data/vc-1.3.3/tests/unittest.h:386:47: [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). global_unit_test_object_.plotFile.open(argv[i + 1], std::ios_base::out); data/vc-1.3.3/tests/unittest.h:965:9: [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 buf[1024]; data/vc-1.3.3/common/aliasingentryhelper.h:65:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define m_data m_storage->read(m_index) data/vc-1.3.3/godbolt.h:8375:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define m_data m_storage->read(m_index) ANALYSIS SUMMARY: Hits = 46 Lines analyzed = 96514 in approximately 3.26 seconds (29638 lines/second) Physical Source Lines of Code (SLOC) = 65385 Hits@level = [0] 8 [1] 2 [2] 28 [3] 6 [4] 10 [5] 0 Hits@level+ = [0+] 54 [1+] 46 [2+] 44 [3+] 16 [4+] 10 [5+] 0 Hits/KSLOC@level+ = [0+] 0.825877 [1+] 0.703525 [2+] 0.672937 [3+] 0.244704 [4+] 0.15294 [5+] 0 Dot directories skipped = 2 (--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.