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/libva-utils-2.9.1+ds1/test/test_va_api_createcontext.cpp
Examining data/libva-utils-2.9.1+ds1/test/test.h
Examining data/libva-utils-2.9.1+ds1/test/test_va_api_get_max_values.cpp
Examining data/libva-utils-2.9.1+ds1/test/test_va_api_fixture.h
Examining data/libva-utils-2.9.1+ds1/test/test_streamable.h
Examining data/libva-utils-2.9.1+ds1/test/test_va_api_query_config.cpp
Examining data/libva-utils-2.9.1+ds1/test/test_va_api_init_terminate.cpp
Examining data/libva-utils-2.9.1+ds1/test/test_va_api_get_create_config.cpp
Examining data/libva-utils-2.9.1+ds1/test/test_va_api_config_attribs.cpp
Examining data/libva-utils-2.9.1+ds1/test/test_va_api_display_attribs.cpp
Examining data/libva-utils-2.9.1+ds1/test/test_internal.cpp
Examining data/libva-utils-2.9.1+ds1/test/test_va_api_createbuffer.cpp
Examining data/libva-utils-2.9.1+ds1/test/test_main.cpp
Examining data/libva-utils-2.9.1+ds1/test/test_data.h
Examining data/libva-utils-2.9.1+ds1/test/test_va_api_query_vendor.cpp
Examining data/libva-utils-2.9.1+ds1/test/test_utils.h
Examining data/libva-utils-2.9.1+ds1/test/test_defs.h
Examining data/libva-utils-2.9.1+ds1/test/test_va_api_createsurfaces.cpp
Examining data/libva-utils-2.9.1+ds1/test/test_va_api_fixture.cpp
Examining data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp
Examining data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp
Examining data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp
Examining data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp
Examining data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp
Examining data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp
Examining data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp
Examining data/libva-utils-2.9.1+ds1/decode/tinyjpeg.h
Examining data/libva-utils-2.9.1+ds1/decode/tinyjpeg-internal.h
Examining data/libva-utils-2.9.1+ds1/decode/loadjpeg.c
Examining data/libva-utils-2.9.1+ds1/decode/mpeg2vldemo.cpp
Examining data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c
Examining data/libva-utils-2.9.1+ds1/putsurface/putsurface_wayland.c
Examining data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c
Examining data/libva-utils-2.9.1+ds1/putsurface/putsurface_x11.c
Examining data/libva-utils-2.9.1+ds1/common/loadsurface_yuv.h
Examining data/libva-utils-2.9.1+ds1/common/loadsurface.h
Examining data/libva-utils-2.9.1+ds1/common/va_display.c
Examining data/libva-utils-2.9.1+ds1/common/va_display.h
Examining data/libva-utils-2.9.1+ds1/common/va_display_drm.c
Examining data/libva-utils-2.9.1+ds1/common/va_display_x11.c
Examining data/libva-utils-2.9.1+ds1/common/va_display_wayland.c
Examining data/libva-utils-2.9.1+ds1/vendor/intel/sfcsample/VDecAccelVA.cpp
Examining data/libva-utils-2.9.1+ds1/vendor/intel/sfcsample/VDecAccelVA.h
Examining data/libva-utils-2.9.1+ds1/vendor/intel/sfcsample/DecodeParamBuffer.h
Examining data/libva-utils-2.9.1+ds1/vendor/intel/sfcsample/TestMain.cpp
Examining data/libva-utils-2.9.1+ds1/vendor/intel/avcstreamoutdemo.c
Examining data/libva-utils-2.9.1+ds1/vendor/intel/avcstreamoutdemo.h
Examining data/libva-utils-2.9.1+ds1/vainfo/vainfo.c
Examining data/libva-utils-2.9.1+ds1/encode/jpegenc.c
Examining data/libva-utils-2.9.1+ds1/encode/hevcencode.c
Examining data/libva-utils-2.9.1+ds1/encode/h264encode.c
Examining data/libva-utils-2.9.1+ds1/encode/vp9enc.c
Examining data/libva-utils-2.9.1+ds1/encode/vp8enc.c
Examining data/libva-utils-2.9.1+ds1/encode/mpeg2vaenc.c
Examining data/libva-utils-2.9.1+ds1/encode/svctenc.c
Examining data/libva-utils-2.9.1+ds1/encode/jpegenc_utils.h
Examining data/libva-utils-2.9.1+ds1/encode/avcenc.c

FINAL RESULTS:

data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c:72:4:  [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(stderr, fmt, ## args); \
data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c:79:4:  [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(error_string, sizeof(error_string), fmt, ## args); \
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:126:9:  [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(value, str);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:128:9:  [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(value, str);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:115:9:  [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(value, str);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:115:9:  [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(value, str);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:115:9:  [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(value, str);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:129:9:  [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(value, str);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:115:9:  [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(value, str);
data/libva-utils-2.9.1+ds1/common/loadsurface.h:232:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("AUTO_NOUV"))
data/libva-utils-2.9.1+ds1/common/loadsurface.h:235:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("AUTO_ALPHA"))
data/libva-utils-2.9.1+ds1/encode/h264encode.c:1563:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("TO_DEL")) { /* set RefPicList into ReferenceFrames */
data/libva-utils-2.9.1+ds1/encode/mpeg2vaenc.c:641:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while((c = getopt_long(argc, argv,
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1354:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long(argc, argv,
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:385:5:  [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((unsigned)time(NULL));
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:434:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((continue_display == 0) && getenv("FRAME_STOP")) {
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:528:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c =getopt_long(argc,argv,"w:h:g:r:d:f:tcep?n:1:2:v", long_options, NULL)) != EOF) {
data/libva-utils-2.9.1+ds1/test/test_va_api_fixture.cpp:40:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    , m_restoreDriverName(getenv("LIBVA_DRIVER_NAME"))
data/libva-utils-2.9.1+ds1/vainfo/vainfo.c:77:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long(argc, argv,
data/libva-utils-2.9.1+ds1/common/loadsurface.h:296:29:  [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 *)surface_p, pitches[0],
data/libva-utils-2.9.1+ds1/common/loadsurface.h:297:29:  [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 *)U_start, pitches[1],
data/libva-utils-2.9.1+ds1/common/loadsurface.h:298:29:  [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 *)V_start, pitches[2],
data/libva-utils-2.9.1+ds1/common/loadsurface.h:357: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(Y_row, src_Y + row*src_width, src_width);
data/libva-utils-2.9.1+ds1/common/loadsurface.h:367: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(U_row, src_U + row * src_width, src_width);
data/libva-utils-2.9.1+ds1/common/loadsurface.h:450: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(dst_Y + row*dst_width, Y_row, dst_width);
data/libva-utils-2.9.1+ds1/common/loadsurface.h:460: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(dst_U + row * dst_width, U_row, dst_width);
data/libva-utils-2.9.1+ds1/common/va_display_drm.c:52: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).
        drm_fd = open(g_drm_device_name, O_RDWR);
data/libva-utils-2.9.1+ds1/common/va_display_drm.c:71: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).
        drm_fd = open(drm_device_paths[i], O_RDWR);
data/libva-utils-2.9.1+ds1/decode/loadjpeg.c:71:8:  [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(infilename, "rb");
data/libva-utils-2.9.1+ds1/decode/tinyjpeg-internal.h:70:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char bits[16];
data/libva-utils-2.9.1+ds1/decode/tinyjpeg-internal.h:71:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char values[256];
data/libva-utils-2.9.1+ds1/decode/tinyjpeg-internal.h:109: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 Q_tables[COMPONENTS][64];		/* quantization tables, zigzag*/
data/libva-utils-2.9.1+ds1/decode/tinyjpeg-internal.h:110: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 Q_tables_valid[COMPONENTS];
data/libva-utils-2.9.1+ds1/decode/tinyjpeg-internal.h:112: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 HTDC_valid[HUFFMAN_TABLES];
data/libva-utils-2.9.1+ds1/decode/tinyjpeg-internal.h:114: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 HTAC_valid[HUFFMAN_TABLES];
data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c:86: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 error_string[256];
data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c:162: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(priv->HTDC[i].bits, default_huffman_table_param.huffman_table[i%2].num_dc_codes,
data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c:164: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(priv->HTDC[i].values, default_huffman_table_param.huffman_table[i%2].dc_values,
data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c:167: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(priv->HTAC[i].bits, default_huffman_table_param.huffman_table[i%2].num_ac_codes,
data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c:169: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(priv->HTAC[i].values, default_huffman_table_param.huffman_table[i%2].ac_values,
data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c:220:6:  [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(priv->Q_tables[qi&0x0F], stream, 64);
data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c:332: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(priv->HTAC[Th].bits, stream, 16);
data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c:335:10:  [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(priv->HTDC[Th].bits, stream, 16);
data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c:352: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(priv->HTAC[Th].values, stream, count);
data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c:356: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(priv->HTDC[Th].values, stream, count);
data/libva-utils-2.9.1+ds1/encode/avcenc.c:499: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(RefPicList0, ReferenceFrames, numShortTerm * sizeof(VAPictureH264));
data/libva-utils-2.9.1+ds1/encode/avcenc.c:504: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(RefPicList0, ReferenceFrames, numShortTerm * sizeof(VAPictureH264));
data/libva-utils-2.9.1+ds1/encode/avcenc.c:508: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(RefPicList1, ReferenceFrames, numShortTerm * sizeof(VAPictureH264));
data/libva-utils-2.9.1+ds1/encode/avcenc.c:595: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/encode/avcenc.c:620: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(u_dst, u_src, surface_image.width / 2);
data/libva-utils-2.9.1+ds1/encode/avcenc.c:621: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(v_dst, v_src, surface_image.width / 2);
data/libva-utils-2.9.1+ds1/encode/avcenc.c:2031: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).
    picture_width = atoi(argv[1]);
data/libva-utils-2.9.1+ds1/encode/avcenc.c:2032: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).
    picture_height = atoi(argv[2]);
data/libva-utils-2.9.1+ds1/encode/avcenc.c:2045: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).
                qp_value = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/avcenc.c:2057: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).
                frame_bit_rate = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/avcenc.c:2068: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).
                mode_value = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/avcenc.c:2094: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).
                frame_num_value = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/avcenc.c:2104: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).
    yuv_fp = fopen(argv[3],"rb");
data/libva-utils-2.9.1+ds1/encode/avcenc.c:2121: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).
    avc_fp = fopen(argv[4], "wb");	
data/libva-utils-2.9.1+ds1/encode/h264encode.c:894: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).
            frame_width = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/h264encode.c:897: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).
            frame_height = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/h264encode.c:901: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).
            frame_count = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/h264encode.c:904: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).
            frame_rate = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/h264encode.c:915: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).
            frame_bitrate = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/h264encode.c:918: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).
            minimal_qp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/h264encode.c:921: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).
            initial_qp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/h264encode.c:924: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).
            intra_period = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/h264encode.c:927: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).
            intra_idr_period = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/h264encode.c:930: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).
            ip_period = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/h264encode.c:969: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).
            h264_entropy_mode = atoi(optarg) ? 1: 0;
data/libva-utils-2.9.1+ds1/encode/h264encode.c:1006:21:  [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).
        srcyuv_fp = fopen(srcyuv_fn,"r");
data/libva-utils-2.9.1+ds1/encode/h264encode.c:1024:21:  [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).
        recyuv_fp = fopen(recyuv_fn,"w+");
data/libva-utils-2.9.1+ds1/encode/h264encode.c:1043: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).
    coded_fp = fopen(coded_fn,"w+");
data/libva-utils-2.9.1+ds1/encode/h264encode.c:1297: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(tmp_surfaceid, src_surface, SURFACE_NUM * sizeof(VASurfaceID));
data/libva-utils-2.9.1+ds1/encode/h264encode.c:1298: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(tmp_surfaceid + SURFACE_NUM, ref_surface, SURFACE_NUM * sizeof(VASurfaceID));
data/libva-utils-2.9.1+ds1/encode/h264encode.c:1419: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(RefPicList0_P, ReferenceFrames, numShortTerm * sizeof(VAPictureH264));
data/libva-utils-2.9.1+ds1/encode/h264encode.c:1424: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(RefPicList0_B, ReferenceFrames, numShortTerm * sizeof(VAPictureH264));
data/libva-utils-2.9.1+ds1/encode/h264encode.c:1428: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(RefPicList1_B, ReferenceFrames, numShortTerm * sizeof(VAPictureH264));
data/libva-utils-2.9.1+ds1/encode/h264encode.c:1573: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(pic_param.ReferenceFrames, ReferenceFrames, numShortTerm*sizeof(VAPictureH264));
data/libva-utils-2.9.1+ds1/encode/h264encode.c:1829: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(slice_param.RefPicList0, RefPicList0_P, ((refpiclist0_max > 32) ? 32 : refpiclist0_max)*sizeof(VAPictureH264));
data/libva-utils-2.9.1+ds1/encode/h264encode.c:1839: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(slice_param.RefPicList0, RefPicList0_B, ((refpiclist0_max > 32) ? 32 : refpiclist0_max)*sizeof(VAPictureH264));
data/libva-utils-2.9.1+ds1/encode/h264encode.c:1845: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(slice_param.RefPicList1, RefPicList1_B, ((refpiclist1_max > 32) ? 32 : refpiclist1_max)*sizeof(VAPictureH264));
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:1905: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).
            frame_width = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:1908: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).
            frame_height = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:1912: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).
            frame_count = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:1915: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).
            frame_rate = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:1924: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).
            frame_bitrate = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:1927: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).
            minimal_qp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:1930: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).
            initial_qp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:1933: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).
            intra_period = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:1936: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).
            intra_idr_period = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:1939: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).
            ip_period = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:1988: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).
                p2b = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:2019:21:  [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).
        srcyuv_fp = fopen(srcyuv_fn,"r");
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:2037:21:  [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).
        recyuv_fp = fopen(recyuv_fn,"w+");
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:2055: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).
        coded_fp = fopen(coded_fn,"w+");
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:2308: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(tmp_surfaceid, src_surface, SURFACE_NUM * sizeof(VASurfaceID));
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:2309: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(tmp_surfaceid + SURFACE_NUM, ref_surface, SURFACE_NUM * sizeof(VASurfaceID));
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:2412: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(RefPicList0_P, ReferenceFrames, numShortTerm * sizeof(VAPictureHEVC));
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:2417: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(RefPicList0_B, ReferenceFrames, numShortTerm * sizeof(VAPictureHEVC));
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:2420: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(RefPicList1_B, ReferenceFrames, numShortTerm * sizeof(VAPictureHEVC));
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:2535:6:  [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(pic_param.reference_frames, ReferenceFrames, numShortTerm*sizeof(VAPictureHEVC));
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:2827: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(slice_param.ref_pic_list0, RefPicList0_P, sizeof(VAPictureHEVC));
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:2830: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(slice_param.ref_pic_list1, RefPicList0_P, sizeof(VAPictureHEVC));
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:2833: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(slice_param.ref_pic_list0, RefPicList0_B, sizeof(VAPictureHEVC));
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:2834: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(slice_param.ref_pic_list1, RefPicList1_B, sizeof(VAPictureHEVC));
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:139:4:  [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(hufftable_param->huffman_table[0].num_dc_codes, jpeg_hufftable_luma_dc+1, 16);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:141:4:  [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(hufftable_param->huffman_table[0].dc_values, jpeg_hufftable_luma_dc+17, 12);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:143:4:  [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(hufftable_param->huffman_table[0].num_ac_codes, jpeg_hufftable_luma_ac+1, 16);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:145:4:  [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(hufftable_param->huffman_table[0].ac_values, jpeg_hufftable_luma_ac+17, 162);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:152:8:  [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(hufftable_param->huffman_table[1].num_dc_codes, jpeg_hufftable_chroma_dc+1, 16);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:154:8:  [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(hufftable_param->huffman_table[1].dc_values, jpeg_hufftable_chroma_dc+17, 12);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:156:8:  [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(hufftable_param->huffman_table[1].num_ac_codes, jpeg_hufftable_chroma_ac+1, 16);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:158:8:  [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(hufftable_param->huffman_table[1].ac_values, jpeg_hufftable_chroma_ac+17, 162);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:200: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(quantVal->Qk, zigzag_qm, NUM_QUANT_ELEMENTS);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:205: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(quantVal->Qk, zigzag_qm, NUM_QUANT_ELEMENTS);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:251: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(huffSectionHdr->Li, jpeg_hufftable_luma_ac+1, NUM_AC_RUN_SIZE_BITS);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:252: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(huffSectionHdr->Vij, jpeg_hufftable_luma_ac+17, NUM_AC_CODE_WORDS_HUFFVAL);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:257: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(huffSectionHdr->Li, jpeg_hufftable_luma_dc+1, NUM_DC_RUN_SIZE_BITS);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:258: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(huffSectionHdr->Vij, jpeg_hufftable_luma_dc+17, NUM_DC_CODE_WORDS_HUFFVAL);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:270: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(huffSectionHdr->Li, jpeg_hufftable_chroma_ac+1, NUM_AC_RUN_SIZE_BITS);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:271: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(huffSectionHdr->Vij, jpeg_hufftable_chroma_ac+17, NUM_AC_CODE_WORDS_HUFFVAL);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:276: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(huffSectionHdr->Li, jpeg_hufftable_chroma_dc+1, NUM_DC_RUN_SIZE_BITS);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:277: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(huffSectionHdr->Vij, jpeg_hufftable_chroma_dc+17, NUM_DC_CODE_WORDS_HUFFVAL);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:492: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 newImageBuffer[frame_size];
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:526: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:536:25:  [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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:561: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(y_dst, y_src, surface_image.width*2);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:569: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(y_dst, y_src, surface_image.width*4);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:929: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).
    picture_width = atoi(argv[1]);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:930: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).
    picture_height = atoi(argv[2]);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:931:16:  [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).
    yuv_type = atoi(argv[5]);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:932:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    quality = atoi(argv[6]);
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:966: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).
    yuv_fp = fopen(argv[3],"rb");
data/libva-utils-2.9.1+ds1/encode/jpegenc.c:983:15:  [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).
    jpeg_fp = fopen(argv[4], "wb");  
data/libva-utils-2.9.1+ds1/encode/mpeg2vaenc.c:469: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/encode/mpeg2vaenc.c:596:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ctx->width = atoi(argv[1]);
data/libva-utils-2.9.1+ds1/encode/mpeg2vaenc.c:597: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).
    ctx->height = atoi(argv[2]);
data/libva-utils-2.9.1+ds1/encode/mpeg2vaenc.c:604: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).
    ctx->ifp = fopen(argv[3], "rb");
data/libva-utils-2.9.1+ds1/encode/mpeg2vaenc.c:624: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).
    ctx->ofp = fopen(argv[4], "wb");
data/libva-utils-2.9.1+ds1/encode/mpeg2vaenc.c:647: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).
            tmp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/mpeg2vaenc.c:666: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).
            tmp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/mpeg2vaenc.c:678: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).
            tmp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/mpeg2vaenc.c:688: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).
            tmp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/mpeg2vaenc.c:698: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).
            tmp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1186: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1310:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ctx->width = atoi(argv[1]);
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1311: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).
    ctx->height = atoi(argv[2]);
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1319: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).
    ctx->ifp = fopen(argv[3], "rb");
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1339: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).
    ctx->ofp = fopen(argv[4], "wb");
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1360: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).
            tmp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1373: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).
            tmp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1380: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).
            tmp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1394: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).
            tmp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1404: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).
            tmp = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1807: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(ref_list0, ref_frames, ctx->num_ref_frames * sizeof(svcenc_surface));
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1810: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(ref_list0, ref_frames, ctx->num_ref_frames * sizeof(svcenc_surface));
data/libva-utils-2.9.1+ds1/encode/svctenc.c:1816: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(ref_list1, ref_frames, ctx->num_ref_frames * sizeof(svcenc_surface));
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:254: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 header[12];
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:269: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 header[32];
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:346: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:371: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(u_dst, u_src, surface_image.width / 2);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:372: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(v_dst, v_src, surface_image.width / 2);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1030: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).
          tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1035: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).
          tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1040: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).
          tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1045: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).
          tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1050: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).
          tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1055: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).
          tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1060: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).
          tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1065: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).
          tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1070: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).
          tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1081: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).
          tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1116: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).
  settings.width = atoi(argv[1]);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1119: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).
  settings.height = atoi(argv[2]);
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1129: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).
    fp_yuv_input = fopen(argv[3],"rb");
data/libva-utils-2.9.1+ds1/encode/vp8enc.c:1138:19:  [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_vp8_output = fopen(argv[4],"wb");
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:558: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:583: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(u_dst, u_src, surface_image.width / 2);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:584: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(v_dst, v_src, surface_image.width / 2);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:856: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(&pic_param->reference_frames, vp9_ref_list, sizeof(vp9_ref_list));
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1051: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 header[12];
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1113: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 header[32];
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1218: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 raw_data[64];
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1386: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).
    picture_width = atoi(argv[1]);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1387: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).
    picture_height = atoi(argv[2]);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1429: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).
                frame_rate = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1432: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).
                tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1438: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).
                tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1444: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).
                tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1450: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).
                tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1454: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).
                tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1460: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).
                tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1466: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).
                tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1472: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).
                tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1480: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).
                tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1484: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).
                tmp_input = atoi(optarg);
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1526: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).
    yuv_fp = fopen(yuv_input,"rb");
data/libva-utils-2.9.1+ds1/encode/vp9enc.c:1546: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).
    vp9_fp = fopen(vp9_output, "wb");
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:519: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 str_src_fmt[5], str_dst_fmt[5];
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:556: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).
                frame_rate = atoi(optarg);
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:559: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).
                surface_width = atoi(optarg);
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:562: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).
                surface_height = atoi(optarg);
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:565: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).
                frame_num_total = atoi(optarg);
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:568: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).
                box_width = atoi(optarg);
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:584: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).
                if (atoi(optarg) == 1) {
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:587: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).
                } else if (atoi(optarg) == 2) {
data/libva-utils-2.9.1+ds1/test/test_va_api_fixture.cpp:82:23:  [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_drmHandle = open(it->c_str(), O_RDWR);
data/libva-utils-2.9.1+ds1/test/test_va_api_init_terminate.cpp:83: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 driver[1] = "";
data/libva-utils-2.9.1+ds1/test/test_va_api_init_terminate.cpp:89: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 driver[257];
data/libva-utils-2.9.1+ds1/test/test_va_api_init_terminate.cpp:97: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 driver[4] = "bad";
data/libva-utils-2.9.1+ds1/vendor/intel/avcstreamoutdemo.c:1410: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(dec_streamout_buf, pbuf, streamout_buffsize);// to check streamout data for usage
data/libva-utils-2.9.1+ds1/vendor/intel/sfcsample/VDecAccelVA.cpp:93: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).
        drm_fd = open("/dev/dri/renderD128", O_RDWR);
data/libva-utils-2.9.1+ds1/vendor/intel/sfcsample/VDecAccelVA.cpp:598:24:  [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).
    FILE* sfc_stream = fopen("sfc_sample_176_144_argb.yuv", "wb");
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:66: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 g_config_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:67: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 g_src_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:68: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 g_dst_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:69: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 g_filter_type_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:92: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 strLine[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:137: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:144: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).
    *value = (uint8_t)atoi(str);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:151: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:158:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *value = (uint32_t)atoi(str);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:165: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:320: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:331: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:332: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:366: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:395: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(y_dst, y_src, surface_image.width * byte_per_pixel);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:416: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:432: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:433: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(v_dst, v_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:451: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(u_dst, u_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:481: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:503: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:574: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:583: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:584: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:680: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:689: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:690: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:785: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:811: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:875: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(y_dst, y_src, surface_image.width * byte_per_pixel);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:931: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:944: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:945: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(v_dst, v_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:961: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(u_dst, u_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:1013: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:1062: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:1205: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 algorithm_str[MAX_LEN], flags_str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:1372: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 blending_flags_str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:1736: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:1817:37:  [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 (NULL == (g_config_file_fd = fopen(g_config_file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:1835:34:  [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 (NULL == (g_src_file_fd = fopen(g_src_file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:1841:34:  [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 (NULL == (g_dst_file_fd = fopen(g_dst_file_name, "w"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp: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                src_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:80: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 g_config_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:81: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 g_dst_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:94: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 strLine[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:139: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:146:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *value = (uint32_t)atoi(str);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:153: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:160: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).
    *value = (int16_t)atoi(str);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:167: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:174:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *value = (uint16_t)atoi(str);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:182: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:285: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:296: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:297: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:331: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:356: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:377: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:393: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:394: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(v_dst, v_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:412: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(u_dst, u_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:446: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:522: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:531: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:532: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:634: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:643: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:644: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:745: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:771: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:835: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:897: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:910: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:911: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(v_dst, v_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:927: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(u_dst, u_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:981: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1060: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 CropLeftX[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1061: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 CropTopY[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1062: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 CropWidth[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1063: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 CropHeight[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1064: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(CropLeftX,"SRC_CROP_LEFT_X_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1065: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(CropTopY,"SRC_CROP_TOP_Y_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1066: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(CropWidth,"SRC_CROP_WIDTH_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1067: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(CropHeight,"SRC_CROP_HEIGHT_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1076: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 DstLeftX[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1077: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 DstTopY[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1078: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 DstWidth[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1079: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 DstHeight[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1080: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(DstLeftX,"SRC_DstLeftX_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1081: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(DstTopY,"SRC_DstTopY_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1082: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(DstWidth,"SRC_DstWidth_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1083: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(DstHeight,"SRC_DstHeight_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1098: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 BlendFlagsName[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1099: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 AlphaName[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1100: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 LumaMinName[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1101: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 LumaMaxName[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1102:13:  [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(BlendFlagsName,"SRC_CompositionBlendFlags_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1103:13:  [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(AlphaName,"SRC_CompositionAlpha_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1104:13:  [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(LumaMinName,"SRC_compositionLumaMin_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1105:13:  [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(LumaMaxName,"SRC_compositionLumaMax_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1318: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1325: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 file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1326: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 src_frame_width[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1327: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 src_frame_height[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1328: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 src_frame_format[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1329: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 src_file_format[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1331: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(file_name,"SRC_FILE_NAME_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1332: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(src_frame_width,"SRC_FRAME_WIDTH_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1333: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(src_frame_height,"SRC_FRAME_HEIGHT_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1334: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(src_frame_format,"SRC_FRAME_FORMAT_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1335: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(src_file_format,"SRC_FILE_FORMAT_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1383:37:  [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 (NULL == (g_config_file_fd = fopen(g_config_file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1402:42:  [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 (NULL == (g_src_file_fds[i] = fopen(g_src_info[i].src_file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1408:34:  [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 (NULL == (g_dst_file_fd = fopen(g_dst_file_name, "w"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:60: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 g_config_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:61: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 g_src_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:62: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 g_dst_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:81: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 strLine[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:126: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:133:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *value = (uint32_t)atoi(str);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:229: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:240: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:241: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:275: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:300: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:321: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:337: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:338: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(v_dst, v_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:356: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(u_dst, u_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:386: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:462: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:471: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:472: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:574: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:583: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:584: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:685: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:711: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:775: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:850: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:851: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(v_dst, v_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:867: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(u_dst, u_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:921: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:991: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     in_chroma_siting_mode[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:994: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     dst_chroma_siting_mode[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:1242: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:1301:37:  [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 (NULL == (g_config_file_fd = fopen(g_config_file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:1319:34:  [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 (NULL == (g_src_file_fd = fopen(g_src_file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:1325:34:  [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 (NULL == (g_dst_file_fd = fopen(g_dst_file_name, "w"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:60: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 g_config_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:61: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 g_src_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:62: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 g_dst_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:81: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 strLine[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:126: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:133:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *value = (uint32_t)atoi(str);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:139: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:253: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:264: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:265: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:299: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:324: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:345: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:361: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:362: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(v_dst, v_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:380: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(u_dst, u_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:410: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:486: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:495: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:496: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:598: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:607: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:608: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:709: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:735: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:799: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:861: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:874: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:875: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(v_dst, v_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:891: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(u_dst, u_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:945: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:1258: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:1317:37:  [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 (NULL == (g_config_file_fd = fopen(g_config_file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:1335:34:  [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 (NULL == (g_src_file_fd = fopen(g_src_file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:1341:34:  [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 (NULL == (g_dst_file_fd = fopen(g_dst_file_name, "w"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:60: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 g_config_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:61: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 g_src_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:62: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 g_dst_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:81: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 strLine[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:126: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:133:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *value = (uint32_t)atoi(str);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:229: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:240: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:241: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:275: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:300: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:321: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:337: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:338: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(v_dst, v_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:356: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(u_dst, u_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:386: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:462: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:471: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:472: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:574: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:583: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:584: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:685: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:711: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:775: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:850: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:851: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(v_dst, v_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:867: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(u_dst, u_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:921: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:1170: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:1229:37:  [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 (NULL == (g_config_file_fd = fopen(g_config_file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:1247:34:  [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 (NULL == (g_src_file_fd = fopen(g_src_file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:1253:34:  [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 (NULL == (g_dst_file_fd = fopen(g_dst_file_name, "w"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:59: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                file_name[100];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:83: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 g_config_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:95: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 strLine[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:140: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:147:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *value = (uint32_t)atoi(str);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:154: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:161:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *value = (int16_t)atoi(str);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:168: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:175:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *value = (uint16_t)atoi(str);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:332: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:339: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:357: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:378: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:383: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:384: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:404: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:457: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:464: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:516: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:575: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:582: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:583: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:631: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:928: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:948: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 dst_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:949: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 dst_frame_width[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:950: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 dst_frame_height[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:951: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 dst_frame_format[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:952: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 dst_memtype[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:953: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 dst_align_mode[MAX_LEN];        
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:954: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(dst_file_name,"DST_FILE_NAME_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:955: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(dst_frame_width,"DST_FRAME_WIDTH_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:956: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(dst_frame_height,"DST_FRAME_HEIGHT_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:957: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(dst_frame_format,"DST_FRAME_FORMAT_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:958: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(dst_memtype,"DST_SURFACE_MEMORY_TYPE_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:959: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(dst_align_mode,"DST_SURFACE_CPU_ALIGN_MODE_%d",i+1);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:997:37:  [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 (NULL == (g_config_file_fd = fopen(g_config_file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:1015:39:  [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 (NULL == (g_src_info.file_fd = fopen(g_src_info.file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:1021:50:  [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 (NULL == (g_dst_info[index].file_fd = fopen(g_dst_info[index].file_name, "w"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:60: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 g_config_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:61: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 g_src_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:62: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 g_dst_file_name[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:81: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 strLine[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:126: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:133:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *value = (uint32_t)atoi(str);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:139: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:253: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:264: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:265: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:299: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:324: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:345: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:361: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:362: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(v_dst, v_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:380: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(u_dst, u_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:410: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:486: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:495: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:496: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:598: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:607: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(v_dst, v_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:608: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(u_dst, u_src, surface_image.width/2);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:709: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(y_dst, y_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:735: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:799: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:861: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(y_dst, y_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:874: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(u_dst, u_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:875: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(v_dst, v_src, surface_image.width);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:891: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(u_dst, u_src, surface_image.width * 2);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:945: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(y_dst, y_src, surface_image.width * 4);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:1259: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 str[MAX_LEN];
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:1318:37:  [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 (NULL == (g_config_file_fd = fopen(g_config_file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:1336:34:  [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 (NULL == (g_src_file_fd = fopen(g_src_file_name, "r"))){
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:1342:34:  [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 (NULL == (g_dst_file_fd = fopen(g_dst_file_name, "w"))){
data/libva-utils-2.9.1+ds1/decode/mpeg2vldemo.cpp:273:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/libva-utils-2.9.1+ds1/decode/tinyjpeg.c:840:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/libva-utils-2.9.1+ds1/encode/h264encode.c:2214:13:  [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(1);
data/libva-utils-2.9.1+ds1/encode/hevcencode.c:3221:13:  [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(1);
data/libva-utils-2.9.1+ds1/encode/svctenc.c:3045:13:  [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(1);
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:437:17:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            c = getchar();
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:499:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(1000/frame_rate*1000);
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:594:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
                sscanf(optarg, "%5s", str_src_fmt);
data/libva-utils-2.9.1+ds1/putsurface/putsurface_common.c:603:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
                sscanf(optarg, "%5s", str_dst_fmt);
data/libva-utils-2.9.1+ds1/vendor/intel/avcstreamoutdemo.c:1429:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:115:40:  [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(field, field_name, strlen(field_name)))
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:125: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).
        *(str + strlen(str)-1) = '\0';
data/libva-utils-2.9.1+ds1/videoprocess/vavpp.cpp:1814:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(g_config_file_name, argv[1], MAX_LEN);
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:117:40:  [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(field, field_name, strlen(field_name)))
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:127: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).
        *(str + strlen(str)-1) = '\0';
data/libva-utils-2.9.1+ds1/videoprocess/vppblending.cpp:1380:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(g_config_file_name, argv[1], MAX_LEN);
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:104:40:  [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(field, field_name, strlen(field_name)))
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:114: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).
        *(str + strlen(str)-1) = '\0';
data/libva-utils-2.9.1+ds1/videoprocess/vppchromasitting.cpp:1298:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(g_config_file_name, argv[1], MAX_LEN);
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:104:40:  [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(field, field_name, strlen(field_name)))
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:114: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).
        *(str + strlen(str)-1) = '\0';
data/libva-utils-2.9.1+ds1/videoprocess/vppdenoise.cpp:1314:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(g_config_file_name, argv[1], MAX_LEN);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:104:40:  [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(field, field_name, strlen(field_name)))
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:114: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).
        *(str + strlen(str)-1) = '\0';
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_csc.cpp:1226:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(g_config_file_name, argv[1], MAX_LEN);
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:118:40:  [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(field, field_name, strlen(field_name)))
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:128: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).
        *(str + strlen(str)-1) = '\0';
data/libva-utils-2.9.1+ds1/videoprocess/vppscaling_n_out_usrptr.cpp:994:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(g_config_file_name, argv[1], MAX_LEN);
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:104:40:  [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(field, field_name, strlen(field_name)))
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:114: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).
        *(str + strlen(str)-1) = '\0';
data/libva-utils-2.9.1+ds1/videoprocess/vppsharpness.cpp:1315:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(g_config_file_name, argv[1], MAX_LEN);

ANALYSIS SUMMARY:

Hits = 539
Lines analyzed = 67980 in approximately 4.82 seconds (14106 lines/second)
Physical Source Lines of Code (SLOC) = 59439
Hits@level = [0] 898 [1]  31 [2] 489 [3]  10 [4]   9 [5]   0
Hits@level+ = [0+] 1437 [1+] 539 [2+] 508 [3+]  19 [4+]   9 [5+]   0
Hits/KSLOC@level+ = [0+] 24.176 [1+] 9.06812 [2+] 8.54658 [3+] 0.319655 [4+] 0.151416 [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.