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/libwebp-0.6.1/examples/anim_diff.c
Examining data/libwebp-0.6.1/examples/anim_dump.c
Examining data/libwebp-0.6.1/examples/anim_util.c
Examining data/libwebp-0.6.1/examples/anim_util.h
Examining data/libwebp-0.6.1/examples/cwebp.c
Examining data/libwebp-0.6.1/examples/dwebp.c
Examining data/libwebp-0.6.1/examples/example_util.c
Examining data/libwebp-0.6.1/examples/example_util.h
Examining data/libwebp-0.6.1/examples/gif2webp.c
Examining data/libwebp-0.6.1/examples/gifdec.c
Examining data/libwebp-0.6.1/examples/gifdec.h
Examining data/libwebp-0.6.1/examples/img2webp.c
Examining data/libwebp-0.6.1/examples/stopwatch.h
Examining data/libwebp-0.6.1/examples/vwebp.c
Examining data/libwebp-0.6.1/examples/webpinfo.c
Examining data/libwebp-0.6.1/examples/webpmux.c
Examining data/libwebp-0.6.1/extras/extras.c
Examining data/libwebp-0.6.1/extras/extras.h
Examining data/libwebp-0.6.1/extras/get_disto.c
Examining data/libwebp-0.6.1/extras/quality_estimate.c
Examining data/libwebp-0.6.1/extras/vwebp_sdl.c
Examining data/libwebp-0.6.1/extras/webp_quality.c
Examining data/libwebp-0.6.1/extras/webp_to_sdl.c
Examining data/libwebp-0.6.1/extras/webp_to_sdl.h
Examining data/libwebp-0.6.1/imageio/image_dec.c
Examining data/libwebp-0.6.1/imageio/image_dec.h
Examining data/libwebp-0.6.1/imageio/image_enc.c
Examining data/libwebp-0.6.1/imageio/image_enc.h
Examining data/libwebp-0.6.1/imageio/imageio_util.c
Examining data/libwebp-0.6.1/imageio/imageio_util.h
Examining data/libwebp-0.6.1/imageio/jpegdec.c
Examining data/libwebp-0.6.1/imageio/jpegdec.h
Examining data/libwebp-0.6.1/imageio/metadata.c
Examining data/libwebp-0.6.1/imageio/metadata.h
Examining data/libwebp-0.6.1/imageio/pngdec.c
Examining data/libwebp-0.6.1/imageio/pngdec.h
Examining data/libwebp-0.6.1/imageio/pnmdec.c
Examining data/libwebp-0.6.1/imageio/pnmdec.h
Examining data/libwebp-0.6.1/imageio/tiffdec.c
Examining data/libwebp-0.6.1/imageio/tiffdec.h
Examining data/libwebp-0.6.1/imageio/webpdec.h
Examining data/libwebp-0.6.1/imageio/wicdec.c
Examining data/libwebp-0.6.1/imageio/wicdec.h
Examining data/libwebp-0.6.1/imageio/webpdec.c
Examining data/libwebp-0.6.1/src/dec/alpha_dec.c
Examining data/libwebp-0.6.1/src/dec/alphai_dec.h
Examining data/libwebp-0.6.1/src/dec/buffer_dec.c
Examining data/libwebp-0.6.1/src/dec/common_dec.h
Examining data/libwebp-0.6.1/src/dec/frame_dec.c
Examining data/libwebp-0.6.1/src/dec/idec_dec.c
Examining data/libwebp-0.6.1/src/dec/io_dec.c
Examining data/libwebp-0.6.1/src/dec/quant_dec.c
Examining data/libwebp-0.6.1/src/dec/tree_dec.c
Examining data/libwebp-0.6.1/src/dec/vp8_dec.c
Examining data/libwebp-0.6.1/src/dec/vp8_dec.h
Examining data/libwebp-0.6.1/src/dec/vp8i_dec.h
Examining data/libwebp-0.6.1/src/dec/vp8l_dec.c
Examining data/libwebp-0.6.1/src/dec/vp8li_dec.h
Examining data/libwebp-0.6.1/src/dec/webp_dec.c
Examining data/libwebp-0.6.1/src/dec/webpi_dec.h
Examining data/libwebp-0.6.1/src/demux/anim_decode.c
Examining data/libwebp-0.6.1/src/demux/demux.c
Examining data/libwebp-0.6.1/src/dsp/alpha_processing_neon.c
Examining data/libwebp-0.6.1/src/dsp/alpha_processing_sse2.c
Examining data/libwebp-0.6.1/src/dsp/alpha_processing_sse41.c
Examining data/libwebp-0.6.1/src/dsp/common_sse2.h
Examining data/libwebp-0.6.1/src/dsp/cost.c
Examining data/libwebp-0.6.1/src/dsp/cost_mips32.c
Examining data/libwebp-0.6.1/src/dsp/cost_mips_dsp_r2.c
Examining data/libwebp-0.6.1/src/dsp/cost_sse2.c
Examining data/libwebp-0.6.1/src/dsp/cpu.c
Examining data/libwebp-0.6.1/src/dsp/dec.c
Examining data/libwebp-0.6.1/src/dsp/dec_clip_tables.c
Examining data/libwebp-0.6.1/src/dsp/dec_mips32.c
Examining data/libwebp-0.6.1/src/dsp/dec_mips_dsp_r2.c
Examining data/libwebp-0.6.1/src/dsp/dec_msa.c
Examining data/libwebp-0.6.1/src/dsp/dec_neon.c
Examining data/libwebp-0.6.1/src/dsp/dec_sse2.c
Examining data/libwebp-0.6.1/src/dsp/dec_sse41.c
Examining data/libwebp-0.6.1/src/dsp/enc.c
Examining data/libwebp-0.6.1/src/dsp/enc_avx2.c
Examining data/libwebp-0.6.1/src/dsp/enc_mips32.c
Examining data/libwebp-0.6.1/src/dsp/enc_mips_dsp_r2.c
Examining data/libwebp-0.6.1/src/dsp/enc_msa.c
Examining data/libwebp-0.6.1/src/dsp/enc_neon.c
Examining data/libwebp-0.6.1/src/dsp/enc_sse2.c
Examining data/libwebp-0.6.1/src/dsp/enc_sse41.c
Examining data/libwebp-0.6.1/src/dsp/filters.c
Examining data/libwebp-0.6.1/src/dsp/filters_mips_dsp_r2.c
Examining data/libwebp-0.6.1/src/dsp/filters_msa.c
Examining data/libwebp-0.6.1/src/dsp/filters_neon.c
Examining data/libwebp-0.6.1/src/dsp/filters_sse2.c
Examining data/libwebp-0.6.1/src/dsp/lossless.c
Examining data/libwebp-0.6.1/src/dsp/lossless.h
Examining data/libwebp-0.6.1/src/dsp/lossless_common.h
Examining data/libwebp-0.6.1/src/dsp/lossless_enc.c
Examining data/libwebp-0.6.1/src/dsp/lossless_enc_mips32.c
Examining data/libwebp-0.6.1/src/dsp/lossless_enc_mips_dsp_r2.c
Examining data/libwebp-0.6.1/src/dsp/lossless_enc_msa.c
Examining data/libwebp-0.6.1/src/dsp/lossless_enc_neon.c
Examining data/libwebp-0.6.1/src/dsp/lossless_enc_sse2.c
Examining data/libwebp-0.6.1/src/dsp/lossless_enc_sse41.c
Examining data/libwebp-0.6.1/src/dsp/lossless_mips_dsp_r2.c
Examining data/libwebp-0.6.1/src/dsp/lossless_msa.c
Examining data/libwebp-0.6.1/src/dsp/lossless_neon.c
Examining data/libwebp-0.6.1/src/dsp/lossless_sse2.c
Examining data/libwebp-0.6.1/src/dsp/mips_macro.h
Examining data/libwebp-0.6.1/src/dsp/msa_macro.h
Examining data/libwebp-0.6.1/src/dsp/neon.h
Examining data/libwebp-0.6.1/src/dsp/rescaler.c
Examining data/libwebp-0.6.1/src/dsp/rescaler_mips32.c
Examining data/libwebp-0.6.1/src/dsp/rescaler_mips_dsp_r2.c
Examining data/libwebp-0.6.1/src/dsp/rescaler_msa.c
Examining data/libwebp-0.6.1/src/dsp/rescaler_neon.c
Examining data/libwebp-0.6.1/src/dsp/rescaler_sse2.c
Examining data/libwebp-0.6.1/src/dsp/ssim.c
Examining data/libwebp-0.6.1/src/dsp/ssim_sse2.c
Examining data/libwebp-0.6.1/src/dsp/upsampling.c
Examining data/libwebp-0.6.1/src/dsp/upsampling_mips_dsp_r2.c
Examining data/libwebp-0.6.1/src/dsp/upsampling_msa.c
Examining data/libwebp-0.6.1/src/dsp/upsampling_neon.c
Examining data/libwebp-0.6.1/src/dsp/upsampling_sse2.c
Examining data/libwebp-0.6.1/src/dsp/yuv.c
Examining data/libwebp-0.6.1/src/dsp/yuv.h
Examining data/libwebp-0.6.1/src/dsp/yuv_mips32.c
Examining data/libwebp-0.6.1/src/dsp/yuv_mips_dsp_r2.c
Examining data/libwebp-0.6.1/src/dsp/yuv_neon.c
Examining data/libwebp-0.6.1/src/dsp/yuv_sse2.c
Examining data/libwebp-0.6.1/src/dsp/alpha_processing.c
Examining data/libwebp-0.6.1/src/dsp/alpha_processing_mips_dsp_r2.c
Examining data/libwebp-0.6.1/src/dsp/dsp.h
Examining data/libwebp-0.6.1/src/enc/alpha_enc.c
Examining data/libwebp-0.6.1/src/enc/analysis_enc.c
Examining data/libwebp-0.6.1/src/enc/backward_references_cost_enc.c
Examining data/libwebp-0.6.1/src/enc/backward_references_enc.c
Examining data/libwebp-0.6.1/src/enc/backward_references_enc.h
Examining data/libwebp-0.6.1/src/enc/config_enc.c
Examining data/libwebp-0.6.1/src/enc/cost_enc.c
Examining data/libwebp-0.6.1/src/enc/cost_enc.h
Examining data/libwebp-0.6.1/src/enc/delta_palettization_enc.c
Examining data/libwebp-0.6.1/src/enc/delta_palettization_enc.h
Examining data/libwebp-0.6.1/src/enc/filter_enc.c
Examining data/libwebp-0.6.1/src/enc/frame_enc.c
Examining data/libwebp-0.6.1/src/enc/histogram_enc.c
Examining data/libwebp-0.6.1/src/enc/histogram_enc.h
Examining data/libwebp-0.6.1/src/enc/iterator_enc.c
Examining data/libwebp-0.6.1/src/enc/near_lossless_enc.c
Examining data/libwebp-0.6.1/src/enc/picture_enc.c
Examining data/libwebp-0.6.1/src/enc/picture_psnr_enc.c
Examining data/libwebp-0.6.1/src/enc/picture_rescale_enc.c
Examining data/libwebp-0.6.1/src/enc/picture_tools_enc.c
Examining data/libwebp-0.6.1/src/enc/predictor_enc.c
Examining data/libwebp-0.6.1/src/enc/quant_enc.c
Examining data/libwebp-0.6.1/src/enc/syntax_enc.c
Examining data/libwebp-0.6.1/src/enc/token_enc.c
Examining data/libwebp-0.6.1/src/enc/tree_enc.c
Examining data/libwebp-0.6.1/src/enc/vp8i_enc.h
Examining data/libwebp-0.6.1/src/enc/vp8l_enc.c
Examining data/libwebp-0.6.1/src/enc/vp8li_enc.h
Examining data/libwebp-0.6.1/src/enc/webp_enc.c
Examining data/libwebp-0.6.1/src/enc/picture_csp_enc.c
Examining data/libwebp-0.6.1/src/mux/anim_encode.c
Examining data/libwebp-0.6.1/src/mux/animi.h
Examining data/libwebp-0.6.1/src/mux/muxedit.c
Examining data/libwebp-0.6.1/src/mux/muxi.h
Examining data/libwebp-0.6.1/src/mux/muxinternal.c
Examining data/libwebp-0.6.1/src/mux/muxread.c
Examining data/libwebp-0.6.1/src/utils/bit_reader_inl_utils.h
Examining data/libwebp-0.6.1/src/utils/bit_reader_utils.c
Examining data/libwebp-0.6.1/src/utils/bit_reader_utils.h
Examining data/libwebp-0.6.1/src/utils/bit_writer_utils.c
Examining data/libwebp-0.6.1/src/utils/bit_writer_utils.h
Examining data/libwebp-0.6.1/src/utils/color_cache_utils.c
Examining data/libwebp-0.6.1/src/utils/color_cache_utils.h
Examining data/libwebp-0.6.1/src/utils/filters_utils.c
Examining data/libwebp-0.6.1/src/utils/filters_utils.h
Examining data/libwebp-0.6.1/src/utils/huffman_encode_utils.c
Examining data/libwebp-0.6.1/src/utils/huffman_encode_utils.h
Examining data/libwebp-0.6.1/src/utils/huffman_utils.c
Examining data/libwebp-0.6.1/src/utils/huffman_utils.h
Examining data/libwebp-0.6.1/src/utils/quant_levels_dec_utils.c
Examining data/libwebp-0.6.1/src/utils/quant_levels_dec_utils.h
Examining data/libwebp-0.6.1/src/utils/quant_levels_utils.c
Examining data/libwebp-0.6.1/src/utils/quant_levels_utils.h
Examining data/libwebp-0.6.1/src/utils/random_utils.c
Examining data/libwebp-0.6.1/src/utils/random_utils.h
Examining data/libwebp-0.6.1/src/utils/rescaler_utils.c
Examining data/libwebp-0.6.1/src/utils/rescaler_utils.h
Examining data/libwebp-0.6.1/src/utils/thread_utils.c
Examining data/libwebp-0.6.1/src/utils/thread_utils.h
Examining data/libwebp-0.6.1/src/utils/utils.c
Examining data/libwebp-0.6.1/src/utils/utils.h
Examining data/libwebp-0.6.1/src/utils/endian_inl_utils.h
Examining data/libwebp-0.6.1/src/webp/decode.h
Examining data/libwebp-0.6.1/src/webp/demux.h
Examining data/libwebp-0.6.1/src/webp/encode.h
Examining data/libwebp-0.6.1/src/webp/format_constants.h
Examining data/libwebp-0.6.1/src/webp/mux.h
Examining data/libwebp-0.6.1/src/webp/mux_types.h
Examining data/libwebp-0.6.1/src/webp/types.h
Examining data/libwebp-0.6.1/swig/libwebp_gc.c
Examining data/libwebp-0.6.1/swig/libwebp_go_wrap.c
Examining data/libwebp-0.6.1/swig/libwebp_java_wrap.c
Examining data/libwebp-0.6.1/swig/libwebp_python_wrap.c

FINAL RESULTS:

data/libwebp-0.6.1/examples/anim_diff.c:25:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libwebp-0.6.1/examples/anim_diff.c:25:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libwebp-0.6.1/examples/anim_diff.c:161:19:  [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.
      ok = ok && (snprintf(tmp, sizeof(tmp), format, i) >= 0);
data/libwebp-0.6.1/examples/anim_dump.c:22:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libwebp-0.6.1/examples/anim_dump.c:22:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libwebp-0.6.1/examples/anim_util.c:28:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libwebp-0.6.1/examples/anim_util.c:28:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libwebp-0.6.1/examples/dwebp.c:77:3:  [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("Usage: dwebp in_file [options] [-o out_file]\n\n"
data/libwebp-0.6.1/examples/vwebp.c:47:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libwebp-0.6.1/examples/vwebp.c:47:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libwebp-0.6.1/examples/webpinfo.c:28:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libwebp-0.6.1/examples/webpinfo.c:28:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libwebp-0.6.1/examples/webpmux.c:151:5:  [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, ERR_MSG);                                        \
data/libwebp-0.6.1/examples/webpmux.c:157:5:  [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, ERR_MSG, FORMAT_STR1, FORMAT_STR2);              \
data/libwebp-0.6.1/examples/webpmux.c:163:5:  [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, ERR_MSG);                                        \
data/libwebp-0.6.1/examples/webpmux.c:170:5:  [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, ERR_MSG, FORMAT_STR);                            \
data/libwebp-0.6.1/examples/webpmux.c:177:5:  [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, ERR_MSG, FORMAT_STR1, FORMAT_STR2);              \
data/libwebp-0.6.1/imageio/image_enc.c:47:23:  [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.
      if (FAILED(hr)) fprintf(stderr, #fn " failed %08lx\n", hr);   \
data/libwebp-0.6.1/imageio/pnmdec.c:111:26:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      if (out_size > 20) sprintf(out + 20 - strlen(kEllipsis), kEllipsis);
data/libwebp-0.6.1/imageio/wicdec.c:43:23:  [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.
      if (FAILED(hr)) fprintf(stderr, #fn " failed %08lx\n", hr);   \
data/libwebp-0.6.1/src/mux/anim_encode.c:27:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libwebp-0.6.1/src/mux/anim_encode.c:27:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:662:3:  [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(r,name);
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:801:25:  [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 PyOS_snprintf _snprintf
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:803:25:  [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 PyOS_snprintf snprintf
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:820: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.
  res = vsnprintf(buf, sizeof(buf), fmt, ap);
data/libwebp-0.6.1/src/utils/thread_utils.c:110:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection(mutex);
data/libwebp-0.6.1/src/utils/thread_utils.c:116:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(mutex);
data/libwebp-0.6.1/src/utils/utils.c:95:46:  [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.
      const char* const malloc_fail_at_str = getenv("MALLOC_FAIL_AT");
data/libwebp-0.6.1/src/utils/utils.c:103:44:  [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.
      const char* const malloc_limit_str = getenv("MALLOC_LIMIT");
data/libwebp-0.6.1/examples/anim_diff.c:160:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tmp[sizeof(format) + 8];
data/libwebp-0.6.1/examples/anim_dump.c:82: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 out_file[1024];
data/libwebp-0.6.1/examples/anim_util.c:113:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dst, src, width * kNumChannels * height);
data/libwebp-0.6.1/examples/anim_util.c:127: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, src, width_in_bytes);
data/libwebp-0.6.1/examples/anim_util.c:174:7:  [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).
  f = fopen(file_name, "wb");
data/libwebp-0.6.1/examples/anim_util.c:259: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(curr_rgba, frame_rgba,
data/libwebp-0.6.1/examples/cwebp.c:307:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE* const f = fopen(PGM_name, "wb");
data/libwebp-0.6.1/examples/cwebp.c:378:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int WriteMetadataChunk(FILE* const out, const char fourcc[4],
data/libwebp-0.6.1/examples/cwebp.c:978:57:  [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).
    out = use_stdout ? ImgIoUtilSetBinaryMode(stdout) : fopen(out_file, "wb");
data/libwebp-0.6.1/examples/gifdec.c:222: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((void*)(tmp + metadata->size),
data/libwebp-0.6.1/examples/vwebp.c:363: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 tmp[32];
data/libwebp-0.6.1/examples/webpinfo.c:125: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 kWebPChunkTags[CHUNK_TYPES][4] = {
data/libwebp-0.6.1/examples/webpinfo.c:933: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 error_message[50];
data/libwebp-0.6.1/examples/webpmux.c:405:40:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE* fout = strcmp(filename, "-") ? fopen(filename, "wb")
data/libwebp-0.6.1/extras/extras.c:39: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(pic->y + y * pic->y_stride, gray_data, width);
data/libwebp-0.6.1/imageio/image_enc.c:560:25:  [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).
                      : fopen(out_file_name, "wb");
data/libwebp-0.6.1/imageio/imageio_util.c:82:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  in = fopen(file_name, "rb");
data/libwebp-0.6.1/imageio/imageio_util.c:115:54:  [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).
  out = to_stdout ? ImgIoUtilSetBinaryMode(stdout) : fopen(file_name, "wb");
data/libwebp-0.6.1/imageio/imageio_util.c:130: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, src, width * sizeof(*dst));
data/libwebp-0.6.1/imageio/jpegdec.c:140:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(iccp->bytes + offset,
data/libwebp-0.6.1/imageio/metadata.c:45:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(payload->bytes, metadata, metadata_len);
data/libwebp-0.6.1/imageio/pngdec.c:55: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 val[3];
data/libwebp-0.6.1/imageio/pngdec.c:203:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(data, ctx->data + ctx->offset, length);
data/libwebp-0.6.1/imageio/pnmdec.c:50:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 out[MAX_LINE_SIZE + 1], size_t* const out_size) {
data/libwebp-0.6.1/imageio/pnmdec.c:74:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char out[MAX_LINE_SIZE + 1];
data/libwebp-0.6.1/imageio/pnmdec.c:137:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char out[MAX_LINE_SIZE + 1];
data/libwebp-0.6.1/imageio/pnmdec.c:233:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp_rgb, data + offset, 3 * info.width * sizeof(*data));
data/libwebp-0.6.1/imageio/pnmdec.c:235:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp_rgb, data + offset, 4 * info.width * sizeof(*data));
data/libwebp-0.6.1/imageio/tiffdec.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(dst, my_data->data + my_data->pos, size);
data/libwebp-0.6.1/imageio/wicdec.c:97:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(image_mem, data, data_size);
data/libwebp-0.6.1/src/dec/alpha_dec.c:130: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, deltas, width * sizeof(*dst));
data/libwebp-0.6.1/src/dec/frame_dec.c:40:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dst, src, 4);
data/libwebp-0.6.1/src/dec/frame_dec.c:124:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(y_dst - BPS, top_yuv[0].y, 16);
data/libwebp-0.6.1/src/dec/frame_dec.c:125:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(u_dst - BPS, top_yuv[0].u, 8);
data/libwebp-0.6.1/src/dec/frame_dec.c:126:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(v_dst - BPS, top_yuv[0].v, 8);
data/libwebp-0.6.1/src/dec/frame_dec.c:137: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(top_right, top_yuv[1].y, sizeof(*top_right));
data/libwebp-0.6.1/src/dec/frame_dec.c:170: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(top_yuv[0].y, y_dst + 15 * BPS, 16);
data/libwebp-0.6.1/src/dec/frame_dec.c:171: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(top_yuv[0].u, u_dst +  7 * BPS,  8);
data/libwebp-0.6.1/src/dec/frame_dec.c:172: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(top_yuv[0].v, v_dst +  7 * BPS,  8);
data/libwebp-0.6.1/src/dec/frame_dec.c:183:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(y_out + j * dec->cache_y_stride_, y_dst + j * BPS, 16);
data/libwebp-0.6.1/src/dec/frame_dec.c:186:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(u_out + j * dec->cache_uv_stride_, u_dst + j * BPS, 8);
data/libwebp-0.6.1/src/dec/frame_dec.c:187:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(v_out + j * dec->cache_uv_stride_, v_dst + j * BPS, 8);
data/libwebp-0.6.1/src/dec/frame_dec.c:488:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(dec->cache_y_ - ysize, ydst + 16 * dec->cache_y_stride_, ysize);
data/libwebp-0.6.1/src/dec/frame_dec.c:489:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(dec->cache_u_ - uvsize, udst + 8 * dec->cache_uv_stride_, uvsize);
data/libwebp-0.6.1/src/dec/frame_dec.c:490:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(dec->cache_v_ - uvsize, vdst + 8 * dec->cache_uv_stride_, uvsize);
data/libwebp-0.6.1/src/dec/idec_dec.c:188: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(new_buf, old_base, current_size);
data/libwebp-0.6.1/src/dec/idec_dec.c:196:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(mem->buf_ + mem->end_, data, data_size);
data/libwebp-0.6.1/src/dec/idec_dec.c:387: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(part0_buf, br->buf_, part_size);
data/libwebp-0.6.1/src/dec/io_dec.c:37: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(y_dst + j * buf->y_stride, io->y + j * io->y_stride, mb_w);
data/libwebp-0.6.1/src/dec/io_dec.c:40: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(u_dst + j * buf->u_stride, io->u + j * io->uv_stride, uv_w);
data/libwebp-0.6.1/src/dec/io_dec.c:41: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(v_dst + j * buf->v_stride, io->v + j * io->uv_stride, uv_w);
data/libwebp-0.6.1/src/dec/io_dec.c:102: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->tmp_y, cur_y, mb_w * sizeof(*p->tmp_y));
data/libwebp-0.6.1/src/dec/io_dec.c:103: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->tmp_u, cur_u, uv_w * sizeof(*p->tmp_u));
data/libwebp-0.6.1/src/dec/io_dec.c:104: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->tmp_v, cur_v, uv_w * sizeof(*p->tmp_v));
data/libwebp-0.6.1/src/dec/io_dec.c:142:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(dst, alpha, mb_w * sizeof(*dst));
data/libwebp-0.6.1/src/dec/tree_dec.c:345:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(modes, top, 4 * sizeof(*top));
data/libwebp-0.6.1/src/dec/vp8l_dec.c:728: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(rows_out, rows_in, cache_pixs * sizeof(*rows_out));
data/libwebp-0.6.1/src/dec/vp8l_dec.c:887: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(&pattern, src, sizeof(uint16_t));
data/libwebp-0.6.1/src/dec/vp8l_dec.c:897:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&pattern, src, sizeof(uint32_t));
data/libwebp-0.6.1/src/dec/vp8l_dec.c:908: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, src, length * sizeof(*dst));
data/libwebp-0.6.1/src/dec/vp8l_dec.c:947: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, src, length * sizeof(*dst));
data/libwebp-0.6.1/src/demux/anim_decode.c:171:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dst, src, (size_t)size);
data/libwebp-0.6.1/src/demux/demux.c:890:60:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int ChunkCount(const WebPDemuxer* const dmux, const char fourcc[4]) {
data/libwebp-0.6.1/src/demux/demux.c:902:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 fourcc[4], int chunk_num) {
data/libwebp-0.6.1/src/demux/demux.c:914:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int SetChunk(const char fourcc[4], int chunk_num,
data/libwebp-0.6.1/src/demux/demux.c:937:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                      const char fourcc[4], int chunk_num,
data/libwebp-0.6.1/src/dsp/cpu.c:190: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 line[200];
data/libwebp-0.6.1/src/dsp/cpu.c:191:27:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* const cpuinfo = fopen("/proc/cpuinfo", "r");
data/libwebp-0.6.1/src/dsp/dec.c:196: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 + j * BPS, dst - BPS, 16);
data/libwebp-0.6.1/src/dsp/dec.c:266: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 * BPS, vals, sizeof(vals));
data/libwebp-0.6.1/src/dsp/dec.c:425: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 + j * BPS, dst - BPS, 8);
data/libwebp-0.6.1/src/dsp/enc.c:242:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    for (j = 0; j < size; ++j) memcpy(dst + j * BPS, top, size);
data/libwebp-0.6.1/src/dsp/enc.c:360: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 * BPS, vals, 4);
data/libwebp-0.6.1/src/dsp/enc.c:695: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, src, w);
data/libwebp-0.6.1/src/dsp/enc_mips_dsp_r2.c:374:34:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    for (j = 0; j < (SIZE); ++j) memcpy((DST) + j * BPS, (TOP), (SIZE));       \
data/libwebp-0.6.1/src/dsp/lossless.c:389: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(out - width, out + (row_end - row_start - 1) * width,
data/libwebp-0.6.1/src/dsp/lossless.c:505: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, src, num_pixels * sizeof(*src));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:334: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:337: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, temp, length * 3 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:340: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:343: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, temp, length * 3 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:361: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:364: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, temp, length * 3 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:367: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:370: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, temp, length * 3 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:389: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:392: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, temp, length * 4 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:395: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:398: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, temp, length * 4 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:417: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:420: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, temp, length * 4 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:423: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:426: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, temp, length * 4 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:445: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:448: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, temp, length * 4 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:451: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:454: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, temp, length * 4 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:475: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:481: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, temp, length * 2 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:484: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:490: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, temp, length * 2 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:511: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:517: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, temp, length * 2 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:520: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(temp, y, length * sizeof(*temp));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:526: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, temp, length * 2 * sizeof(*dst));
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:608: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(&temp_u[ 0], top_u, 17 * sizeof(uint8_t));                    \
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:609: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(&temp_u[32], cur_u, 17 * sizeof(uint8_t));                    \
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:610: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(&temp_v[ 0], top_v, 17 * sizeof(uint8_t));                    \
data/libwebp-0.6.1/src/dsp/upsampling_msa.c:611: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(&temp_v[32], cur_v, 17 * sizeof(uint8_t));                    \
data/libwebp-0.6.1/src/dsp/upsampling_neon.c:68:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(r1, (tb), (num_pixels));                                       \
data/libwebp-0.6.1/src/dsp/upsampling_neon.c:69:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(r2, (bb), (num_pixels));                                       \
data/libwebp-0.6.1/src/dsp/upsampling_sse2.c:98:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(r1, (tb), (num_pixels));                                              \
data/libwebp-0.6.1/src/dsp/upsampling_sse2.c:99:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(r2, (bb), (num_pixels));                                              \
data/libwebp-0.6.1/src/enc/delta_palettization_enc.c:436:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(enc->palette_, kDeltaPalette, sizeof(kDeltaPalette));
data/libwebp-0.6.1/src/enc/filter_enc.c:95:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(y_dst, it->yuv_out_, YUV_SIZE_ENC * sizeof(uint8_t));
data/libwebp-0.6.1/src/enc/histogram_enc.c:56:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dst, src, histo_size);
data/libwebp-0.6.1/src/enc/iterator_enc.c:104: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, src, w);
data/libwebp-0.6.1/src/enc/iterator_enc.c:112: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, dst - BPS, size);
data/libwebp-0.6.1/src/enc/iterator_enc.c:175: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, src, w);
data/libwebp-0.6.1/src/enc/iterator_enc.c:303: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(it->y_top_, ysrc + 15 * BPS, 16);
data/libwebp-0.6.1/src/enc/iterator_enc.c:304: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(it->uv_top_, uvsrc + 7 * BPS, 8 + 8);
data/libwebp-0.6.1/src/enc/iterator_enc.c:338: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(preds, modes, 4 * sizeof(*modes));
data/libwebp-0.6.1/src/enc/near_lossless_enc.c:82:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(curr_row, argb_src, xsize * sizeof(argb_src[0]));
data/libwebp-0.6.1/src/enc/near_lossless_enc.c:83:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(next_row, argb_src + stride, xsize * sizeof(argb_src[0]));
data/libwebp-0.6.1/src/enc/near_lossless_enc.c:87:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(argb_dst, argb_src, xsize * sizeof(argb_src[0]));
data/libwebp-0.6.1/src/enc/near_lossless_enc.c:89:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(next_row, argb_src + stride, xsize * sizeof(argb_src[0]));
data/libwebp-0.6.1/src/enc/near_lossless_enc.c:130:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(argb_dst + i * xsize, picture->argb + i * picture->argb_stride,
data/libwebp-0.6.1/src/enc/picture_csp_enc.c:487:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(src2, src1, 3 * w * sizeof(*src2));
data/libwebp-0.6.1/src/enc/picture_csp_enc.c:495: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_uv, target_uv, 3 * uv_w * sizeof(*best_uv));
data/libwebp-0.6.1/src/enc/picture_csp_enc.c:1115: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, rgb, width * 4);
data/libwebp-0.6.1/src/enc/picture_enc.c:204:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(new_mem, w->mem, w->size);
data/libwebp-0.6.1/src/enc/picture_enc.c:212: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(w->mem + w->size, data, data_size);
data/libwebp-0.6.1/src/enc/predictor_enc.c:352:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(current_row + context_start_x,
data/libwebp-0.6.1/src/enc/predictor_enc.c:366:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(current_row + context_start_x,
data/libwebp-0.6.1/src/enc/predictor_enc.c:434: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(current_row, argb + y * width,
data/libwebp-0.6.1/src/enc/quant_enc.c:951: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(rd, rd_best, sizeof(*rd));
data/libwebp-0.6.1/src/enc/tree_enc.c:160:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(probas->coeffs_, VP8CoeffsProba0, sizeof(VP8CoeffsProba0));
data/libwebp-0.6.1/src/enc/vp8l_enc.c:1260: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(enc->argb_ + y * width,
data/libwebp-0.6.1/src/enc/vp8l_enc.c:1325:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(sorted, palette, num_colors * sizeof(*sorted));
data/libwebp-0.6.1/src/enc/vp8l_enc.c:1817: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(enc_side->palette_, enc_main->palette_,
data/libwebp-0.6.1/src/enc/vp8l_enc.c:1862: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(picture->stats, &stats_side, sizeof(*picture->stats));
data/libwebp-0.6.1/src/mux/anim_encode.c:100:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char error_str_[ERROR_STR_MAX_LENGTH];  // Error string. Empty if no error.
data/libwebp-0.6.1/src/mux/muxedit.c:178:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
WebPMuxError WebPMuxSetChunk(WebPMux* mux, const char fourcc[4],
data/libwebp-0.6.1/src/mux/muxedit.c:377:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
WebPMuxError WebPMuxDeleteChunk(WebPMux* mux, const char fourcc[4]) {
data/libwebp-0.6.1/src/mux/muxi.h:116:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
uint32_t ChunkGetTagFromFourCC(const char fourcc[4]);
data/libwebp-0.6.1/src/mux/muxi.h:119:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
CHUNK_INDEX ChunkGetIndexFromFourCC(const char fourcc[4]);
data/libwebp-0.6.1/src/mux/muxinternal.c:81:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
uint32_t ChunkGetTagFromFourCC(const char fourcc[4]) {
data/libwebp-0.6.1/src/mux/muxinternal.c:85:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
CHUNK_INDEX ChunkGetIndexFromFourCC(const char fourcc[4]) {
data/libwebp-0.6.1/src/mux/muxinternal.c:201:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dst + CHUNK_HEADER_SIZE, chunk->data_.bytes, chunk_size);
data/libwebp-0.6.1/src/mux/muxinternal.c:382:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dst + CHUNK_HEADER_SIZE, header->data_.bytes, header_size);
data/libwebp-0.6.1/src/mux/muxread.c:406:56:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
WebPMuxError WebPMuxGetChunk(const WebPMux* mux, const char fourcc[4],
data/libwebp-0.6.1/src/utils/bit_writer_utils.c:47: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(new_buf, bw->buf_, bw->pos_);
data/libwebp-0.6.1/src/utils/bit_writer_utils.c:186:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(bw->buf_ + bw->pos_, data, size);
data/libwebp-0.6.1/src/utils/bit_writer_utils.c:228: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(allocated_buf, bw->buf_, current_size);
data/libwebp-0.6.1/src/utils/bit_writer_utils.c:247:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dst->buf_, src->buf_, current_size);
data/libwebp-0.6.1/src/utils/color_cache_utils.c:47:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dst->colors_, src->colors_,
data/libwebp-0.6.1/src/utils/utils.c:97: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).
        countdown_to_fail = atoi(malloc_fail_at_str);
data/libwebp-0.6.1/src/utils/utils.c:105:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        mem_limit = atoi(malloc_limit_str);
data/libwebp-0.6.1/src/utils/utils.c:231: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, src, width);
data/libwebp-0.6.1/src/utils/utils.h:73:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(ptr, &val, sizeof(val));
data/libwebp-0.6.1/src/webp/demux.h:206:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 fourcc[4], int chunk_number,
data/libwebp-0.6.1/src/webp/mux.h:164: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.
    WebPMux* mux, const char fourcc[4], const WebPData* chunk_data,
data/libwebp-0.6.1/src/webp/mux.h:180:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 WebPMux* mux, const char fourcc[4], WebPData* chunk_data);
data/libwebp-0.6.1/src/webp/mux.h:193: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.
    WebPMux* mux, const char fourcc[4]);
data/libwebp-0.6.1/src/webp/mux_types.h:88: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((void*)dst->bytes, src->bytes, src->size);
data/libwebp-0.6.1/swig/libwebp_go_wrap.c:140:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define swiggo_size_assert_eq(x, y, name) typedef char name[(x-y)*(x-y)*-2+1];
data/libwebp-0.6.1/swig/libwebp_go_wrap.c:185:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(ret.p, p, l);
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:613:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char hex[17] = "0123456789abcdef";
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:773:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(newstr, cstr, len+1);
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:817:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[SWIG_PYBUFFER_SIZE * 2];
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:1593:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char result[SWIG_BUFFER_SIZE];
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:1980:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char result[SWIG_BUFFER_SIZE];
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:1994:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char result[SWIG_BUFFER_SIZE];
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:2005:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char result[SWIG_BUFFER_SIZE];
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:2139:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(pack, ptr, size);
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:2157: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(ptr, sobj->pack, size);
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:2781: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 mesg[256];
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:3021:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
data/libwebp-0.6.1/examples/anim_util.c:163: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).
  max_len = strlen(dump_folder) + 1 + strlen(base_name)
data/libwebp-0.6.1/examples/anim_util.c:163:39:  [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).
  max_len = strlen(dump_folder) + 1 + strlen(base_name)
data/libwebp-0.6.1/examples/anim_util.c:164: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).
          + strlen("_frame_") + strlen(".pam") + 8;
data/libwebp-0.6.1/examples/anim_util.c:164: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).
          + strlen("_frame_") + strlen(".pam") + 8;
data/libwebp-0.6.1/examples/cwebp.c:863:39:  [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).
      const char* const end = start + strlen(start);
data/libwebp-0.6.1/examples/cwebp.c:871:42:  [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 ((size_t)(token - start) == strlen(kTokens[i].option) &&
data/libwebp-0.6.1/examples/cwebp.c:872:50:  [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).
              !strncmp(start, kTokens[i].option, strlen(kTokens[i].option))) {
data/libwebp-0.6.1/examples/gif2webp.c:185:39:  [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).
      const char* const end = start + strlen(start);
data/libwebp-0.6.1/examples/gif2webp.c:194:42:  [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 ((size_t)(token - start) == strlen(kTokens[i].option) &&
data/libwebp-0.6.1/examples/gif2webp.c:195:50:  [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).
              !strncmp(start, kTokens[i].option, strlen(kTokens[i].option))) {
data/libwebp-0.6.1/imageio/pnmdec.c:111:45:  [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 (out_size > 20) sprintf(out + 20 - strlen(kEllipsis), kEllipsis);
data/libwebp-0.6.1/imageio/pnmdec.c:112: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).
      for (i = 0; i < (int)strlen(out); ++i) {
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:366:25:  [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).
  const char* te = tb + strlen(tb);
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:385:25:  [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).
  const char* te = tb + strlen(tb);
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:661:7:  [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(name) + 1 > (bsz - (r - buff))) return 0;
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:682:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t lname = (name ? strlen(name) : 0);
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:687:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:854:91:  [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).
#  define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:3046:37:  [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 (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:5163: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_t size = strlen(name)+1;
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:5166:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(gv->name,name,size);
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:5228:15:  [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(const_table[j].name)) == 0) {
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:5239: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 lptr = strlen(ty->name)+2*sizeof(void*)+2;
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:5243:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              strncpy(buff, methods[i].ml_doc, ldoc);
data/libwebp-0.6.1/swig/libwebp_python_wrap.c:5245:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
              strncpy(buff, "swig_ptr: ", 10);

ANALYSIS SUMMARY:

Hits = 233
Lines analyzed = 85360 in approximately 2.26 seconds (37735 lines/second)
Physical Source Lines of Code (SLOC) = 66015
Hits@level = [0] 690 [1]  25 [2] 178 [3]   4 [4]  26 [5]   0
Hits@level+ = [0+] 923 [1+] 233 [2+] 208 [3+]  30 [4+]  26 [5+]   0
Hits/KSLOC@level+ = [0+] 13.9817 [1+] 3.5295 [2+] 3.1508 [3+] 0.454442 [4+] 0.39385 [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.