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-dvbviewer-3.7.11/src/DvbData.cpp
Examining data/kodi-pvr-dvbviewer-3.7.11/src/DvbData.h
Examining data/kodi-pvr-dvbviewer-3.7.11/src/IStreamReader.h
Examining data/kodi-pvr-dvbviewer-3.7.11/src/KVStore.cpp
Examining data/kodi-pvr-dvbviewer-3.7.11/src/KVStore.h
Examining data/kodi-pvr-dvbviewer-3.7.11/src/LocalizedString.h
Examining data/kodi-pvr-dvbviewer-3.7.11/src/RecordingReader.cpp
Examining data/kodi-pvr-dvbviewer-3.7.11/src/RecordingReader.h
Examining data/kodi-pvr-dvbviewer-3.7.11/src/Settings.cpp
Examining data/kodi-pvr-dvbviewer-3.7.11/src/Settings.h
Examining data/kodi-pvr-dvbviewer-3.7.11/src/StreamReader.cpp
Examining data/kodi-pvr-dvbviewer-3.7.11/src/StreamReader.h
Examining data/kodi-pvr-dvbviewer-3.7.11/src/Timers.cpp
Examining data/kodi-pvr-dvbviewer-3.7.11/src/Timers.h
Examining data/kodi-pvr-dvbviewer-3.7.11/src/TimeshiftBuffer.cpp
Examining data/kodi-pvr-dvbviewer-3.7.11/src/TimeshiftBuffer.h
Examining data/kodi-pvr-dvbviewer-3.7.11/src/client.cpp
Examining data/kodi-pvr-dvbviewer-3.7.11/src/client.h

FINAL RESULTS:

data/kodi-pvr-dvbviewer-3.7.11/src/DvbData.cpp:693: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[2048];
data/kodi-pvr-dvbviewer-3.7.11/src/DvbData.cpp:972: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-dvbviewer-3.7.11/src/DvbData.cpp:1152: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-dvbviewer-3.7.11/src/Settings.cpp:21: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-dvbviewer-3.7.11/src/Settings.cpp:329: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).
          m_priority = atoi(xEntry->GetText());
data/kodi-pvr-dvbviewer-3.7.11/src/Timers.cpp:417: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 repeat[8] = "-------";
data/kodi-pvr-dvbviewer-3.7.11/src/Timers.cpp:529: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).
  timer.end   = timer.start + atoi(xml->Attribute("Dur")) * 60;
data/kodi-pvr-dvbviewer-3.7.11/src/RecordingReader.cpp:72:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  m_pos += read;
data/kodi-pvr-dvbviewer-3.7.11/src/RecordingReader.cpp:73:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read;
data/kodi-pvr-dvbviewer-3.7.11/src/Timers.cpp:575:34:  [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).
    timer.source = source.substr(strlen("Search:"));
data/kodi-pvr-dvbviewer-3.7.11/src/TimeshiftBuffer.cpp:76:70:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t write = XBMC->WriteFile(m_filebufferWriteHandle, buffer, read);
data/kodi-pvr-dvbviewer-3.7.11/src/client.h:37: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 = 12
Lines analyzed = 4579 in approximately 0.39 seconds (11768 lines/second)
Physical Source Lines of Code (SLOC) = 3705
Hits@level = [0]   6 [1]   5 [2]   7 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  18 [1+]  12 [2+]   7 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 4.8583 [1+] 3.23887 [2+] 1.88934 [3+]   0 [4+]   0 [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.