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/libyami-utils-1.3.0/common/NonCopyable.h
Examining data/libyami-utils-1.3.0/common/PooledFrameAllocator.h
Examining data/libyami-utils-1.3.0/common/VaapiUtils.h
Examining data/libyami-utils-1.3.0/common/common_def.h
Examining data/libyami-utils-1.3.0/common/condition.h
Examining data/libyami-utils-1.3.0/common/lock.h
Examining data/libyami-utils-1.3.0/common/log.h
Examining data/libyami-utils-1.3.0/common/utils.h
Examining data/libyami-utils-1.3.0/common/videopool.h
Examining data/libyami-utils-1.3.0/egl/egl_util.c
Examining data/libyami-utils-1.3.0/egl/egl_util.h
Examining data/libyami-utils-1.3.0/egl/egl_vaapi_image.h
Examining data/libyami-utils-1.3.0/examples/androidplayer.cpp
Examining data/libyami-utils-1.3.0/examples/blend.cpp
Examining data/libyami-utils-1.3.0/examples/bumpbox.h
Examining data/libyami-utils-1.3.0/examples/font.h
Examining data/libyami-utils-1.3.0/examples/grid.cpp
Examining data/libyami-utils-1.3.0/examples/simpleplayer.cpp
Examining data/libyami-utils-1.3.0/tests/V4L2Device.cpp
Examining data/libyami-utils-1.3.0/tests/V4L2Device.h
Examining data/libyami-utils-1.3.0/tests/V4L2Renderer.cpp
Examining data/libyami-utils-1.3.0/tests/V4L2Renderer.h
Examining data/libyami-utils-1.3.0/tests/decode.cpp
Examining data/libyami-utils-1.3.0/tests/decodeInputCapi.cpp
Examining data/libyami-utils-1.3.0/tests/decodeInputCapi.h
Examining data/libyami-utils-1.3.0/tests/decodeOutputCapi.cpp
Examining data/libyami-utils-1.3.0/tests/decodeOutputCapi.h
Examining data/libyami-utils-1.3.0/tests/decodecapi.c
Examining data/libyami-utils-1.3.0/tests/decodehelp.cpp
Examining data/libyami-utils-1.3.0/tests/decodehelp.h
Examining data/libyami-utils-1.3.0/tests/decodeinput.cpp
Examining data/libyami-utils-1.3.0/tests/decodeinput.h
Examining data/libyami-utils-1.3.0/tests/decodeinputavformat.h
Examining data/libyami-utils-1.3.0/tests/decodeoutput.cpp
Examining data/libyami-utils-1.3.0/tests/decodeoutput.h
Examining data/libyami-utils-1.3.0/tests/egl/gles2_help.c
Examining data/libyami-utils-1.3.0/tests/egl/gles2_help.h
Examining data/libyami-utils-1.3.0/tests/egl/simple-gles2.c
Examining data/libyami-utils-1.3.0/tests/encode.cpp
Examining data/libyami-utils-1.3.0/tests/encodeInputCamera.cpp
Examining data/libyami-utils-1.3.0/tests/encodeInputCapi.cpp
Examining data/libyami-utils-1.3.0/tests/encodeInputCapi.h
Examining data/libyami-utils-1.3.0/tests/encodeInputDecoder.cpp
Examining data/libyami-utils-1.3.0/tests/encodeInputDecoder.h
Examining data/libyami-utils-1.3.0/tests/encodeInputSurface.cpp
Examining data/libyami-utils-1.3.0/tests/encodecapi.c
Examining data/libyami-utils-1.3.0/tests/encodehelp.h
Examining data/libyami-utils-1.3.0/tests/encodeinput.cpp
Examining data/libyami-utils-1.3.0/tests/encodeinput.h
Examining data/libyami-utils-1.3.0/tests/v4l2decode.cpp
Examining data/libyami-utils-1.3.0/tests/v4l2encode.cpp
Examining data/libyami-utils-1.3.0/tests/videopool.cpp
Examining data/libyami-utils-1.3.0/tests/vpp.cpp
Examining data/libyami-utils-1.3.0/tests/vppinputasync.cpp
Examining data/libyami-utils-1.3.0/tests/vppinputasync.h
Examining data/libyami-utils-1.3.0/tests/vppinputdecode.cpp
Examining data/libyami-utils-1.3.0/tests/vppinputdecode.h
Examining data/libyami-utils-1.3.0/tests/vppinputdecodecapi.cpp
Examining data/libyami-utils-1.3.0/tests/vppinputdecodecapi.h
Examining data/libyami-utils-1.3.0/tests/vppinputoutput.cpp
Examining data/libyami-utils-1.3.0/tests/vppinputoutput.h
Examining data/libyami-utils-1.3.0/tests/vppoutputencode.cpp
Examining data/libyami-utils-1.3.0/tests/vppoutputencode.h
Examining data/libyami-utils-1.3.0/tests/yamiinfo.cpp
Examining data/libyami-utils-1.3.0/tests/yamitranscode.cpp
Examining data/libyami-utils-1.3.0/tests/decodeinputavformat.cpp
Examining data/libyami-utils-1.3.0/testscripts/psnr.cpp
Examining data/libyami-utils-1.3.0/vaapi/vaapidisplay.h

FINAL RESULTS:

data/libyami-utils-1.3.0/common/log.h:47:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stream, format, ##__VA_ARGS__); \
data/libyami-utils-1.3.0/tests/egl/gles2_help.c:34:15:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define ERROR printf
data/libyami-utils-1.3.0/tests/egl/gles2_help.c:35:14:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define INFO printf
data/libyami-utils-1.3.0/tests/egl/gles2_help.c:36:15:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG printf
data/libyami-utils-1.3.0/tests/egl/simple-gles2.c:29:15:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define ERROR printf
data/libyami-utils-1.3.0/tests/egl/simple-gles2.c:30:14:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define INFO printf
data/libyami-utils-1.3.0/tests/egl/simple-gles2.c:31:15:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG printf
data/libyami-utils-1.3.0/testscripts/psnr.cpp:184:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(videofile,path);
data/libyami-utils-1.3.0/examples/blend.cpp:86:23:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((opt = getopt_long(argc, argv, optShort, optLong, NULL)) != -1) {
data/libyami-utils-1.3.0/examples/blend.cpp:330:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(seed);
data/libyami-utils-1.3.0/examples/grid.cpp:747:23:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((opt = getopt(argc, argv, "c:r:d:s")) != -1)
data/libyami-utils-1.3.0/testscripts/psnr.cpp:219:19:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt(argc, argv, "h:W:H:i:o:s:?")) != -1)
data/libyami-utils-1.3.0/common/common_def.h:72:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define PARAMETER_ASSIGN(a, b)  memcpy(&(a), &(b), sizeof(b))
data/libyami-utils-1.3.0/examples/blend.cpp:104:28:  [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 flip = atoi(optarg);
data/libyami-utils-1.3.0/examples/blend.cpp:114:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int rot = atoi(optarg);
data/libyami-utils-1.3.0/examples/blend.cpp:124:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int thr = atoi(optarg);
data/libyami-utils-1.3.0/examples/blend.cpp:134:28:  [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 size = atoi(optarg);
data/libyami-utils-1.3.0/examples/blend.cpp:144: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).
                int width = atoi(optarg);
data/libyami-utils-1.3.0/examples/blend.cpp:212:33:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (m_bDump && !(m_fp = fopen("blend.nv12", "wb"))) {
data/libyami-utils-1.3.0/examples/blend.cpp:250:17:  [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_dest->crop, &frame->crop, sizeof(VideoRect));
data/libyami-utils-1.3.0/examples/blend.cpp:258:21:  [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_displaySurface->crop, &m_dest->crop, sizeof(VideoRect));
data/libyami-utils-1.3.0/examples/blend.cpp:271:17:  [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_dest->crop, &frame->crop, sizeof(VideoRect));
data/libyami-utils-1.3.0/examples/grid.cpp:751: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).
                    m_col = atoi(optarg);
data/libyami-utils-1.3.0/examples/grid.cpp:754: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).
                    m_row = atoi(optarg);
data/libyami-utils-1.3.0/examples/grid.cpp:757: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).
                    m_displayIdx = atoi(optarg);
data/libyami-utils-1.3.0/examples/grid.cpp:848:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        m_fd = open("/dev/dri/card0", O_RDWR);
data/libyami-utils-1.3.0/tests/V4L2Device.cpp:65:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool open(const char* name, int32_t flags)
data/libyami-utils-1.3.0/tests/V4L2Device.cpp:140:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char displayStr[32];
data/libyami-utils-1.3.0/tests/V4L2Device.cpp:141:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(displayStr, "%" PRIu64 "", (uint64_t)(wlDisplay));
data/libyami-utils-1.3.0/tests/V4L2Device.cpp:150:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char displayStr[32];
data/libyami-utils-1.3.0/tests/V4L2Device.cpp:151:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(displayStr, "%" PRIu64 "", (uint64_t)x11Display);
data/libyami-utils-1.3.0/tests/V4L2Device.cpp:217:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool open(const char* name, int32_t flags)
data/libyami-utils-1.3.0/tests/V4L2Device.h:31:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    virtual bool open(const char* name, int32_t flags) = 0;
data/libyami-utils-1.3.0/tests/decodehelp.cpp:95:42:  [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).
            parameters->waitBeforeQuit = atoi(optarg);
data/libyami-utils-1.3.0/tests/decodehelp.cpp:98:38:  [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).
            parameters->renderMode = atoi(optarg);
data/libyami-utils-1.3.0/tests/decodehelp.cpp:101:40:  [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).
            parameters->renderFrames = atoi(optarg);
data/libyami-utils-1.3.0/tests/decodehelp.cpp:122:45:  [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).
                parameters->temporalLayer = atoi(optarg);
data/libyami-utils-1.3.0/tests/decodeinput.cpp:180:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    m_fp = fopen(fileName, "r");
data/libyami-utils-1.3.0/tests/decodeinput.cpp:301:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(m_buffer, m_buffer+m_lastReadOffset, m_availableData-m_lastReadOffset);
data/libyami-utils-1.3.0/tests/decodeoutput.cpp:380:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        m_file = fopen(name.c_str(), "wb");
data/libyami-utils-1.3.0/tests/decodeoutput.cpp:393: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 temp[4];
data/libyami-utils-1.3.0/tests/egl/gles2_help.c:112: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 log[BUFFER_SIZE];
data/libyami-utils-1.3.0/tests/encode.cpp:135:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    MVFp = fopen("feimv.bin","wb");
data/libyami-utils-1.3.0/tests/encodeInputCamera.cpp:55:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    m_fd = open(cameraDevicePath, O_RDWR | O_NONBLOCK, 0);
data/libyami-utils-1.3.0/tests/encodehelp.h:149:26:  [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).
            videoWidth = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:152:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            videoHeight = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:155:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            bitRate = atoi(optarg) * 1024;//kbps to bps
data/libyami-utils-1.3.0/tests/encodehelp.h:158:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            fps = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:168:26:  [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).
            frameCount = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:173:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    initQp = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:179:32:  [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).
                    ipPeriod = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:182: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).
                    intraPeriod = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:185: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).
                    numRefFrames= atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:188: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).
                    idrInterval = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:191:37:  [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).
                    referenceMode = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:197:40:  [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).
                    targetPercentage = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:200: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).
                    windowSize = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:203:42:  [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).
                    initBufferFullness = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:206: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).
                    bufferSize = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodehelp.h:209: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).
                    qualityLevel = atoi(optarg);
data/libyami-utils-1.3.0/tests/encodeinput.cpp:120:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    m_fp = fopen(inputFileName, "r");
data/libyami-utils-1.3.0/tests/encodeinput.cpp:224:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    m_fp = fopen(outputFileName, "w+");
data/libyami-utils-1.3.0/tests/v4l2decode.cpp:109: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(inputFrames[buf.index], inputBuffer.data, inputBuffer.size);
data/libyami-utils-1.3.0/tests/v4l2decode.cpp:197:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!device->open("decoder", 0)) {
data/libyami-utils-1.3.0/tests/v4l2decode.cpp:241: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(format.fmt.raw_data, &size, sizeof(uint32_t));
data/libyami-utils-1.3.0/tests/v4l2decode.cpp:243: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(format.fmt.raw_data + sizeof(uint32_t), data, size);
data/libyami-utils-1.3.0/tests/v4l2encode.cpp:153:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(outputFileName, "w+");
data/libyami-utils-1.3.0/tests/vpp.cpp:180:32:  [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_sharpening = atoi(optarg);
data/libyami-utils-1.3.0/tests/vpp.cpp:185:33:  [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_denoise = atoi(optarg);
data/libyami-utils-1.3.0/tests/vpp.cpp:191: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).
                    m_hue = atoi(optarg);
data/libyami-utils-1.3.0/tests/vpp.cpp:194: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).
                    m_saturation = atoi(optarg);
data/libyami-utils-1.3.0/tests/vpp.cpp:197: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).
                    m_brightness = atoi(optarg);
data/libyami-utils-1.3.0/tests/vpp.cpp:200: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).
                    m_contrast = atoi(optarg);
data/libyami-utils-1.3.0/tests/vppinputoutput.cpp:39:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open("/dev/dri/renderD128", O_RDWR);
data/libyami-utils-1.3.0/tests/vppinputoutput.cpp:42:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open("/dev/dri/card0", O_RDWR);
data/libyami-utils-1.3.0/tests/vppinputoutput.cpp:123:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    m_fp = fopen(inputFileName, "r");
data/libyami-utils-1.3.0/tests/vppinputoutput.cpp:207:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    m_fp = fopen(outputFileName, "wb");
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:154:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            para.iWidth = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:157:28:  [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).
            para.iHeight = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:160:40:  [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).
            para.m_encParams.bitRate = atoi(optarg) * 1024;//kbps to bps
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:163: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).
            para.m_encParams.fps = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:173: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).
            para.frameCount = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:176:49:  [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).
            para.m_encParams.temporalLayerNum = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:181:47:  [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).
                    para.m_encParams.initQp = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:187:49:  [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).
                    para.m_encParams.ipPeriod = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:190:52:  [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).
                    para.m_encParams.intraPeriod = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:193:52:  [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).
                    para.m_encParams.numRefFrames= atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:196:52:  [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).
                    para.m_encParams.idrInterval = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:208:63:  [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).
                    para.m_encParams.deblockAlphaOffsetDiv2 = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:211:62:  [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).
                    para.m_encParams.deblockBetaOffsetDiv2 = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:214:49:  [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).
                    para.m_encParams.diffQPIP = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:217:49:  [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).
                    para.m_encParams.diffQPIB = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:220:51:  [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).
                    para.m_encParams.priorityId = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:223:69:  [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).
                    para.m_encParams.m_encParamsVP9.referenceMode = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:226: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).
                    para.oWidth = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:229: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).
                    para.oHeight = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:232:56:  [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).
                    para.m_encParams.layerBitRate[0] = atoi(optarg) * 1024;//kbps to bps;
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:235:56:  [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).
                    para.m_encParams.layerBitRate[1] = atoi(optarg) * 1024;//kbps to bps;
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:238:56:  [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).
                    para.m_encParams.layerBitRate[2] = atoi(optarg) * 1024;//kbps to bps;
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:241:56:  [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).
                    para.m_encParams.layerBitRate[3] = atoi(optarg) * 1024;//kbps to bps;
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:247:57:  [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).
                    para.m_encParams.targetPercentage = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:250:51:  [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).
                    para.m_encParams.windowSize = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:253:59:  [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).
                    para.m_encParams.initBufferFullness = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:256:51:  [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).
                    para.m_encParams.bufferSize = atoi(optarg);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:259:53:  [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).
                    para.m_encParams.qualityLevel = atoi(optarg);
data/libyami-utils-1.3.0/testscripts/psnr.cpp:42: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 videofile[512] = {0};
data/libyami-utils-1.3.0/testscripts/psnr.cpp:66:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fppsnrresult = fopen(psnrresult,"ab+");
data/libyami-utils-1.3.0/testscripts/psnr.cpp:73:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fpraw1=fopen(filename1,"rb");
data/libyami-utils-1.3.0/testscripts/psnr.cpp:80:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fpraw2=fopen(filename2,"rb");
data/libyami-utils-1.3.0/testscripts/psnr.cpp:87:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fpeachpsnr=fopen(eachpsnr,"wb");
data/libyami-utils-1.3.0/testscripts/psnr.cpp:233: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).
                width = atoi(optarg);
data/libyami-utils-1.3.0/testscripts/psnr.cpp:236:26:  [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).
                height = atoi(optarg);;
data/libyami-utils-1.3.0/testscripts/psnr.cpp:239:32:  [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).
                standardpsnr = atoi(optarg);;
data/libyami-utils-1.3.0/examples/blend.cpp:223:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (m_input->read(frame)) {
data/libyami-utils-1.3.0/examples/grid.cpp:720:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if (!input->read(frame)) {
data/libyami-utils-1.3.0/tests/decode.cpp:83:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (m_vppInput->read(src)) {
data/libyami-utils-1.3.0/tests/decodehelp.cpp:104:17:  [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(optarg) == 4) {
data/libyami-utils-1.3.0/tests/decodehelp.cpp:175:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        getchar();
data/libyami-utils-1.3.0/tests/encodeInputCamera.cpp:252:17:  [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(5000);
data/libyami-utils-1.3.0/tests/encodehelp.h:164:17:  [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(optarg) == 4)
data/libyami-utils-1.3.0/tests/encodehelp.h:227:64:  [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 (inputFileName && !strncmp(inputFileName, "/dev/video", strlen("/dev/video")) && !frameCount)
data/libyami-utils-1.3.0/tests/encodeinput.cpp:52:56:  [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 (!strncmp(inputFileName, "/dev/video", strlen("/dev/video"))) {
data/libyami-utils-1.3.0/tests/v4l2decode.cpp:310: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(50);
data/libyami-utils-1.3.0/tests/v4l2decode.cpp:386: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(10000);
data/libyami-utils-1.3.0/tests/v4l2encode.cpp:412: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(10000);
data/libyami-utils-1.3.0/tests/v4l2encode.cpp:422: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(10000);
data/libyami-utils-1.3.0/tests/vpp.cpp:134:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (m_input->read(src)) {
data/libyami-utils-1.3.0/tests/vppinputasync.cpp:61:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool ret = m_input->read(frame);
data/libyami-utils-1.3.0/tests/vppinputasync.cpp:84:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool VppInputAsync::read(SharedPtr<VideoFrame>& frame)
data/libyami-utils-1.3.0/tests/vppinputasync.h:29:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(SharedPtr<VideoFrame>& frame);
data/libyami-utils-1.3.0/tests/vppinputdecode.cpp:50:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!read(m_first))
data/libyami-utils-1.3.0/tests/vppinputdecode.cpp:56:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool VppInputDecode::read(SharedPtr<VideoFrame>& frame)
data/libyami-utils-1.3.0/tests/vppinputdecode.h:32:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(SharedPtr<VideoFrame>& frame);
data/libyami-utils-1.3.0/tests/vppinputdecodecapi.cpp:65:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool VppInputDecodeCapi::read(SharedPtr<VideoFrame>& frame)
data/libyami-utils-1.3.0/tests/vppinputdecodecapi.h:34:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(SharedPtr<VideoFrame>& frame);
data/libyami-utils-1.3.0/tests/vppinputoutput.cpp:131:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool VppInputFile::read(SharedPtr<VideoFrame>& frame)
data/libyami-utils-1.3.0/tests/vppinputoutput.cpp:146:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!m_reader->read(m_fp, frame))
data/libyami-utils-1.3.0/tests/vppinputoutput.h:57:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read(FILE* fp,const SharedPtr<VideoFrame>& frame) = 0;
data/libyami-utils-1.3.0/tests/vppinputoutput.h:141:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(FILE* fp, const SharedPtr<VideoFrame>& frame)
data/libyami-utils-1.3.0/tests/vppinputoutput.h:181:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read(SharedPtr<VideoFrame>& frame) = 0;
data/libyami-utils-1.3.0/tests/vppinputoutput.h:198:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read(SharedPtr<VideoFrame>& frame);
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:169:17:  [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(optarg) == 4)
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:295:60:  [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 (!strncmp(para.inputFileName.c_str(), "/dev/video", strlen("/dev/video")) && !para.frameCount)
data/libyami-utils-1.3.0/tests/yamitranscode.cpp:411:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (m_input->read(src)) {

ANALYSIS SUMMARY:

Hits = 144
Lines analyzed = 12568 in approximately 1.60 seconds (7862 lines/second)
Physical Source Lines of Code (SLOC) = 9901
Hits@level = [0] 243 [1]  31 [2] 101 [3]   4 [4]   8 [5]   0
Hits@level+ = [0+] 387 [1+] 144 [2+] 113 [3+]  12 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 39.087 [1+] 14.544 [2+] 11.413 [3+] 1.212 [4+] 0.807999 [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.