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/keurocalc-1.3.0/keurocalc/main.cpp Examining data/keurocalc-1.3.0/keurocalc/preferences.h Examining data/keurocalc-1.3.0/keurocalc/preferences.cpp Examining data/keurocalc-1.3.0/keurocalc/keurocalc.cpp Examining data/keurocalc-1.3.0/keurocalc/keurocalc.h Examining data/keurocalc-1.3.0/currencies/currencies.cpp Examining data/keurocalc-1.3.0/currencies/currencies.h Examining data/keurocalc-1.3.0/curconvd/table.cpp Examining data/keurocalc-1.3.0/curconvd/table.h Examining data/keurocalc-1.3.0/curconvd/main.cpp Examining data/keurocalc-1.3.0/curconvd/converter.cpp Examining data/keurocalc-1.3.0/curconvd/converter.h FINAL RESULTS: data/keurocalc-1.3.0/currencies/currencies.cpp:52: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). if ( !file.open( QIODevice::ReadOnly ) ) return false; data/keurocalc-1.3.0/keurocalc/keurocalc.cpp:1206:2: [2] (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). Risk is low because the source is a constant string. strcpy( inputDisplay, " " ); data/keurocalc-1.3.0/keurocalc/keurocalc.h:75: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 operatorDisplay[2], data/keurocalc-1.3.0/keurocalc/keurocalc.cpp:1205:2: [1] (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). Risk is low because the source is a constant character. strcpy(operatorDisplay, " "); data/keurocalc-1.3.0/keurocalc/main.cpp:74:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(100000); ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 2660 in approximately 0.10 seconds (26165 lines/second) Physical Source Lines of Code (SLOC) = 1931 Hits@level = [0] 18 [1] 2 [2] 3 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 23 [1+] 5 [2+] 3 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 11.9109 [1+] 2.58933 [2+] 1.5536 [3+] 0 [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.