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/x264-0.160.3011+gitcde9a93/x264cli.h
Examining data/x264-0.160.3011+gitcde9a93/autocomplete.c
Examining data/x264-0.160.3011+gitcde9a93/x264.c
Examining data/x264-0.160.3011+gitcde9a93/x264dll.c
Examining data/x264-0.160.3011+gitcde9a93/input/timecode.c
Examining data/x264-0.160.3011+gitcde9a93/input/thread.c
Examining data/x264-0.160.3011+gitcde9a93/input/raw.c
Examining data/x264-0.160.3011+gitcde9a93/input/ffms.c
Examining data/x264-0.160.3011+gitcde9a93/input/input.c
Examining data/x264-0.160.3011+gitcde9a93/input/input.h
Examining data/x264-0.160.3011+gitcde9a93/input/y4m.c
Examining data/x264-0.160.3011+gitcde9a93/input/lavf.c
Examining data/x264-0.160.3011+gitcde9a93/input/avs.c
Examining data/x264-0.160.3011+gitcde9a93/output/mp4_lsmash.c
Examining data/x264-0.160.3011+gitcde9a93/output/raw.c
Examining data/x264-0.160.3011+gitcde9a93/output/flv_bytestream.c
Examining data/x264-0.160.3011+gitcde9a93/output/output.h
Examining data/x264-0.160.3011+gitcde9a93/output/matroska_ebml.c
Examining data/x264-0.160.3011+gitcde9a93/output/matroska.c
Examining data/x264-0.160.3011+gitcde9a93/output/mp4.c
Examining data/x264-0.160.3011+gitcde9a93/output/flv_bytestream.h
Examining data/x264-0.160.3011+gitcde9a93/output/flv.c
Examining data/x264-0.160.3011+gitcde9a93/output/matroska_ebml.h
Examining data/x264-0.160.3011+gitcde9a93/tools/checkasm.c
Examining data/x264-0.160.3011+gitcde9a93/filters/filters.c
Examining data/x264-0.160.3011+gitcde9a93/filters/video/internal.h
Examining data/x264-0.160.3011+gitcde9a93/filters/video/video.h
Examining data/x264-0.160.3011+gitcde9a93/filters/video/select_every.c
Examining data/x264-0.160.3011+gitcde9a93/filters/video/source.c
Examining data/x264-0.160.3011+gitcde9a93/filters/video/resize.c
Examining data/x264-0.160.3011+gitcde9a93/filters/video/video.c
Examining data/x264-0.160.3011+gitcde9a93/filters/video/internal.c
Examining data/x264-0.160.3011+gitcde9a93/filters/video/fix_vfr_pts.c
Examining data/x264-0.160.3011+gitcde9a93/filters/video/depth.c
Examining data/x264-0.160.3011+gitcde9a93/filters/video/cache.c
Examining data/x264-0.160.3011+gitcde9a93/filters/video/crop.c
Examining data/x264-0.160.3011+gitcde9a93/filters/filters.h
Examining data/x264-0.160.3011+gitcde9a93/encoder/macroblock.c
Examining data/x264-0.160.3011+gitcde9a93/encoder/analyse.h
Examining data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c
Examining data/x264-0.160.3011+gitcde9a93/encoder/set.c
Examining data/x264-0.160.3011+gitcde9a93/encoder/slicetype-cl.c
Examining data/x264-0.160.3011+gitcde9a93/encoder/me.h
Examining data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.h
Examining data/x264-0.160.3011+gitcde9a93/encoder/cabac.c
Examining data/x264-0.160.3011+gitcde9a93/encoder/encoder.c
Examining data/x264-0.160.3011+gitcde9a93/encoder/macroblock.h
Examining data/x264-0.160.3011+gitcde9a93/encoder/api.c
Examining data/x264-0.160.3011+gitcde9a93/encoder/set.h
Examining data/x264-0.160.3011+gitcde9a93/encoder/rdo.c
Examining data/x264-0.160.3011+gitcde9a93/encoder/cavlc.c
Examining data/x264-0.160.3011+gitcde9a93/encoder/lookahead.c
Examining data/x264-0.160.3011+gitcde9a93/encoder/slicetype-cl.h
Examining data/x264-0.160.3011+gitcde9a93/encoder/analyse.c
Examining data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c
Examining data/x264-0.160.3011+gitcde9a93/encoder/me.c
Examining data/x264-0.160.3011+gitcde9a93/x264.h
Examining data/x264-0.160.3011+gitcde9a93/common/dct.c
Examining data/x264-0.160.3011+gitcde9a93/common/macroblock.c
Examining data/x264-0.160.3011+gitcde9a93/common/arm/bitstream.h
Examining data/x264-0.160.3011+gitcde9a93/common/arm/deblock.h
Examining data/x264-0.160.3011+gitcde9a93/common/arm/predict.h
Examining data/x264-0.160.3011+gitcde9a93/common/arm/predict-c.c
Examining data/x264-0.160.3011+gitcde9a93/common/arm/pixel.h
Examining data/x264-0.160.3011+gitcde9a93/common/arm/mc-c.c
Examining data/x264-0.160.3011+gitcde9a93/common/arm/mc.h
Examining data/x264-0.160.3011+gitcde9a93/common/arm/dct.h
Examining data/x264-0.160.3011+gitcde9a93/common/arm/quant.h
Examining data/x264-0.160.3011+gitcde9a93/common/set.c
Examining data/x264-0.160.3011+gitcde9a93/common/mc.c
Examining data/x264-0.160.3011+gitcde9a93/common/cpu.h
Examining data/x264-0.160.3011+gitcde9a93/common/x86/bitstream.h
Examining data/x264-0.160.3011+gitcde9a93/common/x86/util.h
Examining data/x264-0.160.3011+gitcde9a93/common/x86/deblock.h
Examining data/x264-0.160.3011+gitcde9a93/common/x86/predict.h
Examining data/x264-0.160.3011+gitcde9a93/common/x86/predict-c.c
Examining data/x264-0.160.3011+gitcde9a93/common/x86/pixel.h
Examining data/x264-0.160.3011+gitcde9a93/common/x86/mc-c.c
Examining data/x264-0.160.3011+gitcde9a93/common/x86/mc.h
Examining data/x264-0.160.3011+gitcde9a93/common/x86/dct.h
Examining data/x264-0.160.3011+gitcde9a93/common/x86/quant.h
Examining data/x264-0.160.3011+gitcde9a93/common/osdep.c
Examining data/x264-0.160.3011+gitcde9a93/common/ppc/dct.c
Examining data/x264-0.160.3011+gitcde9a93/common/ppc/mc.c
Examining data/x264-0.160.3011+gitcde9a93/common/ppc/predict.c
Examining data/x264-0.160.3011+gitcde9a93/common/ppc/deblock.c
Examining data/x264-0.160.3011+gitcde9a93/common/ppc/pixel.c
Examining data/x264-0.160.3011+gitcde9a93/common/ppc/deblock.h
Examining data/x264-0.160.3011+gitcde9a93/common/ppc/quant.c
Examining data/x264-0.160.3011+gitcde9a93/common/ppc/predict.h
Examining data/x264-0.160.3011+gitcde9a93/common/ppc/pixel.h
Examining data/x264-0.160.3011+gitcde9a93/common/ppc/mc.h
Examining data/x264-0.160.3011+gitcde9a93/common/ppc/dct.h
Examining data/x264-0.160.3011+gitcde9a93/common/ppc/quant.h
Examining data/x264-0.160.3011+gitcde9a93/common/ppc/ppccommon.h
Examining data/x264-0.160.3011+gitcde9a93/common/bitstream.h
Examining data/x264-0.160.3011+gitcde9a93/common/predict.c
Examining data/x264-0.160.3011+gitcde9a93/common/osdep.h
Examining data/x264-0.160.3011+gitcde9a93/common/threadpool.c
Examining data/x264-0.160.3011+gitcde9a93/common/win32thread.c
Examining data/x264-0.160.3011+gitcde9a93/common/aarch64/bitstream.h
Examining data/x264-0.160.3011+gitcde9a93/common/aarch64/deblock.h
Examining data/x264-0.160.3011+gitcde9a93/common/aarch64/asm-offsets.c
Examining data/x264-0.160.3011+gitcde9a93/common/aarch64/predict.h
Examining data/x264-0.160.3011+gitcde9a93/common/aarch64/asm-offsets.h
Examining data/x264-0.160.3011+gitcde9a93/common/aarch64/predict-c.c
Examining data/x264-0.160.3011+gitcde9a93/common/aarch64/pixel.h
Examining data/x264-0.160.3011+gitcde9a93/common/aarch64/mc-c.c
Examining data/x264-0.160.3011+gitcde9a93/common/aarch64/mc.h
Examining data/x264-0.160.3011+gitcde9a93/common/aarch64/dct.h
Examining data/x264-0.160.3011+gitcde9a93/common/aarch64/quant.h
Examining data/x264-0.160.3011+gitcde9a93/common/deblock.c
Examining data/x264-0.160.3011+gitcde9a93/common/mips/deblock.h
Examining data/x264-0.160.3011+gitcde9a93/common/mips/predict.h
Examining data/x264-0.160.3011+gitcde9a93/common/mips/deblock-c.c
Examining data/x264-0.160.3011+gitcde9a93/common/mips/pixel-c.c
Examining data/x264-0.160.3011+gitcde9a93/common/mips/predict-c.c
Examining data/x264-0.160.3011+gitcde9a93/common/mips/pixel.h
Examining data/x264-0.160.3011+gitcde9a93/common/mips/dct-c.c
Examining data/x264-0.160.3011+gitcde9a93/common/mips/mc-c.c
Examining data/x264-0.160.3011+gitcde9a93/common/mips/mc.h
Examining data/x264-0.160.3011+gitcde9a93/common/mips/dct.h
Examining data/x264-0.160.3011+gitcde9a93/common/mips/quant.h
Examining data/x264-0.160.3011+gitcde9a93/common/mips/quant-c.c
Examining data/x264-0.160.3011+gitcde9a93/common/mips/macros.h
Examining data/x264-0.160.3011+gitcde9a93/common/tables.h
Examining data/x264-0.160.3011+gitcde9a93/common/opencl.h
Examining data/x264-0.160.3011+gitcde9a93/common/cabac.c
Examining data/x264-0.160.3011+gitcde9a93/common/pixel.c
Examining data/x264-0.160.3011+gitcde9a93/common/rectangle.c
Examining data/x264-0.160.3011+gitcde9a93/common/common.c
Examining data/x264-0.160.3011+gitcde9a93/common/frame.c
Examining data/x264-0.160.3011+gitcde9a93/common/tables.c
Examining data/x264-0.160.3011+gitcde9a93/common/quant.c
Examining data/x264-0.160.3011+gitcde9a93/common/opencl.c
Examining data/x264-0.160.3011+gitcde9a93/common/macroblock.h
Examining data/x264-0.160.3011+gitcde9a93/common/predict.h
Examining data/x264-0.160.3011+gitcde9a93/common/set.h
Examining data/x264-0.160.3011+gitcde9a93/common/opencl/x264-cl.h
Examining data/x264-0.160.3011+gitcde9a93/common/cpu.c
Examining data/x264-0.160.3011+gitcde9a93/common/base.c
Examining data/x264-0.160.3011+gitcde9a93/common/win32thread.h
Examining data/x264-0.160.3011+gitcde9a93/common/bitstream.c
Examining data/x264-0.160.3011+gitcde9a93/common/pixel.h
Examining data/x264-0.160.3011+gitcde9a93/common/threadpool.h
Examining data/x264-0.160.3011+gitcde9a93/common/mvpred.c
Examining data/x264-0.160.3011+gitcde9a93/common/mc.h
Examining data/x264-0.160.3011+gitcde9a93/common/dct.h
Examining data/x264-0.160.3011+gitcde9a93/common/quant.h
Examining data/x264-0.160.3011+gitcde9a93/common/cabac.h
Examining data/x264-0.160.3011+gitcde9a93/common/frame.h
Examining data/x264-0.160.3011+gitcde9a93/common/vlc.c
Examining data/x264-0.160.3011+gitcde9a93/common/rectangle.h
Examining data/x264-0.160.3011+gitcde9a93/common/base.h
Examining data/x264-0.160.3011+gitcde9a93/common/common.h
Examining data/x264-0.160.3011+gitcde9a93/example.c
Examining data/x264-0.160.3011+gitcde9a93/extras/getopt.h
Examining data/x264-0.160.3011+gitcde9a93/extras/cl.h
Examining data/x264-0.160.3011+gitcde9a93/extras/stdint.h
Examining data/x264-0.160.3011+gitcde9a93/extras/inttypes.h
Examining data/x264-0.160.3011+gitcde9a93/extras/avisynth_c.h
Examining data/x264-0.160.3011+gitcde9a93/extras/getopt.c
Examining data/x264-0.160.3011+gitcde9a93/extras/avxsynth_c.h
Examining data/x264-0.160.3011+gitcde9a93/extras/intel_dispatcher.h
Examining data/x264-0.160.3011+gitcde9a93/extras/cl_platform.h

FINAL RESULTS:

data/x264-0.160.3011+gitcde9a93/common/base.c:1344:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    s += sprintf( s, " me=%s", x264_motion_est_names[ p->analyse.i_me_method ] );
data/x264-0.160.3011+gitcde9a93/common/base.c:1373:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    s += sprintf( s, " interlaced=%s", p->b_interlaced ? p->b_tff ? "tff" : "bff" : p->b_fake_interlaced ? "fake" : "0" );
data/x264-0.160.3011+gitcde9a93/common/base.c:1399:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    s += sprintf( s, " rc=%s mbtree=%d", p->rc.i_rc_method == X264_RC_ABR ?
data/x264-0.160.3011+gitcde9a93/common/base.c:1426:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        s += sprintf( s, " nal_hrd=%s filler=%d", x264_nal_hrd_names[p->i_nal_hrd], p->rc.b_filler );
data/x264-0.160.3011+gitcde9a93/common/base.c:1442:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            s += sprintf( s, " zones=%s", p->rc.psz_zones );
data/x264-0.160.3011+gitcde9a93/common/osdep.h:114:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf  x264_snprintf
data/x264-0.160.3011+gitcde9a93/common/osdep.h:115:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf x264_vsnprintf
data/x264-0.160.3011+gitcde9a93/common/osdep.h:185:22:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        int length = vsnprintf( buf, sizeof(buf), format, arg2 );
data/x264-0.160.3011+gitcde9a93/common/osdep.h:197:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return vfprintf( stream, format, arg );
data/x264-0.160.3011+gitcde9a93/common/osdep.h:208:23:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define x264_vfprintf vfprintf
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:1632:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            p += sprintf( p, " %s", x264_cpu_names[i].name );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4090:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    intra += sprintf( intra, "I16..4%s: %4.1f%% %4.1f%% %4.1f%%",
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:191:44:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if( ( p = strstr( opts, opt "=" ) ) && sscanf( p, opt "=%d" , &i ) && param_val != i )\
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:626:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy( output, input );
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:627:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat( output, suffix );
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:1268: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( psz_zones, h->param.rc.psz_zones );
data/x264-0.160.3011+gitcde9a93/encoder/set.c:596:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( payload+16, "x264 - core %d%s - H.264/MPEG-4 AVC codec - "
data/x264-0.160.3011+gitcde9a93/example.c:40:9:  [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, __VA_ARGS__ );\
data/x264-0.160.3011+gitcde9a93/input/timecode.c:354:15:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        ret = sscanf( opt->timebase, "%"SCNu64"/%"SCNu64, &h->timebase_num, &h->timebase_den );
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:90:28:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define set_func_name(...) snprintf( func_name, sizeof(func_name), __VA_ARGS__ )
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:378:21:  [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, #name "[%d]: %d != %d [FAILED]\n", i, res_c, res_asm ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:389:21:  [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, #name "[%d]: overflow %d != %d\n", i, res_c, res_asm ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:608:13:  [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, #name": %d,%d,%d != %d,%d,%d [FAILED]\n", \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:643:17:  [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, #name": %d,%d != %d,%d [FAILED]\n", res_c>>16, res_c&0xffff, res_a>>16, res_a&0xffff ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:649:17:  [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, #name" [FAILED]\n" ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:693:17:  [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, #name": %d,%d != %d,%d [FAILED]\n", res_c>>16, res_c&0xffff, res_a>>16, res_a&0xffff ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:707:17:  [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, #name" [FAILED]\n" ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:903:17:  [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, #name " [FAILED]\n" ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:917:17:  [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, #name " [FAILED] (overflow)\n" ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:968:13:  [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, #name " [FAILED]\n" ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1034:17:  [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, #name " [FAILED]\n" ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1075:13:  [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, #name " [FAILED]\n" ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1092:13:  [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, #name " [FAILED]\n" ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1119:17:  [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, #name " [FAILED]\n" ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1299:17:  [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, #name "[%d]: [FAILED]\n", i ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1337:21:  [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, #name "[%d]: [FAILED] s:%d o:%d d%d\n", i, s, o, d ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1945:17:  [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, #name "(a=%d, b=%d): [FAILED]\n", alphas[i], betas[i] ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2108:25:  [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, #name "(cqm=%d): [FAILED]\n", i_cqm ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2132:25:  [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, #qname "(qp=%d, cqm=%d, block="#block"): [FAILED]\n", qp, i_cqm ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2165:21:  [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, #dqname "(qp=%d, cqm=%d, block="#block"): [FAILED]\n", qp, i_cqm ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2194:21:  [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, #dqname "(qp=%d, cqm=%d, block="#block"): [FAILED]\n", qp, i_cqm ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2274:25:  [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, #optname "(qp=%d, res_c=%d, res_asm=%d): [FAILED]\n", qp, res_c, res_asm ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2344:17:  [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, #decname ": [FAILED]\n" ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2375:17:  [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, #lastname ": [FAILED]\n" ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2413:17:  [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, #name ": [FAILED]\n" ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2480:17:  [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, #name "[%d] :  [FAILED]\n", dir );\
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2674:25:  [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, #name " :  [FAILED] ctx_block_cat %d", (int)ctx_block_cat );\
data/x264-0.160.3011+gitcde9a93/x264.c:443:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        p += sprintf( p, "%s", names[i] );
data/x264-0.160.3011+gitcde9a93/x264.c:462:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf( "\n" INDENT );
data/x264-0.160.3011+gitcde9a93/x264.c:469:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf( SEPARATOR );
data/x264-0.160.3011+gitcde9a93/x264.c:480:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf( INDENT );
data/x264-0.160.3011+gitcde9a93/x264.c:487:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf( INDENT );
data/x264-0.160.3011+gitcde9a93/x264.c:498:12:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define H0 printf
data/x264-0.160.3011+gitcde9a93/x264.c:499:32:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define H1 if( longhelp >= 1 ) printf
data/x264-0.160.3011+gitcde9a93/x264.c:500:32:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define H2 if( longhelp == 2 ) printf
data/x264-0.160.3011+gitcde9a93/x264.c:1305:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy( used_demuxer, module );
data/x264-0.160.3011+gitcde9a93/x264.c:1724:19:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        int ret = sscanf( input_opt.timebase, "%"SCNu64"/%"SCNu64, &i_user_timebase_num, &i_user_timebase_den );
data/x264-0.160.3011+gitcde9a93/common/win32thread.c:100:9:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
        EnterCriticalSection( &static_mutex );
data/x264-0.160.3011+gitcde9a93/common/win32thread.c:107:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection( mutex );
data/x264-0.160.3011+gitcde9a93/extras/avisynth_c.h:894:21:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  library->handle = LoadLibrary("avisynth");
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:211: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.
#ifndef getenv
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:212:14:  [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.
extern char *getenv ();
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:397:21:  [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.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:972:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (argc, argv, optstring)
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:983:5:  [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.
int getopt_long (argc, argv, optstring, long_options, opt_index)
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:1012:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/x264-0.160.3011+gitcde9a93/extras/getopt.h:144:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int __argc, char *const *__argv, const char *__shortopts);
data/x264-0.160.3011+gitcde9a93/extras/getopt.h:146:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/x264-0.160.3011+gitcde9a93/extras/getopt.h:150:12:  [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.
extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts,
data/x264-0.160.3011+gitcde9a93/extras/getopt.h:163:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/x264-0.160.3011+gitcde9a93/extras/getopt.h:165:12:  [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.
extern int getopt_long ();
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2942: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( seed );
data/x264-0.160.3011+gitcde9a93/x264.c:1428: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.
        int c = getopt_long( argc, argv, short_options, long_options, NULL );
data/x264-0.160.3011+gitcde9a93/x264.c:1451: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.
        int c = getopt_long( argc, argv, short_options, long_options, &long_options_index );
data/x264-0.160.3011+gitcde9a93/autocomplete.c:256:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16];
data/x264-0.160.3011+gitcde9a93/common/base.c:810:8:  [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).
#undef atoi
data/x264-0.160.3011+gitcde9a93/common/base.c:812:9:  [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).
#define atoi(str) atoi_internal( str, &b_error )
data/x264-0.160.3011+gitcde9a93/common/base.c:856:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        p->cpu = isdigit(value[0]) ? atoi(value) :
data/x264-0.160.3011+gitcde9a93/common/base.c:886: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).
            p->i_threads = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:893:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            p->i_lookahead_threads = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:902: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).
            p->i_sync_lookahead = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:915: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).
            p->i_level_idc = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:920:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        p->i_avcintra_class = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:942:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        p->vui.i_chroma_loc = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:959: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).
                p->i_fps_num = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:965: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).
        p->i_frame_reference = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:967: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).
        p->i_dpb_size = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:973:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            p->i_keyint_max = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:977: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).
        p->i_keyint_min = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:987:39:  [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).
            p->i_scenecut_threshold = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:993: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).
        p->i_bframe = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1000:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            p->i_bframe_adaptive = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1004: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).
        p->i_bframe_bias = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1011: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).
            p->i_bframe_pyramid = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1034:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        p->i_slice_max_size = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1036: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).
        p->i_slice_max_mbs = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1038: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).
        p->i_slice_min_mbs = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1040: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).
        p->i_slice_count = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1042: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).
        p->i_slice_count_max = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1046:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        p->i_cabac_init_idc = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1130: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).
        p->i_log_level = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1150:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        p->analyse.i_weighted_pred = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1154:41:  [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).
        p->analyse.i_chroma_qp_offset = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1158: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).
        p->analyse.i_me_range = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1160: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).
        p->analyse.i_mv_range = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1162:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        p->analyse.i_mv_range_thread = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1164:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        p->analyse.i_subpel_refine = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1188: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).
        p->analyse.i_trellis = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1194:41:  [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).
        p->analyse.i_luma_deadzone[0] = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1196:41:  [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).
        p->analyse.i_luma_deadzone[1] = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1198:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        p->analyse.i_noise_reduction = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1201: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).
        p->rc.i_bitrate = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1206:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        p->rc.i_qp_constant = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1217: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).
        p->rc.i_lookahead = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1219: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).
        p->rc.i_qp_min = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1221: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).
        p->rc.i_qp_max = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1223: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).
        p->rc.i_qp_step = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1227: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).
        p->rc.i_vbv_max_bitrate = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1229: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).
        p->rc.i_vbv_buffer_size = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1237: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).
        p->rc.i_aq_mode = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1242: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).
        int pass = x264_clip3( atoi(value), 0, 3 );
data/x264-0.160.3011+gitcde9a93/common/base.c:1271: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).
        p->i_sps_id = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1289: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).
        p->i_frame_packing = atoi(value);
data/x264-0.160.3011+gitcde9a93/common/base.c:1297: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).
        p->i_opencl_device = atoi( value );
data/x264-0.160.3011+gitcde9a93/common/base.c:1306:8:  [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).
#undef atoi
data/x264-0.160.3011+gitcde9a93/common/base.c:1331:14:  [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.
        s += sprintf( s, "%dx%d ", p->i_width, p->i_height );
data/x264-0.160.3011+gitcde9a93/common/base.c:1332:14:  [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.
        s += sprintf( s, "fps=%u/%u ", p->i_fps_num, p->i_fps_den );
data/x264-0.160.3011+gitcde9a93/common/base.c:1333:14:  [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.
        s += sprintf( s, "timebase=%u/%u ", p->i_timebase_num, p->i_timebase_den );
data/x264-0.160.3011+gitcde9a93/common/base.c:1334:14:  [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.
        s += sprintf( s, "bitdepth=%d ", p->i_bitdepth );
data/x264-0.160.3011+gitcde9a93/common/base.c:1338:14:  [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.
        s += sprintf( s, "opencl=%d ", p->b_opencl );
data/x264-0.160.3011+gitcde9a93/common/base.c:1339:10:  [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.
    s += sprintf( s, "cabac=%d", p->b_cabac );
data/x264-0.160.3011+gitcde9a93/common/base.c:1340:10:  [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.
    s += sprintf( s, " ref=%d", p->i_frame_reference );
data/x264-0.160.3011+gitcde9a93/common/base.c:1341:10:  [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.
    s += sprintf( s, " deblock=%d:%d:%d", p->b_deblocking_filter,
data/x264-0.160.3011+gitcde9a93/common/base.c:1343:10:  [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.
    s += sprintf( s, " analyse=%#x:%#x", p->analyse.intra, p->analyse.inter );
data/x264-0.160.3011+gitcde9a93/common/base.c:1345:10:  [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.
    s += sprintf( s, " subme=%d", p->analyse.i_subpel_refine );
data/x264-0.160.3011+gitcde9a93/common/base.c:1346:10:  [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.
    s += sprintf( s, " psy=%d", p->analyse.b_psy );
data/x264-0.160.3011+gitcde9a93/common/base.c:1348:14:  [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.
        s += sprintf( s, " psy_rd=%.2f:%.2f", p->analyse.f_psy_rd, p->analyse.f_psy_trellis );
data/x264-0.160.3011+gitcde9a93/common/base.c:1349:10:  [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.
    s += sprintf( s, " mixed_ref=%d", p->analyse.b_mixed_references );
data/x264-0.160.3011+gitcde9a93/common/base.c:1350:10:  [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.
    s += sprintf( s, " me_range=%d", p->analyse.i_me_range );
data/x264-0.160.3011+gitcde9a93/common/base.c:1351:10:  [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.
    s += sprintf( s, " chroma_me=%d", p->analyse.b_chroma_me );
data/x264-0.160.3011+gitcde9a93/common/base.c:1352:10:  [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.
    s += sprintf( s, " trellis=%d", p->analyse.i_trellis );
data/x264-0.160.3011+gitcde9a93/common/base.c:1353:10:  [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.
    s += sprintf( s, " 8x8dct=%d", p->analyse.b_transform_8x8 );
data/x264-0.160.3011+gitcde9a93/common/base.c:1354:10:  [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.
    s += sprintf( s, " cqm=%d", p->i_cqm_preset );
data/x264-0.160.3011+gitcde9a93/common/base.c:1355:10:  [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.
    s += sprintf( s, " deadzone=%d,%d", p->analyse.i_luma_deadzone[0], p->analyse.i_luma_deadzone[1] );
data/x264-0.160.3011+gitcde9a93/common/base.c:1356:10:  [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.
    s += sprintf( s, " fast_pskip=%d", p->analyse.b_fast_pskip );
data/x264-0.160.3011+gitcde9a93/common/base.c:1357:10:  [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.
    s += sprintf( s, " chroma_qp_offset=%d", p->analyse.i_chroma_qp_offset );
data/x264-0.160.3011+gitcde9a93/common/base.c:1358:10:  [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.
    s += sprintf( s, " threads=%d", p->i_threads );
data/x264-0.160.3011+gitcde9a93/common/base.c:1359:10:  [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.
    s += sprintf( s, " lookahead_threads=%d", p->i_lookahead_threads );
data/x264-0.160.3011+gitcde9a93/common/base.c:1360:10:  [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.
    s += sprintf( s, " sliced_threads=%d", p->b_sliced_threads );
data/x264-0.160.3011+gitcde9a93/common/base.c:1362:14:  [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.
        s += sprintf( s, " slices=%d", p->i_slice_count );
data/x264-0.160.3011+gitcde9a93/common/base.c:1364:14:  [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.
        s += sprintf( s, " slices_max=%d", p->i_slice_count_max );
data/x264-0.160.3011+gitcde9a93/common/base.c:1366:14:  [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.
        s += sprintf( s, " slice_max_size=%d", p->i_slice_max_size );
data/x264-0.160.3011+gitcde9a93/common/base.c:1368:14:  [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.
        s += sprintf( s, " slice_max_mbs=%d", p->i_slice_max_mbs );
data/x264-0.160.3011+gitcde9a93/common/base.c:1370:14:  [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.
        s += sprintf( s, " slice_min_mbs=%d", p->i_slice_min_mbs );
data/x264-0.160.3011+gitcde9a93/common/base.c:1371:10:  [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.
    s += sprintf( s, " nr=%d", p->analyse.i_noise_reduction );
data/x264-0.160.3011+gitcde9a93/common/base.c:1372:10:  [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.
    s += sprintf( s, " decimate=%d", p->analyse.b_dct_decimate );
data/x264-0.160.3011+gitcde9a93/common/base.c:1374:10:  [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.
    s += sprintf( s, " bluray_compat=%d", p->b_bluray_compat );
data/x264-0.160.3011+gitcde9a93/common/base.c:1376:14:  [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.
        s += sprintf( s, " stitchable=%d", p->b_stitchable );
data/x264-0.160.3011+gitcde9a93/common/base.c:1378:10:  [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.
    s += sprintf( s, " constrained_intra=%d", p->b_constrained_intra );
data/x264-0.160.3011+gitcde9a93/common/base.c:1380:10:  [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.
    s += sprintf( s, " bframes=%d", p->i_bframe );
data/x264-0.160.3011+gitcde9a93/common/base.c:1383:14:  [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.
        s += sprintf( s, " b_pyramid=%d b_adapt=%d b_bias=%d direct=%d weightb=%d open_gop=%d",
data/x264-0.160.3011+gitcde9a93/common/base.c:1387:10:  [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.
    s += sprintf( s, " weightp=%d", p->analyse.i_weighted_pred > 0 ? p->analyse.i_weighted_pred : 0 );
data/x264-0.160.3011+gitcde9a93/common/base.c:1390:14:  [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.
        s += sprintf( s, " keyint=infinite" );
data/x264-0.160.3011+gitcde9a93/common/base.c:1392:14:  [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.
        s += sprintf( s, " keyint=%d", p->i_keyint_max );
data/x264-0.160.3011+gitcde9a93/common/base.c:1393:10:  [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.
    s += sprintf( s, " keyint_min=%d scenecut=%d intra_refresh=%d",
data/x264-0.160.3011+gitcde9a93/common/base.c:1397:14:  [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.
        s += sprintf( s, " rc_lookahead=%d", p->rc.i_lookahead );
data/x264-0.160.3011+gitcde9a93/common/base.c:1405:18:  [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.
            s += sprintf( s, " crf=%.1f", p->rc.f_rf_constant );
data/x264-0.160.3011+gitcde9a93/common/base.c:1407:18:  [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.
            s += sprintf( s, " bitrate=%d ratetol=%.1f",
data/x264-0.160.3011+gitcde9a93/common/base.c:1409:14:  [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.
        s += sprintf( s, " qcomp=%.2f qpmin=%d qpmax=%d qpstep=%d",
data/x264-0.160.3011+gitcde9a93/common/base.c:1412:18:  [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.
            s += sprintf( s, " cplxblur=%.1f qblur=%.1f",
data/x264-0.160.3011+gitcde9a93/common/base.c:1416:18:  [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.
            s += sprintf( s, " vbv_maxrate=%d vbv_bufsize=%d",
data/x264-0.160.3011+gitcde9a93/common/base.c:1419:22:  [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.
                s += sprintf( s, " crf_max=%.1f", p->rc.f_rf_constant_max );
data/x264-0.160.3011+gitcde9a93/common/base.c:1423:14:  [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.
        s += sprintf( s, " qp=%d", p->rc.i_qp_constant );
data/x264-0.160.3011+gitcde9a93/common/base.c:1428:14:  [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.
        s += sprintf( s, " crop_rect=%d,%d,%d,%d", p->crop_rect.i_left, p->crop_rect.i_top,
data/x264-0.160.3011+gitcde9a93/common/base.c:1431:14:  [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.
        s += sprintf( s, " frame-packing=%d", p->i_frame_packing );
data/x264-0.160.3011+gitcde9a93/common/base.c:1435:14:  [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.
        s += sprintf( s, " ip_ratio=%.2f", p->rc.f_ip_factor );
data/x264-0.160.3011+gitcde9a93/common/base.c:1437:18:  [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.
            s += sprintf( s, " pb_ratio=%.2f", p->rc.f_pb_factor );
data/x264-0.160.3011+gitcde9a93/common/base.c:1438:14:  [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.
        s += sprintf( s, " aq=%d", p->rc.i_aq_mode );
data/x264-0.160.3011+gitcde9a93/common/base.c:1440:18:  [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.
            s += sprintf( s, ":%.2f", p->rc.f_aq_strength );
data/x264-0.160.3011+gitcde9a93/common/base.c:1444:18:  [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.
            s += sprintf( s, " zones" );
data/x264-0.160.3011+gitcde9a93/common/cabac.c:50: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( cb->state, cabac_contexts[i_slice_type == SLICE_TYPE_I ? 0 : i_model + 1][i_qp], CHROMA444 ? 1024 : 460 );
data/x264-0.160.3011+gitcde9a93/common/dct.c:804: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( level, dct, 2 * sizeof(dctcoef) );
data/x264-0.160.3011+gitcde9a93/common/dct.c:806: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( level+6, dct+6, 10 * sizeof(dctcoef) );
data/x264-0.160.3011+gitcde9a93/common/frame.c:545: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( PPIXEL(-i_padh, -y-1), PPIXEL(-i_padh, 0), (i_width+2*i_padh) * SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/frame.c:549: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( PPIXEL(-i_padh, i_height+y), PPIXEL(-i_padh, i_height-1), (i_width+2*i_padh) * SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/frame.c:658: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( &frame->plane[i][y*frame->i_stride[i]],
data/x264-0.160.3011+gitcde9a93/common/frame.c:675: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( fenc + y*stride, fenc + (height-1)*stride, 16*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/macroblock.c:589: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( h->mb.pic.p_fdec[1]-FDEC_STRIDE, intra_fdec, 8*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/macroblock.c:590: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( h->mb.pic.p_fdec[2]-FDEC_STRIDE, intra_fdec+8, 8*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/macroblock.c:597: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( h->mb.pic.p_fdec[i]-FDEC_STRIDE, intra_fdec, 24*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/macroblock.c:1645: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( &h->intra_border_backup[backup_dst][0][mb_x*16  ], h->mb.pic.p_fdec[0]+FDEC_STRIDE*15, 16*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/macroblock.c:1648: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( &h->intra_border_backup[backup_dst][1][mb_x*16  ], h->mb.pic.p_fdec[1]+FDEC_STRIDE*15, 16*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/macroblock.c:1649: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( &h->intra_border_backup[backup_dst][2][mb_x*16  ], h->mb.pic.p_fdec[2]+FDEC_STRIDE*15, 16*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/macroblock.c:1654: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( &h->intra_border_backup[backup_dst][1][mb_x*16  ], h->mb.pic.p_fdec[1]+backup_src, 8*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/macroblock.c:1655: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( &h->intra_border_backup[backup_dst][1][mb_x*16+8], h->mb.pic.p_fdec[2]+backup_src, 8*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/macroblock.c:1663: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( &h->intra_border_backup[backup_dst][0][mb_x*16  ], h->mb.pic.p_fdec[0]+backup_src, 16*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/macroblock.c:1666: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( &h->intra_border_backup[backup_dst][1][mb_x*16  ], h->mb.pic.p_fdec[1]+backup_src, 16*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/macroblock.c:1667: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( &h->intra_border_backup[backup_dst][2][mb_x*16  ], h->mb.pic.p_fdec[2]+backup_src, 16*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/macroblock.c:1673: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( &h->intra_border_backup[backup_dst][1][mb_x*16  ], h->mb.pic.p_fdec[1]+backup_src,  8*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/macroblock.c:1674: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( &h->intra_border_backup[backup_dst][1][mb_x*16+8], h->mb.pic.p_fdec[2]+backup_src,  8*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/mc.c:163: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, src, i_width * SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/mc.c:296: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, src, w * SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/mc.c:465: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( src+i_stride*i_height, src+i_stride*(i_height-1), (i_width+1) * SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/common/mc.c:659:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    pf->memcpy_aligned = memcpy;
data/x264-0.160.3011+gitcde9a93/common/mc.h:129: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, src, w*SIZEOF_PIXEL );\
data/x264-0.160.3011+gitcde9a93/common/mips/mc-c.c:3691:30:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        pf->memcpy_aligned = memcpy;
data/x264-0.160.3011+gitcde9a93/common/opencl.c:228: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 dev_name[64];
data/x264-0.160.3011+gitcde9a93/common/opencl.c:229: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 dev_vendor[64];
data/x264-0.160.3011+gitcde9a93/common/opencl.c:230: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 driver_version[64];
data/x264-0.160.3011+gitcde9a93/common/opencl.c:507:17:  [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 dev_name[64];
data/x264-0.160.3011+gitcde9a93/common/osdep.h:120:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar( CP_UTF8, MB_ERR_INVALID_CHARS, utf8, -1, utf16, sizeof(utf16)/sizeof(wchar_t) )
data/x264-0.160.3011+gitcde9a93/common/osdep.h:125:5:  [2] (buffer) wchar_t:
  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.
    wchar_t filename_utf16[MAX_PATH];
data/x264-0.160.3011+gitcde9a93/common/osdep.h:126:5:  [2] (buffer) wchar_t:
  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.
    wchar_t mode_utf16[16];
data/x264-0.160.3011+gitcde9a93/common/osdep.h:134:5:  [2] (buffer) wchar_t:
  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.
    wchar_t oldname_utf16[MAX_PATH];
data/x264-0.160.3011+gitcde9a93/common/osdep.h:135:5:  [2] (buffer) wchar_t:
  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.
    wchar_t newname_utf16[MAX_PATH];
data/x264-0.160.3011+gitcde9a93/common/osdep.h:150:5:  [2] (buffer) wchar_t:
  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.
    wchar_t path_utf16[MAX_PATH];
data/x264-0.160.3011+gitcde9a93/common/osdep.h:156:26:  [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).
#define x264_fopen       fopen
data/x264-0.160.3011+gitcde9a93/common/osdep.h:180: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 buf[4096];
data/x264-0.160.3011+gitcde9a93/common/osdep.h:181:9:  [2] (buffer) wchar_t:
  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.
        wchar_t buf_utf16[4096];
data/x264-0.160.3011+gitcde9a93/common/osdep.h:191:32:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
            int length_utf16 = MultiByteToWideChar( CP_UTF8, 0, buf, length, buf_utf16, sizeof(buf_utf16)/sizeof(wchar_t) );
data/x264-0.160.3011+gitcde9a93/common/osdep.h:202:5:  [2] (buffer) wchar_t:
  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.
    wchar_t path_utf16[MAX_PATH];
data/x264-0.160.3011+gitcde9a93/common/ppc/deblock.c:53:25:  [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.
    ALIGNED_16(unsigned char result[64]);
data/x264-0.160.3011+gitcde9a93/common/ppc/deblock.c:221:25:  [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.
    ALIGNED_16(unsigned char temp[16]);                                                      \
data/x264-0.160.3011+gitcde9a93/common/ppc/mc.c:107:30:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define tiny_copy( d, s, l ) memcpy( d, s, l )
data/x264-0.160.3011+gitcde9a93/common/ppc/mc.c:119: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, src, a );                            \
data/x264-0.160.3011+gitcde9a93/common/set.c:327: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( cqm, jvt, length );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:381:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( buf + aligned_size, h->out.p_bitstream + aligned_size, h->out.i_bitstream - aligned_size );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:1456:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1000], *p;
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:1462: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( &h->param, param, sizeof(x264_param_t) );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:1606:15:  [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.
    p = buf + sprintf( buf, "using cpu capabilities:" );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:1635:14:  [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.
        p += sprintf( p, " none!" );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:1774: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 level[4];
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:1778:9:  [2] (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). Risk is low because the source is a constant string.
        strcpy( level, "1b" );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:1780:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char * const subsampling[4] = { "4:0:0", "4:2:0", "4:2:2", "4:4:4" };
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:1902: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( param, &h->thread[h->i_thread_phase]->param, sizeof(x264_param_t) );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:1927: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( new_out, h->out.nal, sizeof(x264_nal_t) * (h->out.i_nals_allocated) );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:1962: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( buf, h0->nal_buffer, previous_nal_size );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:2115: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( h->fenc->weight[j], w, sizeof(h->fenc->weight[i]) );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:2391: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( h->fdec->plane_fld[p] + i*h->fdec->i_stride[p],
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:2634: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( &bak->cabac, &h->cabac, sizeof(x264_cabac_t) );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:2636: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( &bak->cabac, &h->cabac, offsetof(x264_cabac_t, f8_bits_encoded) );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:2665: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( &h->cabac, &bak->cabac, sizeof(x264_cabac_t) );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:2667: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( &h->cabac, &bak->cabac, offsetof(x264_cabac_t, f8_bits_encoded) );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:3071: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( &dst->i_frame, &src->i_frame, offsetof(x264_t, mb.base) - offsetof(x264_t, i_frame) );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:3081: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->stat, &src->stat, offsetof(x264_t, stat.frame) - offsetof(x264_t, stat) );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:3155: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( &t->i_frame, &h->i_frame, offsetof(x264_t, rc) - offsetof(x264_t, i_frame) );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:3814: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 psz_message[80];
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4096: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( intra, " %4.1f%%", i_mb_count[I_PCM]  / i_count );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4106:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[200];
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4181:18:  [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.
            p += sprintf( p, " %4.1f%%", 100. * (i+1) * h->stat.i_consecutive_bframes[i] / den );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4237: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( buf + strlen(buf), "  B16..8: %4.1f%% %4.1f%% %4.1f%%  direct:%4.1f%%  skip:%4.1f%%",
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4244: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( buf + strlen(buf), "  L0:%4.1f%% L1:%4.1f%% BI:%4.1f%%",
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4278:31:  [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.
                fieldstats += sprintf( fieldstats, " inter:%.1f%%", h->stat.i_mb_field[1] * 100.0 / i_inter );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4280:31:  [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.
                fieldstats += sprintf( fieldstats, " skip:%.1f%%", h->stat.i_mb_field[2] * 100.0 / i_skip );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4289:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf( buf, " inter:%.1f%%", 100. * h->stat.i_mb_count_8x8dct[1] / h->stat.i_mb_count_8x8dct[0] );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4307:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf( buf, " inter: %.1f%% %.1f%% %.1f%%",
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4320:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf( buf, " inter: %.1f%%", h->stat.i_mb_cbp[1] * 100.0 / ((i_mb_count - i_all_intra)*4) );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4373:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf( buf, " UV:%.1f%%", h->stat.i_wpred[1] * 100.0 / h->stat.i_frame_count[SLICE_TYPE_P] );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4393:26:  [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.
                    p += sprintf( p, " %4.1f%%", 100. * h->stat.i_mb_count_ref[i_slice][i_list][i] / i_den );
data/x264-0.160.3011+gitcde9a93/encoder/macroblock.c:533: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( h->mb.pic.p_fdec[1], h->mb.pic.p_fdec[1]-FDEC_STRIDE, 8*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/encoder/macroblock.c:534: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( h->mb.pic.p_fdec[2], h->mb.pic.p_fdec[2]-FDEC_STRIDE, 8*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/encoder/macroblock.c:563:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( p_dst, p_dst-FDEC_STRIDE, 4*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/encoder/macroblock.c: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( p_dst, &edge[16], 8*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/encoder/macroblock.c:603:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( p_dst, p_dst-FDEC_STRIDE, 16*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:615: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( h->fenc->weight[ref], weights[bestref], sizeof(weights[bestref]) );
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:950:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[5];
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:962:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[13] = "infinite ";
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:964:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf( buf, "%d ", h->param.i_keyint_max );
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:1239: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( z->param, &h->param, sizeof(x264_param_t) );
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:1309: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( rc->zones+1, h->param.rc.zones, (rc->i_zones-1) * sizeof(x264_zone_t) );
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:1317: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( rc->zones[0].param, &h->param, sizeof(x264_param_t) );
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:2656: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( t->rc->row_preds, rc->row_preds, sizeof(rc->row_preds) );
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:2663: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( t->rc, rc, offsetof(x264_ratecontrol_t, row_pred) );
data/x264-0.160.3011+gitcde9a93/encoder/rdo.c:73:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define COPY_CABAC_PART( pos, size ) memcpy( &cb->state[pos], &h->cabac.state[pos], size )
data/x264-0.160.3011+gitcde9a93/encoder/rdo.c:659: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( orig_coefs, dct, sizeof(dctcoef)*16 );
data/x264-0.160.3011+gitcde9a93/encoder/rdo.c:666: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( orig_coefs, dct, sizeof(dctcoef)*num_coefs );
data/x264-0.160.3011+gitcde9a93/encoder/rdo.c:687: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( orig_coefs, dct, sizeof(dctcoef)*16 );
data/x264-0.160.3011+gitcde9a93/encoder/rdo.c:709: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( &level_state0, cabac_state, sizeof(uint64_t) );
data/x264-0.160.3011+gitcde9a93/encoder/rdo.c:711: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( &level_state1, cabac_state+8, sizeof(uint16_t) );
data/x264-0.160.3011+gitcde9a93/encoder/rdo.c:747: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( level_state, cabac_state, 10 );
data/x264-0.160.3011+gitcde9a93/encoder/set.c:595: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( payload, uuid, 16 );
data/x264-0.160.3011+gitcde9a93/encoder/set.c:772: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( data, avcintra_uuid, sizeof(avcintra_uuid) );
data/x264-0.160.3011+gitcde9a93/encoder/set.c:773: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( data+16, msg, strlen(msg) );
data/x264-0.160.3011+gitcde9a93/encoder/set.c:804: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( data, avcintra_uuid, sizeof(avcintra_uuid) );
data/x264-0.160.3011+gitcde9a93/encoder/set.c:805: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( data+16, msg, strlen(msg) );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype-cl.c:67: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( h->opencl.copies[i].dest, h->opencl.copies[i].src, h->opencl.copies[i].bytes );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype-cl.c:167: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( locked, fenc->plane[0], luma_length );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype-cl.c:175: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( locked, fenc->i_inv_qscale_factor, size );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:726: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( pix-FDEC_STRIDE, src-i_stride, 16 * SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:976: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( row_satd_inter, output_inter[i] + NUM_INTS, row_count * sizeof(int) );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:978: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( row_satd_intra, output_intra[i] + NUM_INTS, row_count * sizeof(int) );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:1121: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( frames[0]->f_qp_offset, frames[0]->f_qp_offset_aq, h->mb.i_mb_count * sizeof(float) );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:1334:98:  [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 void slicetype_path( x264_t *h, x264_mb_analysis_t *a, x264_frame_t **frames, int length, char (*best_paths)[X264_LOOKAHEAD_MAX+1] )
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:1336: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 paths[2][X264_LOOKAHEAD_MAX+1];
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:1347: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( paths[idx], best_paths[len % (X264_BFRAME_MAX+1)], len );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:1382: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( best_paths[length % (X264_BFRAME_MAX+1)], paths[idx^1], length );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:1558:17:  [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 best_paths[X264_BFRAME_MAX+1][X264_LOOKAHEAD_MAX+1] = {"","P"};
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:1585: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 path[X264_LOOKAHEAD_MAX+1];
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:1613:17:  [2] (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). Risk is low because the source is a constant string.
                strcpy( path+bframes, "PP" );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:1615:17:  [2] (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). Risk is low because the source is a constant string.
                strcpy( path+bframes, "BP" );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:1909: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( &frames[1], h->lookahead->next.list, (bframes+1) * sizeof(x264_frame_t*) );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:1960: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( h->lookahead->next.list, frames, (bframes+1) * sizeof(x264_frame_t*) );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:2012: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( h->fdec->i_row_satd, h->fenc->i_row_satd, h->mb.i_mb_height * sizeof(int) );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:2014: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( h->fdec->i_row_satds[0][0], h->fenc->i_row_satds[0][0], h->mb.i_mb_height * sizeof(int) );
data/x264-0.160.3011+gitcde9a93/filters/filters.c:74: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.
    opts[i++] = memcpy( (char*)opts + offset, src, length );\
data/x264-0.160.3011+gitcde9a93/filters/video/internal.c:34: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, src, w );
data/x264-0.160.3011+gitcde9a93/filters/video/select_every.c:85: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( h->pattern, offsets, h->pattern_len * sizeof(int) );
data/x264-0.160.3011+gitcde9a93/filters/video/select_every.c:99: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 name[20];
data/x264-0.160.3011+gitcde9a93/filters/video/select_every.c:100:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf( name, "cache_%d", param->i_bitdepth );
data/x264-0.160.3011+gitcde9a93/input/avs.c:210:40:  [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 void avs_build_filter_sequence( char *filename_ext, const char *filter[AVS_MAX_SEQUENCE+1] )
data/x264-0.160.3011+gitcde9a93/input/avs.c:210:66:  [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 void avs_build_filter_sequence( char *filename_ext, const char *filter[AVS_MAX_SEQUENCE+1] )
data/x264-0.160.3011+gitcde9a93/input/avs.c:282: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 ansi_filename[MAX_PATH];
data/x264-0.160.3011+gitcde9a93/input/avs.c:311:15:  [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.
        const char *filter[AVS_MAX_SEQUENCE+1] = { 0 };
data/x264-0.160.3011+gitcde9a93/input/avs.c:388: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 conv_func[16];
data/x264-0.160.3011+gitcde9a93/input/avs.c:391:15:  [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.
        const char *arg_name[3];
data/x264-0.160.3011+gitcde9a93/input/avs.c:402: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 matrix[7];
data/x264-0.160.3011+gitcde9a93/input/ffms.c:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PROGRESS_LENGTH+5+1];
data/x264-0.160.3011+gitcde9a93/input/input.c:210: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( buf, base + align, size - align );
data/x264-0.160.3011+gitcde9a93/input/timecode.c:98: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 buff[256];
data/x264-0.160.3011+gitcde9a93/input/y4m.c:76: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[MAX_YUV4_HEADER+10];
data/x264-0.160.3011+gitcde9a93/input/y4m.c:246: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_buf[16];
data/x264-0.160.3011+gitcde9a93/output/flv.c:187: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( p_flv->sei, p_nal[2].p_payload, sei_size );
data/x264-0.160.3011+gitcde9a93/output/flv_bytestream.c:126: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( c->data + c->d_cur, data, size );
data/x264-0.160.3011+gitcde9a93/output/matroska.c:151: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( avcC+8, sps, sps_size );
data/x264-0.160.3011+gitcde9a93/output/matroska.c:157: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( avcC+11+sps_size, pps, pps_size );
data/x264-0.160.3011+gitcde9a93/output/matroska_ebml.c:114: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( (char*)c->data + c->d_cur, data, size );
data/x264-0.160.3011+gitcde9a93/output/matroska_ebml.c:123: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 c_id[4] = { id >> 24, id >> 16, id >> 8, id };
data/x264-0.160.3011+gitcde9a93/output/matroska_ebml.c:136: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 c_size[5] = { 0x08, size >> 24, size >> 16, size >> 8, size };
data/x264-0.160.3011+gitcde9a93/output/matroska_ebml.c:254: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 c_ui[8] = { ui >> 56, ui >> 48, ui >> 40, ui >> 32, ui >> 24, ui >> 16, ui >> 8, ui };
data/x264-0.160.3011+gitcde9a93/output/matroska_ebml.c:272: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 c_f[4];
data/x264-0.160.3011+gitcde9a93/output/matroska_ebml.c:411: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 c_delta_flags[3];
data/x264-0.160.3011+gitcde9a93/output/mp4.c: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 ansi_filename[MAX_PATH];
data/x264-0.160.3011+gitcde9a93/output/mp4.c:290: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( p_slot->data, sps, sps_size );
data/x264-0.160.3011+gitcde9a93/output/mp4.c:302: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( p_slot->data, pps, pps_size );
data/x264-0.160.3011+gitcde9a93/output/mp4.c:310: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( p_mp4->p_sample->data + p_mp4->p_sample->dataLength, sei, sei_size );
data/x264-0.160.3011+gitcde9a93/output/mp4.c:324: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( p_mp4->p_sample->data + p_mp4->p_sample->dataLength, p_nalu, i_size );
data/x264-0.160.3011+gitcde9a93/output/mp4_lsmash.c:351: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( p_mp4->p_sei_buffer, sei, sei_size );
data/x264-0.160.3011+gitcde9a93/output/mp4_lsmash.c:383:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( p_sample->data, p_mp4->p_sei_buffer, p_mp4->i_sei_size );
data/x264-0.160.3011+gitcde9a93/output/mp4_lsmash.c:388: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( p_sample->data + p_mp4->i_sei_size, p_nalu, i_size );
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c: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 func_name[100];
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:83: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.
static const char *pixel_names[12] = { "16x16", "16x8", "8x16", "8x8", "8x4", "4x8", "4x4", "4x16", "4x2", "2x8", "2x4", "2x2" };
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:84: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.
static const char *intra_predict_16x16_names[7] = { "v", "h", "dc", "p", "dcl", "dct", "dc8" };
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:85: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.
static const char *intra_predict_8x8c_names[7] = { "dc", "h", "v", "p", "dcl", "dct", "dc8" };
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:86: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.
static const char *intra_predict_4x4_names[12] = { "v", "h", "dc", "ddl", "ddr", "vr", "hd", "vl", "hu", "dcl", "dct", "dc8" };
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:622: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( pbuf3, pbuf2, 20*FDEC_STRIDE*SIZEOF_PIXEL ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:623: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( pbuf4, pbuf2, 20*FDEC_STRIDE*SIZEOF_PIXEL ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:727: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( pbuf3, pbuf2, 20*FDEC_STRIDE*SIZEOF_PIXEL );
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:959: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( pbuf3, pbuf1, 32*32 * SIZEOF_PIXEL ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:960: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( pbuf4, pbuf1, 32*32 * SIZEOF_PIXEL ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:961: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( dct1, src, 256 * sizeof(dctcoef) ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:962: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( dct2, src, 256 * sizeof(dctcoef) ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1000: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( dct2, dct1, 16 * sizeof(dctcoef) );\
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1028: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( dct2, dct1, 8*16 * sizeof(dctcoef) );\
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1085: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( pbuf3, pbuf1, 16*FDEC_STRIDE * SIZEOF_PIXEL ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1086: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( pbuf4, pbuf1, 16*FDEC_STRIDE * SIZEOF_PIXEL ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1107: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( pbuf3, pbuf2, 16*FDEC_STRIDE * SIZEOF_PIXEL ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1108: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( pbuf4, pbuf2, 16*FDEC_STRIDE * SIZEOF_PIXEL ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1111: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( pbuf3 + j*FDEC_STRIDE, (i?pbuf1:pbuf2) + j*FENC_STRIDE, 4 * SIZEOF_PIXEL ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1112: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( pbuf4 + j*FDEC_STRIDE, (i?pbuf1:pbuf2) + j*FENC_STRIDE, 4 * SIZEOF_PIXEL ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1134: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(dct, buf1, size*sizeof(dctcoef)); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1137: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(buf3, buf4, 10); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1288: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( pbuf3, pbuf1+320, 320 * SIZEOF_PIXEL ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1289: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( pbuf4, pbuf1+320, 320 * SIZEOF_PIXEL ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1698: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( buf3, buf1, size*2*stride );\
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1699: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( buf4, buf1, size*2*stride );\
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:1935: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( pbuf4, pbuf3, 1024 * SIZEOF_PIXEL ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2159: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( dct2, dct1, w*w*sizeof(dctcoef) ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2188: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( dct2, dct1, w*w*sizeof(dctcoef) ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2235: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( dct2, dct1, 8*sizeof(dctcoef) );
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2268: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( dct2, dct1, size*sizeof(dctcoef) ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2306: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( dct1, buf1, size*sizeof(dctcoef) );
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2307: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( dct2, buf1, size*sizeof(dctcoef) );
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2308: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( buf3+256, buf3, 256 );
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2400: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( &runlevel_a, buf1+i, sizeof(x264_run_level_t) ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2401: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( &runlevel_c, buf1+i, sizeof(x264_run_level_t) ); \
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2463: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( fdec, pbuf1, 32*20 * SIZEOF_PIXEL );\
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2472: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( pbuf3, fdec, FDEC_STRIDE*20 * SIZEOF_PIXEL );\
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2473: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( pbuf4, fdec, FDEC_STRIDE*20 * SIZEOF_PIXEL );\
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2667:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    if( !rd ) memcpy( bitstream[1], bitstream[0], 0x400 );\
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2706: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( buf4, buf3, 0x1000 );
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2713: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( buf4, buf3, 0x1000 );
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2720: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( buf4, buf3, 0x1000 );
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2940:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int seed = ( argc > 1 ) ? atoi(argv[1]) : x264_mdate();
data/x264-0.160.3011+gitcde9a93/x264.c:70:8:  [2] (buffer) wchar_t:
  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 wchar_t org_console_title[CONSOLE_TITLE_SIZE] = L"";
data/x264-0.160.3011+gitcde9a93/x264.c:74:5:  [2] (buffer) wchar_t:
  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.
    wchar_t title_utf16[CONSOLE_TITLE_SIZE];
data/x264-0.160.3011+gitcde9a93/x264.c:89:5:  [2] (buffer) wchar_t:
  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.
    wchar_t filename_utf16[MAX_PATH];
data/x264-0.160.3011+gitcde9a93/x264.c:445:18:  [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.
            p += sprintf( p, ", " );
data/x264-0.160.3011+gitcde9a93/x264.c:497:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[50];
data/x264-0.160.3011+gitcde9a93/x264.c:1363: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 args[20], name[20];
data/x264-0.160.3011+gitcde9a93/x264.c:1364:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf( args, "bit_depth=%d", param->i_bitdepth );
data/x264-0.160.3011+gitcde9a93/x264.c:1365:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf( name, "depth_%d", param->i_bitdepth );
data/x264-0.160.3011+gitcde9a93/x264.c:1473:50:  [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).
                param->i_frame_total = X264_MAX( atoi( optarg ), 0 );
data/x264-0.160.3011+gitcde9a93/x264.c:1476:41:  [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).
                opt->i_seek = X264_MAX( atoi( optarg ), 0 );
data/x264-0.160.3011+gitcde9a93/x264.c:1513:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    cli_log_level = atoi( optarg );
data/x264-0.160.3011+gitcde9a93/x264.c:1564:39:  [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).
                input_opt.bit_depth = atoi( optarg );
data/x264-0.160.3011+gitcde9a93/x264.c:1567:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                param->i_bitdepth = atoi( optarg );
data/x264-0.160.3011+gitcde9a93/x264.c:1638: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 demuxername[5];
data/x264-0.160.3011+gitcde9a93/x264.c:1869:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[200];
data/x264-0.160.3011+gitcde9a93/x264.c:1883: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( buf, "x264 [%.1f%%] %d/%d frames, %.2f fps, %.2f kb/s, eta %d:%02d:%02d",
data/x264-0.160.3011+gitcde9a93/x264.c:1888: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( buf, "x264 %d frames: %.2f fps, %.2f kb/s", i_frame, fps, bitrate );
data/x264-0.160.3011+gitcde9a93/x264.c:1897: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( lib->img.i_stride, cli->img.stride, sizeof(cli->img.stride) );
data/x264-0.160.3011+gitcde9a93/x264.c:1898: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( lib->img.plane, cli->img.plane, sizeof(cli->img.plane) );
data/x264-0.160.3011+gitcde9a93/autocomplete.c:293:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int cur_len = strlen( cur );
data/x264-0.160.3011+gitcde9a93/common/base.c:117:21:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
        align_buf = memalign( HUGE_PAGE_SIZE, i_size );
data/x264-0.160.3011+gitcde9a93/common/base.c:127:21:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
        align_buf = memalign( NATIVE_ALIGN, i_size );
data/x264-0.160.3011+gitcde9a93/common/base.c:1324:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += strlen(p->rc.psz_zones);
data/x264-0.160.3011+gitcde9a93/common/opencl.c:147:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen( STR );\
data/x264-0.160.3011+gitcde9a93/common/set.c:315:10:  [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).
    p += strlen( name );
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4032:23:  [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).
        int msg_len = strlen(psz_message);
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4237:24:  [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).
        sprintf( buf + strlen(buf), "  B16..8: %4.1f%% %4.1f%% %4.1f%%  direct:%4.1f%%  skip:%4.1f%%",
data/x264-0.160.3011+gitcde9a93/encoder/encoder.c:4244:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sprintf( buf + strlen(buf), "  L0:%4.1f%% L1:%4.1f%% BI:%4.1f%%",
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:623:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *output = x264_malloc( strlen( input ) + strlen( suffix ) + 1 );
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:623:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *output = x264_malloc( strlen( input ) + strlen( suffix ) + 1 );
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:951: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( p, "interlaced=%4s", buf );
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:965:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if( strncmp( p, buf, strlen(buf) ) )
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:968:31:  [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).
                              strlen(buf)-1, buf, strcspn(p, " "), p );
data/x264-0.160.3011+gitcde9a93/encoder/ratecontrol.c:1267:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        CHECKED_MALLOC( psz_zones, strlen( h->param.rc.psz_zones )+1 );
data/x264-0.160.3011+gitcde9a93/encoder/set.c:593:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    CHECKED_MALLOC( payload, 200 + strlen( opts ) );
data/x264-0.160.3011+gitcde9a93/encoder/set.c:599:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(payload)+1;
data/x264-0.160.3011+gitcde9a93/encoder/set.c:773:27:  [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).
    memcpy( data+16, msg, strlen(msg) );
data/x264-0.160.3011+gitcde9a93/encoder/set.c:805:27:  [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).
    memcpy( data+16, msg, strlen(msg) );
data/x264-0.160.3011+gitcde9a93/encoder/slicetype.c:1349:9:  [1] (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). Risk is low because the source is a constant character.
        strcpy( paths[idx]+len+path, "P" );
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:234:51:  [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 (!defined __STDC__ || !__STDC__) && !defined strlen
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:237:12:  [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).
extern int strlen (const char *);
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:428:44:  [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).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:656:21:  [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).
		== (unsigned int) strlen (p->name))
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:683:16:  [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).
	  nextchar += strlen (nextchar);
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:715: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).
		  nextchar += strlen (nextchar);
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:731: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).
		  nextchar += strlen (nextchar);
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:736:16:  [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).
	  nextchar += strlen (nextchar);
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:847:51:  [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 ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:870:18:  [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).
	    nextchar += strlen (nextchar);
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:890:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:904:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/x264-0.160.3011+gitcde9a93/extras/getopt.c:908:18:  [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).
	    nextchar += strlen (nextchar);
data/x264-0.160.3011+gitcde9a93/filters/filters.c:50:32:  [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).
            while( *option && (strlen( *option ) != length || strncmp( opt, *option, length )) )
data/x264-0.160.3011+gitcde9a93/filters/filters.c:61:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size += strlen( options[opt_count] ) + 1;
data/x264-0.160.3011+gitcde9a93/filters/filters.c:90:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t option_length = strlen( option );
data/x264-0.160.3011+gitcde9a93/filters/video/resize.c:252:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if( strlen( str_csp ) == 0 )
data/x264-0.160.3011+gitcde9a93/input/y4m.c:96:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        header[i] = fgetc( h->fh );
data/x264-0.160.3011+gitcde9a93/input/y4m.c:220:43:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while( len <= MAX_FRAME_HEADER && fgetc( h->fh ) != '\n' )
data/x264-0.160.3011+gitcde9a93/input/y4m.c:267:41:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while( i <= MAX_FRAME_HEADER && fgetc( h->fh ) != '\n' )
data/x264-0.160.3011+gitcde9a93/output/flv_bytestream.c:75:20:  [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).
    uint16_t len = strlen( str );
data/x264-0.160.3011+gitcde9a93/output/matroska_ebml.c:236:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen( str );
data/x264-0.160.3011+gitcde9a93/tools/checkasm.c:2934:33:  [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).
            bench_pattern_len = strlen(bench_pattern);
data/x264-0.160.3011+gitcde9a93/x264.c:459:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t name_len = strlen( name );
data/x264-0.160.3011+gitcde9a93/x264.c:1326:21:  [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).
        int p_len = strlen( p );
data/x264-0.160.3011+gitcde9a93/x264cli.h:69:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *ext = filename + strlen( filename );

ANALYSIS SUMMARY:

Hits = 448
Lines analyzed = 86007 in approximately 2.52 seconds (34125 lines/second)
Physical Source Lines of Code (SLOC) = 68488
Hits@level = [0] 233 [1]  46 [2] 328 [3]  17 [4]  57 [5]   0
Hits@level+ = [0+] 681 [1+] 448 [2+] 402 [3+]  74 [4+]  57 [5+]   0
Hits/KSLOC@level+ = [0+] 9.94335 [1+] 6.54129 [2+] 5.86964 [3+] 1.08048 [4+] 0.832263 [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.