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/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp
Examining data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.h
Examining data/kodi-pvr-iptvsimple-3.9.8/src/client.cpp
Examining data/kodi-pvr-iptvsimple-3.9.8/src/client.h

FINAL RESULTS:

data/kodi-pvr-iptvsimple-3.9.8/src/client.cpp:33:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/kodi-pvr-iptvsimple-3.9.8/src/client.cpp:33:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:419:24:  [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).
    entry.iChannelId = atoi(strId.c_str());
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:566:34:  [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).
      entry.iSeasonNumber = std::atoi(match[1].str().c_str());
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:567: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).
      entry.iEpisodeNumber = std::atoi(match[2].str().c_str());
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:691: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.
          char buff[255];
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:692:11:  [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(buff, "%d", atoi(strInfoLine.c_str()));
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:692: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).
          sprintf(buff, "%d", atoi(strInfoLine.c_str()));
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:703:25:  [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).
          iChannelNum = atoi(strChnlNo.c_str());
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:911:24:  [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).
    genre.iGenreType = atoi(buff.c_str());
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:916:29:  [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).
      genre.iGenreSubType = atoi(buff.c_str());
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:1127: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 buffer[1024];
data/kodi-pvr-iptvsimple-3.9.8/src/client.cpp:100: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[1024];
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:254: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(2 * 1000 * 1000); // sleep 2 sec before next try.
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:632:38:  [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 (StringUtils::Left(strLine, strlen(M3U_START_MARKER)) == M3U_START_MARKER)
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:647:36:  [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 (StringUtils::Left(strLine, strlen(M3U_INFO_MARKER)) == M3U_INFO_MARKER)
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:755: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).
    else if (StringUtils::Left(strLine, strlen(KODIPROP_MARKER)) == KODIPROP_MARKER)
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:766: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).
    else if (StringUtils::Left(strLine, strlen(EXTVLCOPT_MARKER)) == EXTVLCOPT_MARKER)
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:781: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).
    else if (StringUtils::Left(strLine, strlen(PLAYLIST_TYPE_MARKER)) == PLAYLIST_TYPE_MARKER)
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:945:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(xbmcChannel.strChannelName, channel.strChannelName.c_str(), sizeof(xbmcChannel.strChannelName) - 1);
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:947:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(xbmcChannel.strIconPath, channel.strLogoPath.c_str(), sizeof(xbmcChannel.strIconPath) - 1);
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:1000:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(xbmcGroup.strGroupName, it->strGroupName.c_str(), sizeof(xbmcGroup.strGroupName) - 1);
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:1025:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(xbmcGroupMember.strGroupName, group.strGroupName, sizeof(xbmcGroupMember.strGroupName) - 1);
data/kodi-pvr-iptvsimple-3.9.8/src/PVRIptvData.cpp:1414:7:  [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(strNewPath) > 0)
data/kodi-pvr-iptvsimple-3.9.8/src/client.cpp:353:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(properties[0].strName, PVR_STREAM_PROPERTY_STREAMURL, sizeof(properties[0].strName) - 1);
data/kodi-pvr-iptvsimple-3.9.8/src/client.cpp:354:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(properties[0].strValue, m_currentChannel.strStreamURL.c_str(), sizeof(properties[0].strValue) - 1);
data/kodi-pvr-iptvsimple-3.9.8/src/client.cpp:360:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(properties[*iPropertiesCount].strName, prop.first.c_str(),
data/kodi-pvr-iptvsimple-3.9.8/src/client.cpp:362:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(properties[*iPropertiesCount].strValue, prop.second.c_str(),
data/kodi-pvr-iptvsimple-3.9.8/src/client.h:35:39:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#define PVR_STRCPY(dest, source) do { strncpy(dest, source, sizeof(dest)-1); dest[sizeof(dest)-1] = '\0'; } while(0)

ANALYSIS SUMMARY:

Hits = 29
Lines analyzed = 2191 in approximately 0.41 seconds (5399 lines/second)
Physical Source Lines of Code (SLOC) = 1727
Hits@level = [0]   8 [1]  16 [2]  11 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  37 [1+]  29 [2+]  13 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 21.4244 [1+] 16.7921 [2+] 7.5275 [3+] 1.15808 [4+] 1.15808 [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.