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/xrootconsole-0.6/util.c Examining data/xrootconsole-0.6/util.h Examining data/xrootconsole-0.6/main.c FINAL RESULTS: data/xrootconsole-0.6/main.c:525:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). io->bw = atoi(get_option_param(++argv)); data/xrootconsole-0.6/main.c:527:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). io->tc = atoi(get_option_param(++argv)); data/xrootconsole-0.6/main.c:563:10: [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(console, O_RDONLY|O_NONBLOCK); data/xrootconsole-0.6/main.c:955:13: [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[1024]; data/xrootconsole-0.6/main.c:958:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(cs->fd, buf, sizeof(buf)); ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 1141 in approximately 0.04 seconds (25586 lines/second) Physical Source Lines of Code (SLOC) = 807 Hits@level = [0] 14 [1] 1 [2] 4 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 19 [1+] 5 [2+] 4 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 23.544 [1+] 6.19579 [2+] 4.95663 [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.