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-remoteosd-1.0.0/remoteosd.h Examining data/vdr-plugin-remoteosd-1.0.0/setup.c Examining data/vdr-plugin-remoteosd-1.0.0/setup.h Examining data/vdr-plugin-remoteosd-1.0.0/svdrpservice.h Examining data/vdr-plugin-remoteosd-1.0.0/menu.c Examining data/vdr-plugin-remoteosd-1.0.0/remoteosd.c Examining data/vdr-plugin-remoteosd-1.0.0/menu.h FINAL RESULTS: data/vdr-plugin-remoteosd-1.0.0/menu.c:103:25: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. cmd.command = cString::sprintf("CHAN %s\r\n", *Channel->GetChannelID().ToString()); data/vdr-plugin-remoteosd-1.0.0/menu.c:111:25: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. cmd.command = cString::sprintf("HITK %s\r\n", Key); data/vdr-plugin-remoteosd-1.0.0/menu.c:130:25: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. cmd.command = cString::sprintf(PLUG_OSD "LSTO %d\r\n", maxItems); data/vdr-plugin-remoteosd-1.0.0/menu.c:145:25: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. title = cString::sprintf("%s: %s", *svdrp.serverIp, s + 2); data/vdr-plugin-remoteosd-1.0.0/menu.c:165:27: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. message = cString::sprintf("%s: %s", *svdrp.serverIp, s + 2); data/vdr-plugin-remoteosd-1.0.0/menu.c:204:21: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. title = cString::sprintf("%s: %s", *svdrp.serverIp, line->Text()); data/vdr-plugin-remoteosd-1.0.0/menu.c:224:25: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. cmd.command = cString::sprintf(PLUG_EXT "OSDI %d\r\n", maxItems); data/vdr-plugin-remoteosd-1.0.0/menu.c:299:23: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. message = cString::sprintf("%s: %s", *svdrp.serverIp, line->Text()); data/vdr-plugin-remoteosd-1.0.0/remoteosd.c:110:39: [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). RemoteOsdSetup.hideMainMenuEntry = atoi(Value); data/vdr-plugin-remoteosd-1.0.0/remoteosd.c:112:37: [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). RemoteOsdSetup.replaceSchedule = atoi(Value); data/vdr-plugin-remoteosd-1.0.0/remoteosd.c:114:35: [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). RemoteOsdSetup.replaceTimers = atoi(Value); data/vdr-plugin-remoteosd-1.0.0/remoteosd.c:118:32: [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). RemoteOsdSetup.serverPort = atoi(Value); data/vdr-plugin-remoteosd-1.0.0/remoteosd.c:120:32: [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). RemoteOsdSetup.tuneServer = atoi(Value); data/vdr-plugin-remoteosd-1.0.0/remoteosd.c:122:30: [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). RemoteOsdSetup.maxItems = atoi(Value); data/vdr-plugin-remoteosd-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-remoteosd-1.0.0/setup.h:23: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 remoteTheme[MaxThemeName]; data/vdr-plugin-remoteosd-1.0.0/menu.c:142:9: [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(s) > 2) { data/vdr-plugin-remoteosd-1.0.0/menu.c:236:9: [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(s) > 2) { data/vdr-plugin-remoteosd-1.0.0/menu.c:268:9: [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(s) > 2) { ANALYSIS SUMMARY: Hits = 19 Lines analyzed = 850 in approximately 0.03 seconds (29926 lines/second) Physical Source Lines of Code (SLOC) = 661 Hits@level = [0] 0 [1] 3 [2] 8 [3] 0 [4] 8 [5] 0 Hits@level+ = [0+] 19 [1+] 19 [2+] 16 [3+] 8 [4+] 8 [5+] 0 Hits/KSLOC@level+ = [0+] 28.7443 [1+] 28.7443 [2+] 24.2057 [3+] 12.1029 [4+] 12.1029 [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.