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/vdr-plugin-dvbsddevice-2.2.0/dvbsdffdevice.c Examining data/vdr-plugin-dvbsddevice-2.2.0/dvbsdffdevice.h Examining data/vdr-plugin-dvbsddevice-2.2.0/dvbsddevice.c Examining data/vdr-plugin-dvbsddevice-2.2.0/dvbsdffosd.c Examining data/vdr-plugin-dvbsddevice-2.2.0/dvbsdffosd.h FINAL RESULTS: data/vdr-plugin-dvbsddevice-2.2.0/dvbsddevice.c:51:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt_long(argc, argv, "o", long_options, NULL)) != -1) { data/vdr-plugin-dvbsddevice-2.2.0/dvbsdffdevice.c:45:6: [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 buffer[PATH_MAX]; data/vdr-plugin-dvbsddevice-2.2.0/dvbsdffdevice.c:48:19: [2] (misc) fopen: 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 ((f = fopen(buffer, "r")) != NULL) { data/vdr-plugin-dvbsddevice-2.2.0/dvbsdffdevice.c:106: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 buffer[PATH_MAX]; data/vdr-plugin-dvbsddevice-2.2.0/dvbsdffdevice.c:108:18: [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). int videoDev = open(buffer, O_RDWR); data/vdr-plugin-dvbsddevice-2.2.0/dvbsdffdevice.c:170:33: [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[32]; data/vdr-plugin-dvbsddevice-2.2.0/dvbsdffdevice.c:177:36: [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(result, buf, l); data/vdr-plugin-dvbsddevice-2.2.0/dvbsdffdevice.c:178:36: [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(result + l, mem, bytes); data/vdr-plugin-dvbsddevice-2.2.0/dvbsdffdevice.c:697:18: [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[blen], &Data[offs], len); data/vdr-plugin-dvbsddevice-2.2.0/dvbsdffdevice.c:172:41: [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). int l = strlen(buf); ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 1193 in approximately 0.03 seconds (34254 lines/second) Physical Source Lines of Code (SLOC) = 989 Hits@level = [0] 3 [1] 1 [2] 8 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 13 [1+] 10 [2+] 9 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 13.1446 [1+] 10.1112 [2+] 9.1001 [3+] 1.01112 [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.