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-svdrpservice-1.0.0/connection.h Examining data/vdr-plugin-svdrpservice-1.0.0/setup.c Examining data/vdr-plugin-svdrpservice-1.0.0/setup.h Examining data/vdr-plugin-svdrpservice-1.0.0/connection.c Examining data/vdr-plugin-svdrpservice-1.0.0/svdrpservice.c Examining data/vdr-plugin-svdrpservice-1.0.0/svdrpservice.h FINAL RESULTS: data/vdr-plugin-svdrpservice-1.0.0/connection.c:18:31: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define DEBUG_PRINTF(args...) fprintf(stderr, args) data/vdr-plugin-svdrpservice-1.0.0/connection.c:171:25: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. convMsg = cString::sprintf(" (enabled charset conversion %s - %s)", r, l); data/vdr-plugin-svdrpservice-1.0.0/setup.c:37:49: [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). serverPort = opt_serverIp ? (opt_serverPort ? atoi(opt_serverPort) : 6419) : atoi(Value); data/vdr-plugin-svdrpservice-1.0.0/setup.c:37:81: [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). serverPort = opt_serverIp ? (opt_serverPort ? atoi(opt_serverPort) : 6419) : atoi(Value); data/vdr-plugin-svdrpservice-1.0.0/setup.c:39:20: [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). connectTimeout = atoi(Value); data/vdr-plugin-svdrpservice-1.0.0/setup.c:41:17: [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). readTimeout = atoi(Value); data/vdr-plugin-svdrpservice-1.0.0/setup.h:19:2: [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 serverIp[MAX_IP_LENGTH]; data/vdr-plugin-svdrpservice-1.0.0/connection.c:205:23: [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). unsigned int len = ::strlen(Cmd); ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 695 in approximately 0.03 seconds (20400 lines/second) Physical Source Lines of Code (SLOC) = 567 Hits@level = [0] 1 [1] 1 [2] 5 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 9 [1+] 8 [2+] 7 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 15.873 [1+] 14.1093 [2+] 12.3457 [3+] 3.52734 [4+] 3.52734 [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.