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/cutemaze-1.2.6/src/board.cpp Examining data/cutemaze-1.2.6/src/board.h Examining data/cutemaze-1.2.6/src/cell.cpp Examining data/cutemaze-1.2.6/src/cell.h Examining data/cutemaze-1.2.6/src/locale_dialog.cpp Examining data/cutemaze-1.2.6/src/locale_dialog.h Examining data/cutemaze-1.2.6/src/main.cpp Examining data/cutemaze-1.2.6/src/maze.cpp Examining data/cutemaze-1.2.6/src/maze.h Examining data/cutemaze-1.2.6/src/new_game_dialog.cpp Examining data/cutemaze-1.2.6/src/new_game_dialog.h Examining data/cutemaze-1.2.6/src/path.cpp Examining data/cutemaze-1.2.6/src/path.h Examining data/cutemaze-1.2.6/src/scores.cpp Examining data/cutemaze-1.2.6/src/scores.h Examining data/cutemaze-1.2.6/src/settings.cpp Examining data/cutemaze-1.2.6/src/settings.h Examining data/cutemaze-1.2.6/src/solver.cpp Examining data/cutemaze-1.2.6/src/solver.h Examining data/cutemaze-1.2.6/src/theme.cpp Examining data/cutemaze-1.2.6/src/theme.h Examining data/cutemaze-1.2.6/src/window.cpp Examining data/cutemaze-1.2.6/src/window.h FINAL RESULTS: data/cutemaze-1.2.6/src/maze.cpp:338:58: [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 Maze::generate(int columns, int rows, std::mt19937& random) data/cutemaze-1.2.6/src/maze.cpp:340:13: [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. m_random = random; data/cutemaze-1.2.6/src/maze.h:47:52: [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 generate(int columns, int row, std::mt19937& random); data/cutemaze-1.2.6/src/board.cpp:619:11: [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. unsigned char corners[full_view][full_view]; data/cutemaze-1.2.6/src/scores.cpp:119:2: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(); data/cutemaze-1.2.6/src/scores.cpp:184:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void Scores::read() data/cutemaze-1.2.6/src/scores.h:36:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(); ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 3834 in approximately 0.24 seconds (16276 lines/second) Physical Source Lines of Code (SLOC) = 2535 Hits@level = [0] 0 [1] 3 [2] 1 [3] 3 [4] 0 [5] 0 Hits@level+ = [0+] 7 [1+] 7 [2+] 4 [3+] 3 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.76134 [1+] 2.76134 [2+] 1.57791 [3+] 1.18343 [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.