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-vnsiserver-1.8.0/bitstream.c
Examining data/vdr-plugin-vnsiserver-1.8.0/bitstream.h
Examining data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c
Examining data/vdr-plugin-vnsiserver-1.8.0/channelfilter.h
Examining data/vdr-plugin-vnsiserver-1.8.0/channelscancontrol.c
Examining data/vdr-plugin-vnsiserver-1.8.0/channelscancontrol.h
Examining data/vdr-plugin-vnsiserver-1.8.0/config.c
Examining data/vdr-plugin-vnsiserver-1.8.0/config.h
Examining data/vdr-plugin-vnsiserver-1.8.0/cxsocket.c
Examining data/vdr-plugin-vnsiserver-1.8.0/cxsocket.h
Examining data/vdr-plugin-vnsiserver-1.8.0/demuxer.c
Examining data/vdr-plugin-vnsiserver-1.8.0/demuxer.h
Examining data/vdr-plugin-vnsiserver-1.8.0/hash.c
Examining data/vdr-plugin-vnsiserver-1.8.0/hash.h
Examining data/vdr-plugin-vnsiserver-1.8.0/parser.c
Examining data/vdr-plugin-vnsiserver-1.8.0/parser.h
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_AAC.c
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_AAC.h
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_AC3.c
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_AC3.h
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_DTS.c
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_DTS.h
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_MPEGAudio.c
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_MPEGAudio.h
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_MPEGVideo.c
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_MPEGVideo.h
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_Subtitle.c
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_Subtitle.h
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_Teletext.c
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_Teletext.h
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_h264.c
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_h264.h
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_hevc.c
Examining data/vdr-plugin-vnsiserver-1.8.0/parser_hevc.h
Examining data/vdr-plugin-vnsiserver-1.8.0/recordingscache.c
Examining data/vdr-plugin-vnsiserver-1.8.0/recordingscache.h
Examining data/vdr-plugin-vnsiserver-1.8.0/recplayer.c
Examining data/vdr-plugin-vnsiserver-1.8.0/recplayer.h
Examining data/vdr-plugin-vnsiserver-1.8.0/requestpacket.c
Examining data/vdr-plugin-vnsiserver-1.8.0/requestpacket.h
Examining data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c
Examining data/vdr-plugin-vnsiserver-1.8.0/responsepacket.h
Examining data/vdr-plugin-vnsiserver-1.8.0/setup.c
Examining data/vdr-plugin-vnsiserver-1.8.0/setup.h
Examining data/vdr-plugin-vnsiserver-1.8.0/status.c
Examining data/vdr-plugin-vnsiserver-1.8.0/status.h
Examining data/vdr-plugin-vnsiserver-1.8.0/streamer.c
Examining data/vdr-plugin-vnsiserver-1.8.0/streamer.h
Examining data/vdr-plugin-vnsiserver-1.8.0/videobuffer.c
Examining data/vdr-plugin-vnsiserver-1.8.0/videobuffer.h
Examining data/vdr-plugin-vnsiserver-1.8.0/videoinput.c
Examining data/vdr-plugin-vnsiserver-1.8.0/videoinput.h
Examining data/vdr-plugin-vnsiserver-1.8.0/vnsi.c
Examining data/vdr-plugin-vnsiserver-1.8.0/vnsi.h
Examining data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c
Examining data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.h
Examining data/vdr-plugin-vnsiserver-1.8.0/vnsicommand.h
Examining data/vdr-plugin-vnsiserver-1.8.0/vnsiosd.c
Examining data/vdr-plugin-vnsiserver-1.8.0/vnsiosd.h
Examining data/vdr-plugin-vnsiserver-1.8.0/vnsiserver.c
Examining data/vdr-plugin-vnsiserver-1.8.0/vnsiserver.h
Examining data/vdr-plugin-vnsiserver-1.8.0/vnsitimer.c
Examining data/vdr-plugin-vnsiserver-1.8.0/vnsitimer.h
Examining data/vdr-plugin-vnsiserver-1.8.0/wirbelscan_services.h

FINAL RESULTS:

data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:84:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  filename = cString::sprintf("%s/videowhitelist.vnsi", *VNSIServerConfig.ConfigDirectory);
data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:111:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  filename = cString::sprintf("%s/radiowhitelist.vnsi", *VNSIServerConfig.ConfigDirectory);
data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:138:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  filename = cString::sprintf("%s/videoblacklist.vnsi", *VNSIServerConfig.ConfigDirectory);
data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:151:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  filename = cString::sprintf("%s/radioblacklist.vnsi", *VNSIServerConfig.ConfigDirectory);
data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:176:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      filename = cString::sprintf("%s/radiowhitelist.vnsi", *VNSIServerConfig.ConfigDirectory);
data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:181:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      filename = cString::sprintf("%s/videowhitelist.vnsi", *VNSIServerConfig.ConfigDirectory);
data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:210:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      filename = cString::sprintf("%s/radioblacklist.vnsi", *VNSIServerConfig.ConfigDirectory);
data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:215:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      filename = cString::sprintf("%s/videoblacklist.vnsi", *VNSIServerConfig.ConfigDirectory);
data/vdr-plugin-vnsiserver-1.8.0/channelscancontrol.c:102:42:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    m_client->OsdStatusMessage(*cString::sprintf("%s", tr("Your scanner version doesnt support services - Please upgrade.")));
data/vdr-plugin-vnsiserver-1.8.0/channelscancontrol.c:118:42:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    m_client->OsdStatusMessage(*cString::sprintf("%s", tr("Your scanner version is to old - Please upgrade." )));
data/vdr-plugin-vnsiserver-1.8.0/config.h:37:23:  [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.
#define INFOLOG(x...) printf("VNSI: " x)
data/vdr-plugin-vnsiserver-1.8.0/config.h:38:24:  [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.
#define ERRORLOG(x...) printf("VNSI-Error: " x)
data/vdr-plugin-vnsiserver-1.8.0/config.h:39:24:  [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.
#define DEBUGLOG(x...) printf("VNSI-Debug: " x)
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:566:31:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    resp.add_String(*cString::sprintf("Unknown"));
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:567:31:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    resp.add_String(*cString::sprintf("Unknown"));
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:588:35:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        m_DeviceString = cString::sprintf("/dev/video%d", i);
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:611:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      resp.add_String(*cString::sprintf("Analog #%s - %s (%s)", *m_DeviceString, (char *) m_vcap.card, m_vcap.driver));
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:630:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      m_DeviceString = cString::sprintf(FRONTEND_DEVICE, m_Device->CardIndex(), 0);
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:749:37:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          resp.add_String(*cString::sprintf("DVB-S%s #%d - %s", (m_FrontendInfo.caps & 0x10000000) ? "2" : "",  m_Device->CardIndex(), m_FrontendInfo.name));
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:752:37:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          resp.add_String(*cString::sprintf("DVB-C #%d - %s", m_Device->CardIndex(), m_FrontendInfo.name));
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:755:37:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          resp.add_String(*cString::sprintf("DVB-T #%d - %s", m_Device->CardIndex(), m_FrontendInfo.name));
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:758:37:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          resp.add_String(*cString::sprintf("ATSC #%d - %s", m_Device->CardIndex(), m_FrontendInfo.name));
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:764:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      resp.add_String(*cString::sprintf("%s:%s:%s:%s:%s", (status & FE_HAS_LOCK) ? "LOCKED" : "-", (status & FE_HAS_SIGNAL) ? "SIGNAL" : "-", (status & FE_HAS_CARRIER) ? "CARRIER" : "-", (status & FE_HAS_VITERBI) ? "VITERBI" : "-", (status & FE_HAS_SYNC) ? "SYNC" : "-"));
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:788:30:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    resp.add_String(cString::sprintf("Channel: scrambled (%d)", error));
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:793:30:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    resp.add_String(cString::sprintf("Channel: scrambled (%d)", error));
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:798:30:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    resp.add_String(cString::sprintf("Channel: encrypted? (%d)", error));
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:803:30:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    resp.add_String(cString::sprintf("Channel: no data"));
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:808:30:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    resp.add_String(cString::sprintf("Channel: unknown error (%d)", error));
data/vdr-plugin-vnsiserver-1.8.0/videobuffer.c:397:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    m_Filename = cString::sprintf("%s/Timeshift-%d.vnsi", TimeshiftBufferDir, m_ClientID);
data/vdr-plugin-vnsiserver-1.8.0/videobuffer.c:401:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    m_Filename = cString::sprintf("%s/Timeshift-%d.vnsi", cVideoDirectory::Name(), m_ClientID);
data/vdr-plugin-vnsiserver-1.8.0/videobuffer.c:403:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    m_Filename = cString::sprintf("%s/Timeshift-%d.vnsi", VideoDirectory, m_ClientID);
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:1197:24:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      caids = cString::sprintf("%s%d;", (const char*)caids, caid);
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:1787:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    buffer = cString::sprintf("%u:%s:%s:%04d:%04d:%d:%d:%s:%s\n", flags, (const char*)channel->GetChannelID().ToString(), *cTimer::PrintDay(day, weekdays, true), start, stop, priority, lifetime, file, aux);
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:2057:25:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      buffer = cString::sprintf("%u:%s:%s:%04d:%04d:%d:%d:%s:%s\n", flags, (const char*)channel->GetChannelID().ToString(), *cTimer::PrintDay(day, weekdays, true), start, stop, priority, lifetime, file, aux);
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:3099:10:  [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(NewName, F_OK))
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:3102:34:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      OsdStatusMessage(*cString::sprintf("%s (%s)", tr("Recording with the same name exists"), NewName));
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:3106:11:  [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(recording->FileName(), F_OK) == 0)
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:3127:40:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            OsdStatusMessage(*cString::sprintf("%s (%s)", tr("Error while read last filenumber"), NewName));
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:3133:39:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
              cString temp = cString::sprintf(recording->IsPesRecording() ? "%s/%03d.vdr" : "%s/%05d.ts", (const char *)NewName, i);
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:3134:19:  [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(*temp, R_OK) != 0)
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:3137:44:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                OsdStatusMessage(*cString::sprintf("%s %03d (%s)", tr("Error while accessing vdrfile"), i, NewName));
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:3145:38:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          OsdStatusMessage(*cString::sprintf("%s (%s)", tr("Error while accessing indexfile"), NewName));
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:3155:36:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        OsdStatusMessage(*cString::sprintf("%s \"%s\"", tr("Deleted recording vanished"), recording->FileName()));
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:3294:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  cString serviceref = cString::sprintf("1_0_%i_%X_%X_%X_%X_0_0_0",
data/vdr-plugin-vnsiserver-1.8.0/vnsiserver.c:58:31:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      cString Base = cString::sprintf("%s/../svdrphosts.conf", *VNSIServerConfig.ConfigDirectory);
data/vdr-plugin-vnsiserver-1.8.0/vnsiserver.c:148:35:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    m_AllowedHostsFile = cString::sprintf("%s/" ALLOWED_HOSTS_FILE, *VNSIServerConfig.ConfigDirectory);
data/vdr-plugin-vnsiserver-1.8.0/vnsiserver.c:153:35:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    m_AllowedHostsFile = cString::sprintf("/video/" ALLOWED_HOSTS_FILE);
data/vdr-plugin-vnsiserver-1.8.0/vnsitimer.c:52:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  filename = cString::sprintf("%s/timers.vnsi", *VNSIServerConfig.ConfigDirectory);
data/vdr-plugin-vnsiserver-1.8.0/vnsitimer.c:151:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  filename = cString::sprintf("%s/timers.vnsi", *VNSIServerConfig.ConfigDirectory);
data/vdr-plugin-vnsiserver-1.8.0/wirbelscan_services.h:221:40:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  cUserTransponder(uint8_t id, uint8_t system, uint32_t frequency, uint8_t polarisation, uint32_t symbolrate,
data/vdr-plugin-vnsiserver-1.8.0/wirbelscan_services.h:225:71:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
     data[2] = P(orbit,12,20) | P(we_flag,1,19) | P(rolloff,2,17) | P(system,1,16) | P(use_nit,1,3);
data/vdr-plugin-vnsiserver-1.8.0/parser_AAC.c:52:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *detectEnv = getenv("VNSI_AAC_MUXMODE");
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:62: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, "t:dT:p:", long_options, NULL)) != -1) {
data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:86:9:  [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).
  rfile.open(filename);
data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:112:9:  [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).
  rfile.open(filename);
data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:139:9:  [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).
  rfile.open(filename);
data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:152:9:  [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).
  rfile.open(filename);
data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:185:11:  [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).
    wfile.open(filename);
data/vdr-plugin-vnsiserver-1.8.0/channelfilter.c:219:11:  [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).
    wfile.open(filename);
data/vdr-plugin-vnsiserver-1.8.0/cxsocket.c:186:7:  [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, "%d.%d.%d.%d",
data/vdr-plugin-vnsiserver-1.8.0/cxsocket.c:192:7:  [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, "%u.%u.%u.%u:%u",
data/vdr-plugin-vnsiserver-1.8.0/demuxer.c:599: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 ALangs[MAXAPIDS][MAXLANGCODE2] = { 0 };
data/vdr-plugin-vnsiserver-1.8.0/demuxer.c:600: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 DLangs[MAXDPIDS][MAXLANGCODE2] = { 0 };
data/vdr-plugin-vnsiserver-1.8.0/demuxer.c:601: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 SLangs[MAXSPIDS][MAXLANGCODE2] = { 0 };
data/vdr-plugin-vnsiserver-1.8.0/demuxer.h:50: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 language[MAXLANGCODE2] = { 0 };
data/vdr-plugin-vnsiserver-1.8.0/parser.c:237:7:  [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(m_PesHeader+m_PesHeaderPtr, data, size);
data/vdr-plugin-vnsiserver-1.8.0/parser.c:246:9:  [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(m_PesHeader+m_PesHeaderPtr, data, bytesNeeded);
data/vdr-plugin-vnsiserver-1.8.0/parser.c:263:11:  [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(m_PesHeader+m_PesHeaderPtr, data, size);
data/vdr-plugin-vnsiserver-1.8.0/parser.c:269:11:  [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(m_PesHeader+m_PesHeaderPtr, data, bytesNeeded);
data/vdr-plugin-vnsiserver-1.8.0/parser.c:290:9:  [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(m_PesHeader+m_PesHeaderPtr, data, size);
data/vdr-plugin-vnsiserver-1.8.0/parser.c:296:9:  [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(m_PesHeader+m_PesHeaderPtr, data, bytesNeeded);
data/vdr-plugin-vnsiserver-1.8.0/parser.c:322:11:  [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(m_PesHeader+m_PesHeaderPtr, data, size);
data/vdr-plugin-vnsiserver-1.8.0/parser.c:341:9:  [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(m_PesHeader+m_PesHeaderPtr, data, size);
data/vdr-plugin-vnsiserver-1.8.0/parser.c:399:3:  [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(m_PesBuffer+m_PesBufferPtr, data, size);
data/vdr-plugin-vnsiserver-1.8.0/parser.h:207: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                  m_language[4];  // ISO 639 3-letter language code (empty string if undefined)
data/vdr-plugin-vnsiserver-1.8.0/parser_h264.c:497:11:  [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(&m_PixelAspect, &aspect_ratios[aspect_ratio_idc], sizeof(mpeg_rational_t));
data/vdr-plugin-vnsiserver-1.8.0/recplayer.c:152:12:  [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).
  m_file = open(m_fileName, O_RDONLY);
data/vdr-plugin-vnsiserver-1.8.0/recplayer.h:79: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 m_fileName[512];
data/vdr-plugin-vnsiserver-1.8.0/requestpacket.c:88:3:  [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(&ul, &userData[packetPos], sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/requestpacket.c:99:3:  [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(&ull, &userData[packetPos], sizeof(uint64_t));
data/vdr-plugin-vnsiserver-1.8.0/requestpacket.c:110:3:  [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(&ll, &userData[packetPos], sizeof(int64_t));
data/vdr-plugin-vnsiserver-1.8.0/requestpacket.c:121:3:  [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(&ull, &userData[packetPos], sizeof(uint64_t));
data/vdr-plugin-vnsiserver-1.8.0/requestpacket.c:124:3:  [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(&d, &ull, sizeof(double));
data/vdr-plugin-vnsiserver-1.8.0/requestpacket.c:134:3:  [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(&l, &userData[packetPos], sizeof(int32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:82:3:  [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(&buffer[0], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:84:3:  [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(&buffer[4], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:86:3:  [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(&buffer[userDataLenPos], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:98:3:  [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(&buffer[0], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:100:3:  [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(&buffer[4], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:102:3:  [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(&buffer[userDataLenPos], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:114:3:  [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(&buffer[0], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:116:3:  [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(&buffer[4], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:118:3:  [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(&buffer[userDataLenPos], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:131:3:  [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(&buffer[0], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:133:3:  [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(&buffer[4], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:135:3:  [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(&buffer[8], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:137:3:  [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(&buffer[12], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:139:3:  [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(&buffer[16], &ull, sizeof(uint64_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:141:3:  [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(&buffer[24], &ull, sizeof(uint64_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:143:3:  [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(&buffer[32], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:145:3:  [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(&buffer[userDataLenPosStream], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:158:3:  [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(&buffer[0], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:160:3:  [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(&buffer[4], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:162:3:  [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(&buffer[8], &l, sizeof(int32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:164:3:  [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(&buffer[12], &l, sizeof(int32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:166:3:  [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(&buffer[16], &l, sizeof(int32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:168:3:  [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(&buffer[20], &l, sizeof(int32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:170:3:  [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(&buffer[24], &l, sizeof(int32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:172:3:  [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(&buffer[28], &l, sizeof(int32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:174:3:  [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(&buffer[userDataLenPosOSD], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:182:3:  [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(&buffer[userDataLenPos], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:188:3:  [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(&buffer[userDataLenPosStream], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:194:3:  [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(&buffer[userDataLenPosOSD], &ul, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:200:3:  [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(buffer + bufUsed, src, len);
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:222:3:  [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(buffer + bufUsed, string, len);
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:231:3:  [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(&buffer[bufUsed], &tmp, sizeof(uint32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:248:3:  [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(&buffer[bufUsed], &tmp, sizeof(int32_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:257:3:  [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(&buffer[bufUsed], &tmp, sizeof(uint64_t));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:266:3:  [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(&ull, &d, sizeof(double));
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:268:3:  [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(&buffer[bufUsed], &ull, sizeof(uint64_t));
data/vdr-plugin-vnsiserver-1.8.0/setup.c:32:1:  [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 TimeshiftBufferDir[PATH_MAX] = "\0";
data/vdr-plugin-vnsiserver-1.8.0/setup.h:35: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.
  const char *timeshiftModesTexts[3];
data/vdr-plugin-vnsiserver-1.8.0/setup.h:38: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 newTimeshiftBufferDir[PATH_MAX];
data/vdr-plugin-vnsiserver-1.8.0/setup.h:45: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.
  const char *edlModesTexts[3];
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:589:22:  [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).
        m_Frontend = open(m_DeviceString, O_RDONLY | O_NONBLOCK);
data/vdr-plugin-vnsiserver-1.8.0/streamer.c:631:20:  [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).
      m_Frontend = open(m_DeviceString, O_RDONLY | O_NONBLOCK);
data/vdr-plugin-vnsiserver-1.8.0/videobuffer.c:257:5:  [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(m_BufferPtr+m_WritePtr, buf, bytes);
data/vdr-plugin-vnsiserver-1.8.0/videobuffer.c:264:3:  [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(m_BufferPtr+m_WritePtr, buf, size);
data/vdr-plugin-vnsiserver-1.8.0/videobuffer.c:406:10:  [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).
  m_Fd = open(m_Filename, O_RDWR | O_CREAT | O_TRUNC, S_IRWXU);
data/vdr-plugin-vnsiserver-1.8.0/videobuffer.c:833:10:  [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).
  m_Fd = open(m_Filename, O_RDONLY);
data/vdr-plugin-vnsiserver-1.8.0/videoinput.c:196:8:  [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 ALangs[MAXAPIDS][MAXLANGCODE2] = { "" };
data/vdr-plugin-vnsiserver-1.8.0/videoinput.c:197:8:  [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 DLangs[MAXDPIDS][MAXLANGCODE2] = { "" };
data/vdr-plugin-vnsiserver-1.8.0/videoinput.c:198:8:  [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 SLangs[MAXSPIDS][MAXLANGCODE2] = { "" };
data/vdr-plugin-vnsiserver-1.8.0/videoinput.c:258:22:  [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 lang[MAXLANGCODE1] = { 0 };
data/vdr-plugin-vnsiserver-1.8.0/videoinput.c:330:25:  [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 lang[MAXLANGCODE1] = { 0 };
data/vdr-plugin-vnsiserver-1.8.0/videoinput.c:364:22:  [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 lang[MAXLANGCODE1] = { 0 };
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:64:71:  [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).
          case 'p': if(optarg != NULL) VNSIServerConfig.listen_port = atoi(optarg);
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:66:74:  [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).
          case 't': if(optarg != NULL) VNSIServerConfig.stream_timeout = atoi(optarg);
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:144:18:  [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).
    PmtTimeout = atoi(Value);
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:146:21:  [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).
    TimeshiftMode = atoi(Value);
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:148: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).
    TimeshiftBufferSize = atoi(Value);
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:150:31:  [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).
    TimeshiftBufferFileSize = atoi(Value);
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:159:21:  [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).
    PlayRecording = atoi(Value);
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:161:23:  [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).
    GroupRecordings = atoi(Value);
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:163: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).
    AvoidEPGScan = atoi(Value);
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:165: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).
    DisableScrambleTimeout = atoi(Value);
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:167: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).
    DisableCamBlacklist = atoi(Value);
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:169:15:  [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).
    EdlMode = atoi(Value);
data/vdr-plugin-vnsiserver-1.8.0/vnsi.h:38:8:  [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.
extern char TimeshiftBufferDir[PATH_MAX];
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:3098:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(ext, ".rec");
data/vdr-plugin-vnsiserver-1.8.0/vnsiserver.c:93: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 buf[64];
data/vdr-plugin-vnsiserver-1.8.0/vnsitimer.c:53:9:  [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).
  rfile.open(filename);
data/vdr-plugin-vnsiserver-1.8.0/vnsitimer.c:155:9:  [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).
  wfile.open(filename);
data/vdr-plugin-vnsiserver-1.8.0/wirbelscan_services.h:101: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 curr_device[256];                         // name of current device. meaningless, if (status != StatusScanning)
data/vdr-plugin-vnsiserver-1.8.0/wirbelscan_services.h:104: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 transponder[256];                         // current transponder. meaningless, if (status != StatusScanning)
data/vdr-plugin-vnsiserver-1.8.0/wirbelscan_services.h:145: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 short_name[8];
data/vdr-plugin-vnsiserver-1.8.0/wirbelscan_services.h:146: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 full_name[64];
data/vdr-plugin-vnsiserver-1.8.0/cxsocket.c:132:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t cxSocket::read(void *buffer, size_t size, int timeout_ms)
data/vdr-plugin-vnsiserver-1.8.0/cxsocket.c:150:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t p = ::read(m_fd, ptr, missing);
data/vdr-plugin-vnsiserver-1.8.0/cxsocket.h:58:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ssize_t read(void *buffer, size_t size, int timeout_ms = -1);
data/vdr-plugin-vnsiserver-1.8.0/hash.c:90:13:  [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 len = strlen(p);
data/vdr-plugin-vnsiserver-1.8.0/recplayer.c:241:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int bytes_read = read(m_file, buffer, amount);
data/vdr-plugin-vnsiserver-1.8.0/responsepacket.c:220: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).
  uint32_t len = strlen(string) + 1;
data/vdr-plugin-vnsiserver-1.8.0/setup.c:100:49:  [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 (*TimeshiftBufferDir && TimeshiftBufferDir[strlen(TimeshiftBufferDir)-1] == '/')
data/vdr-plugin-vnsiserver-1.8.0/setup.c:102:24:  [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).
    TimeshiftBufferDir[strlen(TimeshiftBufferDir)-1] = 0;
data/vdr-plugin-vnsiserver-1.8.0/status.c:64:24:  [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).
  size_t name_length = strlen(name);
data/vdr-plugin-vnsiserver-1.8.0/status.c:71:32:  [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).
  const size_t suffix_length = strlen(suffix);
data/vdr-plugin-vnsiserver-1.8.0/status.c:326:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(250*1000);
data/vdr-plugin-vnsiserver-1.8.0/videobuffer.c:75:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(100);
data/vdr-plugin-vnsiserver-1.8.0/videoinput.c:236:48:  [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).
                                          s += strlen(s);
data/vdr-plugin-vnsiserver-1.8.0/videoinput.c:283:48:  [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).
                                          s += strlen(s);
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:154:51:  [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 (*TimeshiftBufferDir && TimeshiftBufferDir[strlen(TimeshiftBufferDir)-1] == '/')
data/vdr-plugin-vnsiserver-1.8.0/vnsi.c:156:26:  [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).
      TimeshiftBufferDir[strlen(TimeshiftBufferDir)-1] = 0;
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:92:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!m_socket.read((uint8_t*)&channelID, sizeof(uint32_t)))
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:98:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (!m_socket.read((uint8_t*)&requestID, sizeof(uint32_t), 10000))
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:103:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (!m_socket.read((uint8_t*)&opcode, sizeof(uint32_t), 10000))
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:108:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (!m_socket.read((uint8_t*)&dataLength, sizeof(uint32_t), 10000))
data/vdr-plugin-vnsiserver-1.8.0/vnsiclient.c:130:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!m_socket.read(data, dataLength, 10000))
data/vdr-plugin-vnsiserver-1.8.0/vnsitimer.c:416:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(1000*1000);

ANALYSIS SUMMARY:

Hits = 179
Lines analyzed = 16382 in approximately 0.35 seconds (47089 lines/second)
Physical Source Lines of Code (SLOC) = 12328
Hits@level = [0]   9 [1]  22 [2] 104 [3]   2 [4]  51 [5]   0
Hits@level+ = [0+] 188 [1+] 179 [2+] 157 [3+]  53 [4+]  51 [5+]   0
Hits/KSLOC@level+ = [0+] 15.2498 [1+] 14.5198 [2+] 12.7352 [3+] 4.29916 [4+] 4.13692 [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.