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/libxv-1.0.11/include/X11/extensions/Xvlib.h Examining data/libxv-1.0.11/src/Xvlibint.h Examining data/libxv-1.0.11/src/Xv.c FINAL RESULTS: data/libxv-1.0.11/include/X11/extensions/Xvlib.h:128: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 guid[16]; /* Globally Unique IDentifier */ data/libxv-1.0.11/include/X11/extensions/Xvlib.h:149: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 component_order[32]; /* eg. UYVY */ data/libxv-1.0.11/src/Xv.c:951:17: [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(&(ret[i].guid[0]), &(Info.guid[0]), 16); data/libxv-1.0.11/src/Xv.c:968:17: [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(&(ret[i].component_order[0]), &(Info.comp_order[0]), 32); data/libxv-1.0.11/src/Xv.c:250:16: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy(name, u.string, size); data/libxv-1.0.11/src/Xv.c:424:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, u.string, size); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 1636 in approximately 0.04 seconds (40040 lines/second) Physical Source Lines of Code (SLOC) = 1179 Hits@level = [0] 0 [1] 2 [2] 4 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 6 [1+] 6 [2+] 4 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 5.08906 [1+] 5.08906 [2+] 3.39271 [3+] 0 [4+] 0 [5+] 0 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.