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/emacspeak-ss-1.12.1/ping-apollo.c FINAL RESULTS: data/emacspeak-ss-1.12.1/ping-apollo.c:55: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[MAXCHARS+1]; data/emacspeak-ss-1.12.1/ping-apollo.c:59:8: [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). fd = open(devname,O_RDWR); data/emacspeak-ss-1.12.1/ping-apollo.c:72:3: [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(10000); /* 100 usec is enough */ data/emacspeak-ss-1.12.1/ping-apollo.c:73:22: [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). write(fd, argv[1], strlen(argv[1])); data/emacspeak-ss-1.12.1/ping-apollo.c:82:2: [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(10000); data/emacspeak-ss-1.12.1/ping-apollo.c:86:3: [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(10000); /* 100 usec is enough */ data/emacspeak-ss-1.12.1/ping-apollo.c:105:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, buf+numchars++, 1) < 0) ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 114 in approximately 0.06 seconds (1983 lines/second) Physical Source Lines of Code (SLOC) = 77 Hits@level = [0] 3 [1] 5 [2] 2 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 10 [1+] 7 [2+] 2 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 129.87 [1+] 90.9091 [2+] 25.974 [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.