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-osdserver-0.1.3/osdobjects.c
Examining data/vdr-plugin-osdserver-0.1.3/osdobjects.h
Examining data/vdr-plugin-osdserver-0.1.3/osdserver.c
Examining data/vdr-plugin-osdserver-0.1.3/osdserver.h
Examining data/vdr-plugin-osdserver-0.1.3/osdobjectsbase.c
Examining data/vdr-plugin-osdserver-0.1.3/osdobjectsbase.h
Examining data/vdr-plugin-osdserver-0.1.3/tools.c
Examining data/vdr-plugin-osdserver-0.1.3/server.c
Examining data/vdr-plugin-osdserver-0.1.3/server.h
Examining data/vdr-plugin-osdserver-0.1.3/connection.c
Examining data/vdr-plugin-osdserver-0.1.3/connection.h
Examining data/vdr-plugin-osdserver-0.1.3/interpreter.h
Examining data/vdr-plugin-osdserver-0.1.3/interpreter.c
Examining data/vdr-plugin-osdserver-0.1.3/tools.h

FINAL RESULTS:

data/vdr-plugin-osdserver-0.1.3/connection.h:20:70:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    void Reply(int Code, const char *fmt, ...) __attribute__((format(printf,3,4)));
data/vdr-plugin-osdserver-0.1.3/connection.h:23:76:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    void ReplyDebug(int index, const char *fmt, ...) __attribute__((format(printf,3,4)));
data/vdr-plugin-osdserver-0.1.3/osdobjectsbase.c:52:25:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        Name = cString::sprintf("_%i", Object->id);
data/vdr-plugin-osdserver-0.1.3/osdobjectsbase.c:58:34:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        cString pname = cString::sprintf("_%i", prev->id);
data/vdr-plugin-osdserver-0.1.3/osdobjectsbase.h:160:59:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        return (i != idList.end()) ? i->second : cString::sprintf("_%i", id);
data/vdr-plugin-osdserver-0.1.3/osdserver.c:76:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(OsdServerHosts, F_OK) == 0)
data/vdr-plugin-osdserver-0.1.3/osdserver.c:56: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.
        int c=getopt_long(argc,argv,"p:",getopt_array,&optindex);
data/vdr-plugin-osdserver-0.1.3/interpreter.c:47: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 keyName[20];
data/vdr-plugin-osdserver-0.1.3/interpreter.c:399:11:  [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.
    const char *(strings[max]);
data/vdr-plugin-osdserver-0.1.3/interpreter.c:593:27:  [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).
    if (cseconds) seconds=atoi(cseconds);
data/vdr-plugin-osdserver-0.1.3/interpreter.c:596:27:  [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).
    if (ctimeout) timeout=atoi(ctimeout);
data/vdr-plugin-osdserver-0.1.3/interpreter.c:829: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).
        SleepEventTimeout.tv_sec+=atoi(par);
data/vdr-plugin-osdserver-0.1.3/interpreter.c:834:19:  [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).
            int t=atoi(par);
data/vdr-plugin-osdserver-0.1.3/interpreter.c:889: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).
    int NewCurrent=atoi(cmd.GetArg(0));
data/vdr-plugin-osdserver-0.1.3/interpreter.c:1037: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 str[20];
data/vdr-plugin-osdserver-0.1.3/interpreter.c:1038:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(str, "%i", value);
data/vdr-plugin-osdserver-0.1.3/interpreter.c:1066:9:  [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 str[20];
data/vdr-plugin-osdserver-0.1.3/interpreter.c:1067:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "%i", value+1);
data/vdr-plugin-osdserver-0.1.3/interpreter.h:52:9:  [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[32];
data/vdr-plugin-osdserver-0.1.3/osdserver.c:60: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).
            Port = atoi(optarg);
data/vdr-plugin-osdserver-0.1.3/server.c:70:18:  [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).
        length = strlen(s);
data/vdr-plugin-osdserver-0.1.3/server.c:111:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int len=read(fd,buffer+bufferFill,bufferLength-bufferFill);
data/vdr-plugin-osdserver-0.1.3/tools.c:91:39:  [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 (write(newsock, s, strlen(s)) < 0)

ANALYSIS SUMMARY:

Hits = 23
Lines analyzed = 4297 in approximately 0.09 seconds (47673 lines/second)
Physical Source Lines of Code (SLOC) = 3165
Hits@level = [0]   8 [1]   3 [2]  13 [3]   1 [4]   6 [5]   0
Hits@level+ = [0+]  31 [1+]  23 [2+]  20 [3+]   7 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 9.79463 [1+] 7.26698 [2+] 6.31912 [3+] 2.21169 [4+] 1.89573 [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.