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/abx-0.0~b1/src/test.c Examining data/abx-0.0~b1/src/gtkui.h Examining data/abx-0.0~b1/src/decidewin.c Examining data/abx-0.0~b1/src/playback.c Examining data/abx-0.0~b1/src/player.c Examining data/abx-0.0~b1/src/player.h Examining data/abx-0.0~b1/src/gtkui.c Examining data/abx-0.0~b1/src/playback.h Examining data/abx-0.0~b1/src/soundfile.h Examining data/abx-0.0~b1/src/mainwin.c Examining data/abx-0.0~b1/src/abx.c Examining data/abx-0.0~b1/src/test.h Examining data/abx-0.0~b1/src/soundfile.c Examining data/abx-0.0~b1/src/newtestwin.c Examining data/abx-0.0~b1/src/resultwin.c FINAL RESULTS: data/abx-0.0~b1/src/mainwin.c:599:5: [4] (buffer) strcpy: 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). strcpy(license, license_1); data/abx-0.0~b1/src/mainwin.c:600:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(license, license_2); data/abx-0.0~b1/src/test.c:79:13: [3] (random) g_random_boolean: 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. if (g_random_boolean() == TRUE) test.answers[i] = SAMPLE_A; data/abx-0.0~b1/src/mainwin.c:598:5: [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 license[sizeof(license_1) + sizeof(license_2)]; ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 3013 in approximately 0.08 seconds (37563 lines/second) Physical Source Lines of Code (SLOC) = 1930 Hits@level = [0] 0 [1] 0 [2] 1 [3] 1 [4] 2 [5] 0 Hits@level+ = [0+] 4 [1+] 4 [2+] 4 [3+] 3 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 2.07254 [1+] 2.07254 [2+] 2.07254 [3+] 1.5544 [4+] 1.03627 [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.