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/libbsd-arc4random-perl-1.50/arc4random.c Examining data/libbsd-arc4random-perl-1.50/arc4rnd_xs.c FINAL RESULTS: data/libbsd-arc4random-perl-1.50/arc4random.c:202:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rdat.rnd, __vcsid, MIN(sizeof(__vcsid), sizeof(rdat.rnd))); data/libbsd-arc4random-perl-1.50/arc4random.c:211:7: [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(__randomdev, O_RDONLY); data/libbsd-arc4random-perl-1.50/arc4random.c:451:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, w32_buf + i, j); data/libbsd-arc4random-perl-1.50/arc4random.c:471:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &num, sizeof(num)); data/libbsd-arc4random-perl-1.50/arc4random.c:476:12: [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 ((fd = open(__randomdev, O_WRONLY)) != -1) { data/libbsd-arc4random-perl-1.50/arc4random.c:213:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sz = (size_t)read(fd, rdat.rnd, sizeof(rdat.rnd)); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 861 in approximately 0.03 seconds (28364 lines/second) Physical Source Lines of Code (SLOC) = 627 Hits@level = [0] 0 [1] 1 [2] 5 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 6 [1+] 6 [2+] 5 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 9.56938 [1+] 9.56938 [2+] 7.97448 [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.