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/cub-1.9.10-1/experimental/histogram/histogram_cub.h Examining data/cub-1.9.10-1/experimental/histogram/histogram_gmem_atomics.h Examining data/cub-1.9.10-1/experimental/histogram/histogram_smem_atomics.h Examining data/cub-1.9.10-1/experimental/sparse_matrix.h Examining data/cub-1.9.10-1/test/half.h Examining data/cub-1.9.10-1/test/link_main.cpp Examining data/cub-1.9.10-1/test/mersenne.h Examining data/cub-1.9.10-1/test/test_util.h FINAL RESULTS: data/cub-1.9.10-1/experimental/sparse_matrix.h:316:13: [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). ifs.open(market_filename.c_str(), std::ifstream::in); data/cub-1.9.10-1/experimental/sparse_matrix.h:327: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 line[1024]; data/cub-1.9.10-1/test/test_util.h:465:9: [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(&key, word_buff, sizeof(K)); ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 3845 in approximately 0.16 seconds (24370 lines/second) Physical Source Lines of Code (SLOC) = 2586 Hits@level = [0] 45 [1] 0 [2] 3 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 48 [1+] 3 [2+] 3 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 18.5615 [1+] 1.16009 [2+] 1.16009 [3+] 0 [4+] 0 [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.