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/kbdd-0.6/src/perwindow.c Examining data/kbdd-0.6/src/perwindow.h Examining data/kbdd-0.6/src/libkbdd.h Examining data/kbdd-0.6/src/common-defs.h Examining data/kbdd-0.6/src/keys.h Examining data/kbdd-0.6/src/dbus/m-kbdd-service-marshal.c Examining data/kbdd-0.6/src/dbus/kbdd-service-glue.h Examining data/kbdd-0.6/src/dbus/m-kbdd-service.c Examining data/kbdd-0.6/src/dbus/m-kbdd-service.h Examining data/kbdd-0.6/src/kbdd.c Examining data/kbdd-0.6/src/libkbdd.c FINAL RESULTS: data/kbdd-0.6/src/common-defs.h:30:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (printf(PACKAGE_NAME" :%s " fmtstr "\n",__func__,##args)) data/kbdd-0.6/src/kbdd.c:219:17: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "nhv", data/kbdd-0.6/src/dbus/m-kbdd-service.c:36: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. const char * signalNames[E_SIGNAL_COUNT] = { data/kbdd-0.6/src/kbdd.c:94:15: [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). stdioFD = open("/dev/null",O_RDWR); data/kbdd-0.6/src/libkbdd.c:348: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 codebuff[256]; data/kbdd-0.6/src/libkbdd.c:557:28: [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. *layout = strdup( (const char *)_group_names[id] ); data/kbdd-0.6/src/kbdd.c:92:5: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(0); ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 1789 in approximately 0.07 seconds (24434 lines/second) Physical Source Lines of Code (SLOC) = 1277 Hits@level = [0] 24 [1] 1 [2] 4 [3] 1 [4] 1 [5] 0 Hits@level+ = [0+] 31 [1+] 7 [2+] 6 [3+] 2 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 24.2756 [1+] 5.4816 [2+] 4.69851 [3+] 1.56617 [4+] 0.783085 [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.