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-mythtv-5.10.15/lib/cppmyth/src/mythcontrol.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythcontrol.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythdebug.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mytheventhandler.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mytheventhandler.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythfileplayback.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythfileplayback.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythintrinsic.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythintrinsic.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythlivetvplayback.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythlivetvplayback.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythlocked.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythlocked.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythrecordingplayback.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythrecordingplayback.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythsharedptr.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythstream.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythtypes.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythtypes.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsstream.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsstream.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/atomic.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.c
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/compressor.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/compressor.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/cppdef.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/debug.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/debug.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/jsonparser.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/jsonparser.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/artwork.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/capturecard.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/channel.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/cutting.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/list.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/mythdto.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/mythdto.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/mythdto75.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/mythdto76.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/mythdto82.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/mythdto85.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/program.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/recording.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/recordschedule.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/version.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythdto/videosource.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythjsonbinder.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/mythjsonbinder.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/os.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/threads/condition.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/threads/event.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/threads/mutex.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/threads/os-threads.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/threads/thread.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/threads/threadpool.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/threads/threadpool.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/threads/timeout.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/unix/os-types.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/windows/msc_inttypes.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/windows/os-types.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/windows/winpthreads.c
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/windows/winpthreads.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/sajson.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/securesocket.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/securesocket.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/uriparser.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/uriparser.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/urlencoder.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wscontent.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wscontent.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsrequest.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsrequest.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsresponse.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsresponse.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotoevent.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotoevent.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotoplayback.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotoplayback.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotorecorder.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotorecorder.h
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprototransfer.cpp
Examining data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprototransfer.h
Examining data/kodi-pvr-mythtv-5.10.15/src/artworksmanager.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/artworksmanager.h
Examining data/kodi-pvr-mythtv-5.10.15/src/avinfo.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/avinfo.h
Examining data/kodi-pvr-mythtv-5.10.15/src/categories.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/categories.h
Examining data/kodi-pvr-mythtv-5.10.15/src/client.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/client.h
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth.h
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythChannel.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythChannel.h
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythEPGInfo.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythEPGInfo.h
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythPrivate.h
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythProgramInfo.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythProgramInfo.h
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythRecordingRule.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythRecordingRule.h
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelper75.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelper75.h
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelper76.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelper76.h
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelper85.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelper85.h
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelper91.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelper91.h
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelperNoHelper.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelperNoHelper.h
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleManager.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleManager.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_AAC.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_AAC.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_AC3.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_AC3.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_MPEGAudio.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_MPEGAudio.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_MPEGVideo.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_MPEGVideo.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_Subtitle.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_Subtitle.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_Teletext.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_Teletext.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_h264.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_h264.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_hevc.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_hevc.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/bitstream.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/bitstream.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/debug.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/debug.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/elementaryStream.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/elementaryStream.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/tsDemuxer.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/tsDemuxer.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/tsPacket.h
Examining data/kodi-pvr-mythtv-5.10.15/src/demuxer/tsTable.h
Examining data/kodi-pvr-mythtv-5.10.15/src/filestreaming.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/filestreaming.h
Examining data/kodi-pvr-mythtv-5.10.15/src/pvrclient-launcher.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/pvrclient-launcher.h
Examining data/kodi-pvr-mythtv-5.10.15/src/pvrclient-mythtv.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/pvrclient-mythtv.h
Examining data/kodi-pvr-mythtv-5.10.15/src/taskhandler.cpp
Examining data/kodi-pvr-mythtv-5.10.15/src/taskhandler.h
Examining data/kodi-pvr-mythtv-5.10.15/src/tools.h

FINAL RESULTS:

data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/debug.cpp:31: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-mythtv-5.10.15/lib/cppmyth/src/private/debug.cpp:31: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-mythtv-5.10.15/lib/cppmyth/src/private/debug.cpp:69:5:  [4] (format) vsnprintf:
  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.
    vsnprintf(msg + len, sizeof (msg) - len, fmt, ap);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/windows/os-types.h:87: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-mythtv-5.10.15/lib/cppmyth/src/private/os/windows/os-types.h:87: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-mythtv-5.10.15/lib/cppmyth/src/private/sajson.h:583:13:  [4] (format) vsnprintf:
  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.
            vsnprintf(buf, 1023, format, ap);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:326:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cmd, "MYTH_PROTO_VERSION %" PRIu32 " %s", map->version, map->token);
data/kodi-pvr-mythtv-5.10.15/src/client.cpp:357:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(s.c_str(), "[COLOR %s", buffer) == 1)
data/kodi-pvr-mythtv-5.10.15/src/client.cpp:695:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(s.c_str(), "[COLOR %s", buffer) == 1)
data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelper75.cpp:1378:7:  [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.
      snprintf(buf, sizeof(buf), XBMC->GetLocalizedString(30509), i); // Keep %d newest and expire old
data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelper75.cpp:1390:7:  [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.
      snprintf(buf, sizeof(buf), XBMC->GetLocalizedString(30508), i); // Keep up to %d recordings
data/kodi-pvr-mythtv-5.10.15/src/demuxer/debug.cpp:31: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-mythtv-5.10.15/src/demuxer/debug.cpp:31: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-mythtv-5.10.15/src/demuxer/debug.cpp:70:5:  [4] (format) vsnprintf:
  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.
    vsnprintf(msg + len, sizeof (msg) - len, fmt, ap);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/windows/winpthreads.c:170:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(m);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/windows/winpthreads.c:188:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection(m);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/windows/winpthreads.c:867:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&b->m);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/windows/winpthreads.c:890:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection(&b->m);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/windows/winpthreads.c:898:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&b->m);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythlivetvplayback.cpp:232: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythlivetvplayback.cpp:508: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(static_cast<unsigned char*>(buffer) + c, m_buffer.data + m_buffer.pos, n);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythlivetvplayback.cpp:517: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(static_cast<unsigned char*>(buffer) + c, m_buffer.data + m_buffer.pos, m_buffer.len);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythrecordingplayback.cpp:175: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(static_cast<unsigned char*>(buffer) + c, m_buffer.data + m_buffer.pos, n);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythrecordingplayback.cpp:184: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(static_cast<unsigned char*>(buffer) + c, m_buffer.data + m_buffer.pos, m_buffer.len);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythtypes.cpp:41: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythtypes.cpp:58: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 buf[TIMESTAMP_UTC_LEN + 1];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythtypes.cpp:65: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 buf[TIMESTAMP_LEN + 1];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythtypes.cpp:81: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:104:16:  [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.
  static const char * WSServiceRoot[WS_INVALID + 1] =
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:598: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:673: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:752: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:797: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:877: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:959: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1056: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1144: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1241: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1301: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1358: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1393: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1426: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1459: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1490: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1524: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1556: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1607: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1658: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1695: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1741: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1814: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1855: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[10];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1860:3:  [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(buf, "%.2d:%.2d:%.2d", stm.tm_hour, stm.tm_min, stm.tm_sec);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1872: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:1959: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2050: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2141: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2174: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2207: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2255: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2336: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2416: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2569: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2608: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2636: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2677: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2707: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2748: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythwsapi.cpp:2778: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.c:230: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[TIMESTAMP_UTC_LEN + 1];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.c:298: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).
  time_tm.tm_year = atoi(yyyy) - 1900;
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.c:299: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).
  time_tm.tm_mon = atoi(MM) - 1;
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.c:305: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).
  time_tm.tm_mday = atoi(dd);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.c:320: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).
  time_tm.tm_hour = atoi(hh);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.c:326: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).
  time_tm.tm_min = atoi(mm);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.c:332: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).
  time_tm.tm_sec = atoi(ss);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.c:359:3:  [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, "%4.4d-%2.2d-%2.2dT%2.2d:%2.2d:%2.2dZ",
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.c:377:3:  [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, "%4.4d-%2.2d-%2.2dT%2.2d:%2.2d:%2.2d",
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.c:395:3:  [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, "%4.4d-%2.2d-%2.2d",
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.h:61:3:  [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, "%lld", (long long)num);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.h:67:3:  [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, "%ld", (long)num);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.h:73:3:  [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", num);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.h:79:3:  [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", num);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.h:85:3:  [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, "%lu", (unsigned long)num);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.h:91:3:  [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", num);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.h:97:3:  [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", num);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.h:120: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(result, data, sizeof(*result));
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.h: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(result, data, sizeof(*result));
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/compressor.cpp:134: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(buf, m_output + m_output_pos, sz);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/compressor.cpp:374: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(buf, m_output + m_output_pos, sz);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/debug.cpp:67: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 msg[4096];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/jsonparser.cpp:180: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[4000];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/sajson.h:213:13:  [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(data, s.data(), length);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/sajson.h:220:13:  [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(data, s.data(), length);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/sajson.h:579:13:  [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[1024];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/securesocket.cpp:310: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 buf[80];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:95: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.
static char my_hostname[SOCKET_HOSTNAME_MAXSIZE];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:193: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 service[33];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:334: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(p, m_bufptr, rcvlen);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:373:13:  [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(p, m_buffer, s);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:415: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 buf[256];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:464: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 host[INET6_ADDRSTRLEN];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:470: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 addr[sizeof(sockaddr_in6)];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:732:12:  [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.
  unsigned char _addr[sizeof(struct in6_addr)];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:746: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(&(sa->sin_addr.s_addr), _addr, sizeof(in_addr_t));
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:753: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(&(sa->sin6_addr), _addr, sizeof(struct in6_addr));
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:837: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(buf, m_bufptr, len);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:869: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(buf, m_buffer, len);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:896: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 host[INET6_ADDRSTRLEN];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:1173: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 host[INET6_ADDRSTRLEN];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/socket.cpp:1191: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(buf, m_bufptr, len);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/uriparser.cpp:124:36:  [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).
          parts->port = (unsigned) atoi(p + 2);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/uriparser.cpp:134:36:  [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).
          parts->port = (unsigned) atoi(p + 1);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/urlencoder.h:39:7:  [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[4];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/urlencoder.h:40: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(buf, "%%%.2x", static_cast<unsigned char>(*cstr));
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/urlencoder.h:59:7:  [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[3];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsrequest.cpp:178: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsrequest.cpp:186:3:  [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(buf, "%u", m_port);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsrequest.cpp:203: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsrequest.cpp:209:3:  [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(buf, "%u", m_port);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsrequest.cpp:221: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(buf, "%lu", (unsigned long)content_len);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsrequest.cpp:235: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsrequest.cpp:243:3:  [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(buf, "%u", m_port);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsresponse.cpp:40: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[RESPONSE_BUFFER_SIZE];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsresponse.cpp:161: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 token[HTTP_TOKEN_MAXSIZE + 1];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsresponse.cpp:255:31:  [2] (integer) atol:
  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_contentLength = atol(val);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsresponse.cpp:323: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(buf, m_chunkPtr, s);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:37: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 token[44]; // up to 43 chars used in v87 + the terminating NULL character
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:103: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 buf[9];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:106: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(buf, "%-8u", (unsigned)l);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:137: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[PROTO_BUFFER_SIZE];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:204: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[PROTO_BUFFER_SIZE];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:224: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[9];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:285: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 cmd[256];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:1239: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:1312: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:1388: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:1467: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:1548: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.cpp:126: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.cpp:255: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.cpp:341: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.cpp:406: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.cpp:449: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.cpp:571: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 buf[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.cpp:618: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 buf[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.cpp:673: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 buf[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.cpp:726: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.cpp:773: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.cpp:822: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotomonitor.cpp:872: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotoplayback.cpp:102: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotoplayback.cpp:120: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotoplayback.cpp:271: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotoplayback.cpp:305: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotorecorder.cpp:99: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotorecorder.cpp:132: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotorecorder.cpp:157: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotorecorder.cpp:184: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotorecorder.cpp:211: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotorecorder.cpp:241: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotorecorder.cpp:280: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotorecorder.cpp:327: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotorecorder.cpp:565: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotorecorder.cpp:596: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[32];
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprototransfer.cpp:102: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 buf[PROTO_BUFFER_SIZE];
data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythChannel.cpp:54: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 str[CHANNUM_STR_SIZE + 1];
data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythChannel.cpp:65:22:  [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).
  *major = (unsigned)atoi(p1);
data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythChannel.cpp:70:22:  [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).
  *minor = (unsigned)atoi(p1);
data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythProgramInfo.cpp:188: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[48] = "";
data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythProgramInfo.cpp:189:3:  [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(buf, "%u_%ld_%.3x",
data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelper75.cpp:859:22:  [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 offset = atoi(categoryOverTime->value.c_str());
data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelper75.cpp:1334: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 buf[5];
data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythScheduleHelper75.cpp:1371: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 buf[256];
data/kodi-pvr-mythtv-5.10.15/src/demuxer/ES_h264.cpp:502: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/kodi-pvr-mythtv-5.10.15/src/demuxer/debug.cpp:68: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 msg[4096];
data/kodi-pvr-mythtv-5.10.15/src/demuxer/elementaryStream.cpp:126: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(es_buf + es_len, buf, len);
data/kodi-pvr-mythtv-5.10.15/src/demuxer/elementaryStream.h:62: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                  language[4];
data/kodi-pvr-mythtv-5.10.15/src/demuxer/tsDemuxer.cpp:337: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(av_buf, data, av_pkt_size);
data/kodi-pvr-mythtv-5.10.15/src/demuxer/tsDemuxer.cpp:627: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(this->packet->packet_table.buf, this->payload + 4, n);
data/kodi-pvr-mythtv-5.10.15/src/demuxer/tsDemuxer.cpp:655: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(this->packet->packet_table.buf + this->packet->packet_table.offset, this->payload, this->payload_len);
data/kodi-pvr-mythtv-5.10.15/src/demuxer/tsDemuxer.cpp:1001: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(this->packet->packet_table.buf + this->packet->packet_table.offset, this->payload + pos, n);
data/kodi-pvr-mythtv-5.10.15/src/demuxer/tsDemuxer.h:114:14:  [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.
    unsigned char av_buf[AV_CONTEXT_PACKETSIZE];
data/kodi-pvr-mythtv-5.10.15/src/demuxer/tsTable.h:41:14:  [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.
    unsigned char buf[TABLE_BUFFER_SIZE];
data/kodi-pvr-mythtv-5.10.15/src/pvrclient-mythtv.cpp:592: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).
      tag.iStarRating = atoi(it->second->stars.c_str());
data/kodi-pvr-mythtv-5.10.15/src/pvrclient-mythtv.cpp:2234: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[50];
data/kodi-pvr-mythtv-5.10.15/src/pvrclient-mythtv.cpp:2235:3:  [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(buf, "Myth Recorder %u", (unsigned)m_liveStream->GetCardId());
data/kodi-pvr-mythtv-5.10.15/src/tools.h:38: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(result, data, sizeof (*result));
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mytheventhandler.cpp:398: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(500000);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythlivetvplayback.cpp:115:9:  [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(TICK_USEC);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythlivetvplayback.cpp:184:9:  [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(TICK_USEC);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythlivetvplayback.cpp:412:15:  [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(500000); // wait for 500 ms
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/mythlivetvplayback.cpp:572:11:  [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(500000);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.c:239:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buf, str, sizeof(buf) - 1);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/builtin.c:240: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).
  len = strlen(buf);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/debug.cpp:76:19:  [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).
      fwrite(msg, strlen(msg), 1, stderr);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/os/windows/os-types.h:53:14:  [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.
__inline int usleep(unsigned int usec)
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/sajson.h:124:28:  [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).
            : string(text, strlen(text))
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/uriparser.cpp:35:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(m_buffer, location.c_str(), len);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/urlencoder.h:60:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buf, cstr + 1, 3);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/private/wsresponse.cpp:49:11:  [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).
  l_eol = strlen(s_eol);
data/kodi-pvr-mythtv-5.10.15/lib/cppmyth/src/proto/mythprotobase.cpp:93:14:  [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 l = strlen(cmd);
data/kodi-pvr-mythtv-5.10.15/src/avinfo.cpp:159: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(100000);
data/kodi-pvr-mythtv-5.10.15/src/categories.cpp:74: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).
      char* end = line + strlen(line);
data/kodi-pvr-mythtv-5.10.15/src/client.h:76: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)
data/kodi-pvr-mythtv-5.10.15/src/cppmyth/MythChannel.cpp:57:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str, numstr, CHANNUM_STR_SIZE);
data/kodi-pvr-mythtv-5.10.15/src/demuxer/debug.cpp:77:19:  [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).
      fwrite(msg, strlen(msg), 1, stderr);

ANALYSIS SUMMARY:

Hits = 207
Lines analyzed = 40000 in approximately 1.68 seconds (23794 lines/second)
Physical Source Lines of Code (SLOC) = 30271
Hits@level = [0]  26 [1]  19 [2] 169 [3]   5 [4]  14 [5]   0
Hits@level+ = [0+] 233 [1+] 207 [2+] 188 [3+]  19 [4+]  14 [5+]   0
Hits/KSLOC@level+ = [0+] 7.69714 [1+] 6.83823 [2+] 6.21056 [3+] 0.627663 [4+] 0.462489 [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.