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/pd-mjlib-0.1.1/monorhythm.h Examining data/pd-mjlib-0.1.1/metroplus.h Examining data/pd-mjlib-0.1.1/prob.c Examining data/pd-mjlib-0.1.1/StdAfx.h Examining data/pd-mjlib-0.1.1/prob.h Examining data/pd-mjlib-0.1.1/metroplus.c Examining data/pd-mjlib-0.1.1/morse.c Examining data/pd-mjlib-0.1.1/about.c Examining data/pd-mjlib-0.1.1/n2m.h Examining data/pd-mjlib-0.1.1/pin~.c Examining data/pd-mjlib-0.1.1/mjLib.c Examining data/pd-mjlib-0.1.1/n2m.c Examining data/pd-mjlib-0.1.1/synapseA~.h Examining data/pd-mjlib-0.1.1/things.h Examining data/pd-mjlib-0.1.1/synapseA~.c Examining data/pd-mjlib-0.1.1/convolve~.c Examining data/pd-mjlib-0.1.1/morse.h Examining data/pd-mjlib-0.1.1/monorhythm.c Examining data/pd-mjlib-0.1.1/mjLib.h Examining data/pd-mjlib-0.1.1/about.h Examining data/pd-mjlib-0.1.1/pin~.h Examining data/pd-mjlib-0.1.1/convolve~.h FINAL RESULTS: data/pd-mjlib-0.1.1/about.c:71:3: [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. srand( (unsigned) time( NULL ) ); data/pd-mjlib-0.1.1/convolve~.c:171:3: [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. srand( (unsigned) time( NULL ) ); data/pd-mjlib-0.1.1/pin~.c:196:3: [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. srand( (unsigned) time( NULL ) ); data/pd-mjlib-0.1.1/prob.c:133:3: [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. srand( (unsigned) time( NULL ) ); data/pd-mjlib-0.1.1/morse.c:210:3: [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[256]; data/pd-mjlib-0.1.1/n2m.c:46:2: [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[255]; data/pd-mjlib-0.1.1/n2m.c:47:2: [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 note[255]; data/pd-mjlib-0.1.1/morse.c:214:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen( buf ); data/pd-mjlib-0.1.1/morse.c:272:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nmsg->length = strlen( msgpart ); ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 1909 in approximately 0.05 seconds (37546 lines/second) Physical Source Lines of Code (SLOC) = 1273 Hits@level = [0] 1 [1] 2 [2] 3 [3] 4 [4] 0 [5] 0 Hits@level+ = [0+] 10 [1+] 9 [2+] 7 [3+] 4 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 7.85546 [1+] 7.06991 [2+] 5.49882 [3+] 3.14218 [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.