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/delay-1.0/dtbuf.c Examining data/delay-1.0/dtbuf.h Examining data/delay-1.0/main.c Examining data/delay-1.0/time_ms.c Examining data/delay-1.0/time_ms.h FINAL RESULTS: data/delay-1.0/dtbuf.c:72:9: [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(&dtbuf->data[dtbuf->head], &header, sizeof(header)); data/delay-1.0/dtbuf.c:111:13: [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(&dtbuf->data[dtbuf->tail], &header, sizeof(header)); data/delay-1.0/dtbuf.c:67:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((r = read(fd_in, &dtbuf->data[payload_index], data/delay-1.0/main.c:79:17: [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). if (strlen(&arg[2]) > 0) { ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 423 in approximately 0.06 seconds (6872 lines/second) Physical Source Lines of Code (SLOC) = 292 Hits@level = [0] 4 [1] 2 [2] 2 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 8 [1+] 4 [2+] 2 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 27.3973 [1+] 13.6986 [2+] 6.84932 [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.