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/ideep-0.0~git20200915.ba88520/include/ideep.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/abstract_types.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/allocators.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/attributes.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/computations.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/batchnorm.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/binary.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/channel_shuffle.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/concat.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/conv.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/deconv.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/direct_copy.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/dropout.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/eltwise.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/gru.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/inner_product.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/layernorm.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/lbr_gru.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/lrn.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/lstm.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/matmul.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/pool.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/softmax.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/spliter.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/sum.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/operators/vanilla_rnn.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/tensor.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep/utils.hpp Examining data/ideep-0.0~git20200915.ba88520/include/ideep_pin_singletons.hpp FINAL RESULTS: data/ideep-0.0~git20200915.ba88520/include/ideep/utils.hpp:37:8: [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. std::srand(time(nullptr)); data/ideep-0.0~git20200915.ba88520/include/ideep/operators/batchnorm.hpp:62:10: [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(scale_shift_buf, scale.get_data_handle(), scale.get_size()); data/ideep-0.0~git20200915.ba88520/include/ideep/operators/batchnorm.hpp:63:10: [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(scale_shift_buf + scale.get_size(), data/ideep-0.0~git20200915.ba88520/include/ideep/operators/batchnorm.hpp:113:10: [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(scale_shift_buf, scale.get_data_handle(), scale.get_size()); data/ideep-0.0~git20200915.ba88520/include/ideep/operators/batchnorm.hpp:114:10: [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(scale_shift_buf + scale.get_size(), data/ideep-0.0~git20200915.ba88520/include/ideep/operators/batchnorm.hpp:220: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. std::memcpy(diff_scale.get_data_handle(), diff_scale_shift_buf, data/ideep-0.0~git20200915.ba88520/include/ideep/operators/batchnorm.hpp:222: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. std::memcpy(diff_shift.get_data_handle(), data/ideep-0.0~git20200915.ba88520/include/ideep/operators/layernorm.hpp:25:10: [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(scale_shift_buf, scale.get_data_handle(), scale.get_size()); data/ideep-0.0~git20200915.ba88520/include/ideep/operators/layernorm.hpp:26:10: [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(scale_shift_buf + scale.get_size(), ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 4222 in approximately 0.17 seconds (25382 lines/second) Physical Source Lines of Code (SLOC) = 3377 Hits@level = [0] 0 [1] 0 [2] 8 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 9 [1+] 9 [2+] 9 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.66509 [1+] 2.66509 [2+] 2.66509 [3+] 0.296121 [4+] 0 [5+] 0 Dot directories skipped = 1 (--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.