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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/mkg3states.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/t4.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_aux.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_close.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_codec.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_color.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_compress.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_config.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_config.vc.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_config.wince.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dir.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dir.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirinfo.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirread.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dumpmode.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_error.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_extension.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_fax3.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_fax3.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_fax3sm.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_flush.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_jbig.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_jpeg.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_jpeg_12.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_luv.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_lzma.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_lzw.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_next.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_ojpeg.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_open.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_packbits.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_pixarlog.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_predict.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_predict.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_print.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_read.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_stream.cxx Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_strip.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_swab.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_thunder.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_tile.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_unix.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_version.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_warning.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_win32.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_write.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_zip.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tiff.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tiffconf.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tiffconf.vc.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tiffconf.wince.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tiffio.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tiffiop.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tiffvers.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/uvcode.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/dummy.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/getopt.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/lfind.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/libport.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/snprintf.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/strcasecmp.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/strtoul.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/strtoull.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/alpha_dec.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/alphai_dec.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/buffer_dec.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/common_dec.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/frame_dec.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/idec_dec.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/io_dec.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/quant_dec.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/tree_dec.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/vp8_dec.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/vp8_dec.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/vp8i_dec.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/vp8l_dec.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/vp8li_dec.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/webp_dec.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/webpi_dec.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/demux/anim_decode.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/demux/demux.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/alpha_processing.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/alpha_processing_mips_dsp_r2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/alpha_processing_neon.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/alpha_processing_sse2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/alpha_processing_sse41.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/common_sse2.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/common_sse41.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/cost.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/cost_mips32.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/cost_mips_dsp_r2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/cost_neon.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/cost_sse2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/cpu.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/dec.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/dec_clip_tables.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/dec_mips32.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/dec_mips_dsp_r2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/dec_msa.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/dec_neon.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/dec_sse2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/dec_sse41.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/dsp.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/enc_mips32.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/enc_mips_dsp_r2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/enc_msa.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/enc_neon.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/enc_sse2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/enc_sse41.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/filters.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/filters_mips_dsp_r2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/filters_msa.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/filters_neon.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/filters_sse2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless_common.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless_enc_mips32.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless_enc_mips_dsp_r2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless_enc_msa.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless_enc_neon.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless_enc_sse2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless_enc_sse41.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless_mips_dsp_r2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless_msa.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless_neon.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless_sse2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/mips_macro.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/msa_macro.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/neon.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/quant.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/rescaler.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/rescaler_mips32.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/rescaler_mips_dsp_r2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/rescaler_msa.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/rescaler_neon.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/rescaler_sse2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/ssim.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/ssim_sse2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_mips_dsp_r2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_neon.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_sse2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_sse41.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/yuv.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/yuv.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/yuv_mips32.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/yuv_mips_dsp_r2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/yuv_neon.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/yuv_sse2.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/yuv_sse41.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/alpha_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/analysis_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/backward_references_cost_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/backward_references_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/backward_references_enc.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/config_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/cost_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/cost_enc.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/filter_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/frame_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/histogram_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/histogram_enc.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/iterator_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/near_lossless_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/picture_csp_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/picture_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/picture_psnr_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/picture_rescale_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/picture_tools_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/predictor_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/quant_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/syntax_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/token_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/tree_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/vp8i_enc.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/vp8l_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/vp8li_enc.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/webp_enc.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/mux/anim_encode.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/mux/animi.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/mux/muxedit.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/mux/muxi.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/mux/muxinternal.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/mux/muxread.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/bit_reader_inl_utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/bit_reader_utils.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/bit_reader_utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/bit_writer_utils.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/bit_writer_utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/color_cache_utils.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/color_cache_utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/endian_inl_utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/filters_utils.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/filters_utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/huffman_encode_utils.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/huffman_encode_utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/huffman_utils.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/huffman_utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/quant_levels_dec_utils.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/quant_levels_dec_utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/quant_levels_utils.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/quant_levels_utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/random_utils.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/random_utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/rescaler_utils.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/rescaler_utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/thread_utils.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/thread_utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/utils.c Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/utils.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/webp/config.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/webp/decode.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/webp/demux.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/webp/encode.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/webp/format_constants.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/webp/mux.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/webp/mux_types.h Examining data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/webp/types.h Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/dds/ddsheader.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/dds/ddsheader.h Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/dds/main.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/dds/qddshandler.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/dds/qddshandler.h Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/icns/main.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/icns/qicnshandler.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/icns/qicnshandler_p.h Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/jp2/main.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/jp2/qjp2handler.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/jp2/qjp2handler_p.h Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/macheif/main.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/macheif/qmacheifhandler.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/macheif/qmacheifhandler.h Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/macjp2/main.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/macjp2/qmacjp2handler.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/macjp2/qmacjp2handler.h Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/mng/main.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/mng/qmnghandler.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/mng/qmnghandler_p.h Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/shared/qiiofhelpers.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/shared/qiiofhelpers_p.h Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tga/main.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tga/qtgafile.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tga/qtgafile.h Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tga/qtgahandler.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tga/qtgahandler.h Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tiff/main.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tiff/qtiffhandler.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tiff/qtiffhandler_p.h Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/wbmp/main.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/wbmp/qwbmphandler.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/wbmp/qwbmphandler_p.h Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/webp/main.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/webp/qwebphandler.cpp Examining data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/webp/qwebphandler_p.h Examining data/qtimageformats-opensource-src-5.15.2/tests/auto/dds/tst_qdds.cpp Examining data/qtimageformats-opensource-src-5.15.2/tests/auto/heif/tst_qheif.cpp Examining data/qtimageformats-opensource-src-5.15.2/tests/auto/icns/tst_qicns.cpp Examining data/qtimageformats-opensource-src-5.15.2/tests/auto/jp2/tst_qjp2.cpp Examining data/qtimageformats-opensource-src-5.15.2/tests/auto/mng/tst_qmng.cpp Examining data/qtimageformats-opensource-src-5.15.2/tests/auto/tga/tst_qtga.cpp Examining data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp Examining data/qtimageformats-opensource-src-5.15.2/tests/auto/wbmp/tst_qwbmp.cpp Examining data/qtimageformats-opensource-src-5.15.2/tests/auto/webp/tst_qwebp.cpp Examining data/qtimageformats-opensource-src-5.15.2/tests/benchmarks/mng/tst_qmng.cpp Examining data/qtimageformats-opensource-src-5.15.2/tests/benchmarks/tiff/tst_qtiff.cpp FINAL RESULTS: data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_compress.c:209: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(cd->info->name, name); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_config.h:150:13: [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. #if defined(snprintf) || (!defined(_MSC_VER) || _MSC_VER >= 1900) data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_config.vc.h:109: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_config.vc.h:109: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_extension.c:105: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(psLink->name, name); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:110:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Missing needed %s tag", photoTag); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:121:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:145:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Sorry, can not handle RGB image with %s=%d", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:155:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:161:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:170:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Sorry, LogL data must have %s=%d", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:178:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Sorry, LogLuv data must have %s=%d or %d", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:183:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Sorry, can not handle LogLuv images with %s=%d", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:188:33: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:197:33: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:206:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Sorry, can not handle image with %s=%d", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:354:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Missing needed %s tag", photoTag); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:386:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:423:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Sorry, can not handle RGB image with %s=%d", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:433:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Sorry, can not handle separated image with %s=%d", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:438:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Sorry, can not handle separated image with %s=%d", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:446:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Sorry, LogL data must have %s=%d", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:456:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Sorry, LogLuv data must have %s=%d or %d", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:461:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Sorry, can not handle LogLuv images with %s=%d", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:472:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(emsg, "Sorry, can not handle image with %s=%d", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_ojpeg.c:625:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fd," " TIFF_UINT64_FORMAT,(TIFF_UINT64_T)sp->qtable_offset[m]); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_ojpeg.c:632:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fd," " TIFF_UINT64_FORMAT,(TIFF_UINT64_T)sp->dctable_offset[m]); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_ojpeg.c:639:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fd," " TIFF_UINT64_FORMAT,(TIFF_UINT64_T)sp->actable_offset[m]); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_open.c:124:2: [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(tif->tif_name, name); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_unix.c:361:2: [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. vfprintf(stderr, fmt, ap); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_unix.c:371:2: [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. vfprintf(stderr, fmt, ap); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_win32.c:402:11: [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 _vsnprintf data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_win32.c:411:2: [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. vfprintf(stderr, fmt, ap); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_win32.c:421:2: [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. vfprintf(stderr, fmt, ap); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tiffiop.h:59:8: [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. #undef snprintf data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tiffiop.h:60: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 _TIFF_snprintf_f data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tiffiop.h:61:12: [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. extern int snprintf(char* str, size_t size, const char* format, ...); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/libport.h:59:8: [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. #undef vsnprintf data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/libport.h:60: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 _TIFF_vsnprintf_f data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/libport.h:62:8: [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. #undef snprintf data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/libport.h:63: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 _TIFF_snprintf_f data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/libport.h:64:5: [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. int snprintf(char* str, size_t size, const char* format, ...); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/snprintf.c:36:11: [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. count = vsnprintf(str, size, format, ap); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/mkg3states.c:43: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 *optstring); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/mkg3states.c:390:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "c:s:bp")) != -1) data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirread.c:5665:24: [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* pszMax = getenv("LIBTIFF_STRILE_ARRAY_MAX_RESIZE_COUNT"); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_jpeg.c:384:38: [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. sz_max_allowed_scan_number = getenv("LIBTIFF_JPEG_MAX_ALLOWED_SCAN_NUMBER"); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_jpeg.c:1223:17: [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. getenv("LIBTIFF_ALLOW_LARGE_LIBJPEG_MEM_ALLOC") == NULL ) data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_jpeg.c:2460:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("JPEGMEM") == NULL) data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/getopt.c:54: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(int argc, char * const argv[], const char *optstring) data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/port/libport.h:27:5: [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. int getopt(int argc, char * const argv[], const char *optstring); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/thread_utils.c:110:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(mutex); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/mkg3states.c:412:10: [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). fd = fopen(outputfile, "w"); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_codec.c:115: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 compression_code[20]; data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_codec.c:117: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(compression_code, "%d",tif->tif_dir.td_compression ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirread.c:4129: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(new_sampleinfo, tif->tif_dir.td_sampleinfo, old_extrasamples * sizeof(uint16)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirread.c:5668: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). max_nstrips = (uint32) atoi(pszMax); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirread.c:6021: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 buffer[2 * IO_CACHE_PAGE_SIZE]; data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:2913: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( &entry_tag, direntry_raw + 0, sizeof(uint16) ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:2934: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( &entry_type, direntry_raw + 2, sizeof(uint16) ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:2942: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( &value, direntry_raw + 4, sizeof(uint32) ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:2947: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( &value, direntry_raw + 8, sizeof(uint32) ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:2954: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( &entry_count, direntry_raw + 4, sizeof(uint64) ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:2958: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( &entry_offset, direntry_raw + 12, sizeof(uint64) ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:3051: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_to_write, data, count * TIFFDataWidth(datatype) ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:3199: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( &entry_offset, buf_to_write, count*TIFFDataWidth(datatype)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:3210: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( direntry_raw + 2, &entry_type, sizeof(uint16) ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:3219: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( direntry_raw + 4, &value, sizeof(uint32) ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:3224: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( direntry_raw + 8, &value, sizeof(uint32) ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:3230: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( direntry_raw + 4, &entry_count, sizeof(uint64) ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:3234: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( direntry_raw + 12, &entry_offset, sizeof(uint64) ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_fax3.c:789:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char zeroruns[256] = { data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_fax3.c:807:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char oneruns[256] = { data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:74:28: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. TIFFRGBAImageOK(TIFF* tif, char emsg[1024]) data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:81:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(emsg, "Sorry, requested compression method is not configured"); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:92:4: [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(emsg, "Sorry, can not handle images with %d-bit samples", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:97: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(emsg, "Sorry, can not handle images with IEEE floating-point samples"); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:265:61: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. TIFFRGBAImageBegin(TIFFRGBAImage* img, TIFF* tif, int stop, char emsg[1024]) data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:304:4: [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(emsg, "Sorry, can not handle images with %d-bit samples", data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:362: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(emsg, "Missing required \"Colormap\" tag"); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:372: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(emsg, "Out of memory for colormap copy"); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:483:4: [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(emsg, "Sorry, can not handle image"); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:488:4: [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(emsg, "Sorry, can not handle image"); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:523: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 emsg[1024] = ""; data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:2899: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 emsg[1024] = ""; data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_getimage.c:2957: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 emsg[1024] = ""; data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_jpeg.c:220:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 buffer[JMSG_LENGTH_MAX]; data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_jpeg.c:236:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 buffer[JMSG_LENGTH_MAX]; data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_jpeg.c:386:43: [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). sp->max_allowed_scan_number = atoi(sz_max_allowed_scan_number); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_jpeg.c:1455:59: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *) buf)[iValue] = data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_lzma.c:439:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&sp->stream, &tmp_stream, sizeof(lzma_stream)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_ojpeg.c:2534:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 buffer[JMSG_LENGTH_MAX]; data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_ojpeg.c:2542:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 buffer[JMSG_LENGTH_MAX]; data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_predict.c:728: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( working_copy, bp0, cc0 ); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_print.c:79:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 int) ((unsigned char *) raw_data)[j]); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_print.c:192: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. fputc(((char *)raw_data)[i], fd); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_swab.c:208:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char TIFFBitRevTable[256] = { data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_swab.c:242:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char TIFFNoBitRevTable[256] = { data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_unix.c:238:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(name, m, 0666); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_unix.c:346:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d, s, (size_t) c); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_win32.c:390:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d, s, (size_t) c); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/idec_dec.c:189:27: [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 (old_base != NULL) memcpy(new_buf, old_base, current_size); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/idec_dec.c:198: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/idec_dec.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(part0_buf, br->buf_, part_size); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/tree_dec.c:349: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/vp8l_dec.c:774: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/vp8l_dec.c:933: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/vp8l_dec.c:946: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/vp8l_dec.c:957: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dec/vp8l_dec.c:996: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless.c:392: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/lossless.c:508: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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(temp, y, length * sizeof(*temp)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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(dst, temp, length * 3 * sizeof(*dst)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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(temp, y, length * sizeof(*temp)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:346: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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(temp, y, length * sizeof(*temp)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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(dst, temp, length * 3 * sizeof(*dst)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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(temp, y, length * sizeof(*temp)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:373: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:393: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:396: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:399: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:402: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:421: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:424: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:427: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:430: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:450: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:453: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:456: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:459: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:480: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:486: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:489: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.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(dst, temp, length * 2 * sizeof(*dst)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:516: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:522: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:525: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:531: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:614: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:615: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:616: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_msa.c:617: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_sse2.c:155:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp_top, top_y + pos, len - pos); \ data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_sse2.c:156:27: [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 (bottom_y != NULL) memcpy(tmp_bottom, bottom_y + pos, len - pos); \ data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_sse2.c:159: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(top_dst + pos * (XSTEP), tmp_top_dst, (len - pos) * (XSTEP)); \ data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_sse2.c:161: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(bottom_dst + pos * (XSTEP), tmp_bottom_dst, \ data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_sse41.c:100: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_sse41.c:101: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_sse41.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(tmp_top, top_y + pos, len - pos); \ data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_sse41.c:158:27: [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 (bottom_y != NULL) memcpy(tmp_bottom, bottom_y + pos, len - pos); \ data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_sse41.c:161: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(top_dst + pos * (XSTEP), tmp_top_dst, (len - pos) * (XSTEP)); \ data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/dsp/upsampling_sse41.c:163: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(bottom_dst + pos * (XSTEP), tmp_bottom_dst, \ data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/histogram_enc.c:57: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/histogram_enc.c:59: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->literal_, src->literal_, literal_size * sizeof(*dst->literal_)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/iterator_enc.c:111: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/iterator_enc.c:119: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/iterator_enc.c:182: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/iterator_enc.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(it->y_top_, ysrc + 15 * BPS, 16); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/iterator_enc.c:311: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/iterator_enc.c:345: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/picture_csp_enc.c:498: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/picture_csp_enc.c:506: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/picture_csp_enc.c:1126: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/predictor_enc.c:354: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/predictor_enc.c:368: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/predictor_enc.c:436: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/quant_enc.c:1025: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/quant_enc.c:1180: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(rd->derr, rd_uv.derr, sizeof(rd_uv.derr)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/vp8l_enc.c:1263: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, src, width * sizeof(*dst)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/vp8l_enc.c:1329: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/vp8l_enc.c:1755: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/enc/vp8l_enc.c:1800: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/mux/muxi.h:117: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/mux/muxi.h:120: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/mux/muxinternal.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(dst + CHUNK_HEADER_SIZE, chunk->data_.bytes, chunk_size); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/mux/muxinternal.c:379: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/mux/muxread.c:425: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/utils.c:236: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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/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/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/dds/qddshandler.cpp:1348: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(dst, src, sizeof(QRgb) * dds.width); data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/icns/qicnshandler.cpp:419: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(table.data(), data, sizeof(QRgb) * n); data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/icns/qicnshandler.cpp:784:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!buffer.open(QIODevice::WriteOnly) || !img.save(&buffer, "png")) data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/macheif/qmacheifhandler.cpp:58:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[12]; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/macjp2/qmacjp2handler.cpp:72: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[12]; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tga/qtgafile.cpp:180: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 footer[FooterSize]; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tga/qtgafile.h:101: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 mHeader[HeaderSize]; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tiff/qtiffhandler.cpp:208: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 h[4]; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tiff/qtiffhandler.cpp:445:27: [2] (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->scanLine(y + i) + byteOffset, buf + (i * byteTileWidth), widthToCopy); data/qtimageformats-opensource-src-5.15.2/tests/auto/heif/tst_qheif.cpp:108:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buf1.open(QIODevice::WriteOnly); data/qtimageformats-opensource-src-5.15.2/tests/auto/heif/tst_qheif.cpp:114:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buf1.open(QIODevice::ReadOnly); data/qtimageformats-opensource-src-5.15.2/tests/auto/heif/tst_qheif.cpp:122:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buf2.open(QIODevice::WriteOnly); data/qtimageformats-opensource-src-5.15.2/tests/auto/heif/tst_qheif.cpp:132:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buf2.open(QIODevice::WriteOnly); data/qtimageformats-opensource-src-5.15.2/tests/auto/heif/tst_qheif.cpp:139:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buf2.open(QIODevice::ReadOnly); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:374:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(buf.open(QIODevice::WriteOnly)); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:383:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(buf.open(QIODevice::ReadOnly)); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:423:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(buf.open(QIODevice::WriteOnly)); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:429:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(buf.open(QIODevice::ReadOnly)); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:454:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). writeBuffer.open(QIODevice::WriteOnly); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:462:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). readBuffer.open(QIODevice::ReadOnly); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:540:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(buf.open(QIODevice::WriteOnly)); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:545:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(buf.open(QIODevice::ReadOnly)); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:662:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(buf.open(QIODevice::WriteOnly)); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:667:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(buf.open(QIODevice::ReadOnly)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_compress.c:203:69: [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). _TIFFmalloc((tmsize_t)(sizeof (codec_t) + sizeof (TIFFCodec) + strlen(name)+1)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dir.c:59:46: [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). { setByteArray((void**) cpp, (void*) cp, strlen(cp)+1, 1); } data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dir.c:584: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). ma=(uint32)(strlen(mb)+1); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_dirwrite.c:702: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). pa=(uint32)(strlen(pb)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_extension.c:103:52: [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). psLink->name = (char *) _TIFFmalloc((tmsize_t)(strlen(name)+1)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_open.c:117:55: [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). tif = (TIFF *)_TIFFmalloc((tmsize_t)(sizeof (TIFF) + strlen(name) + 1)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_print.c:680:34: [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). _TIFFprintAsciiBounded( fd, cp, strlen(cp)); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_stream.cxx:123:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). data->stream->read((char *) buf, request_size); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libtiff/libtiff/tif_unix.c:85:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count=read(fdh.fd, buf_offset, (TIFFIOSize_t) io_size); data/qtimageformats-opensource-src-5.15.2/src/3rdparty/libwebp/src/utils/bit_reader_utils.c:257: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). const int skip = 16 - (int)strlen(kLabels[i].label); data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/dds/qddshandler.cpp:1398:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QDDSHandler::read(QImage *outImage) data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/dds/qddshandler.h:57:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QImage *image) override; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/icns/qicnshandler.cpp:685:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QICNSHandler::read(QImage *outImage) data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/icns/qicnshandler.cpp:734:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). img = QImage::fromData(device()->read(icon.dataLength), format); data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/icns/qicnshandler_p.h:132:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QImage *image) override; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/jp2/qjp2handler.cpp:84:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QImage *pImage); data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/jp2/qjp2handler.cpp:239:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QJp2Handler::read(QImage *image) data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/jp2/qjp2handler.cpp:242:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return reader.read(image); data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/jp2/qjp2handler.cpp:352:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool Jpeg2000JasperReader::read(QImage *pImage) data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/jp2/qjp2handler_p.h:62:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QImage *image) override; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/macheif/qmacheifhandler.cpp:77:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QMacHeifHandler::read(QImage *image) data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/macheif/qmacheifhandler.h:61:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QImage *image) override; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/macjp2/qmacjp2handler.cpp:87:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QMacJp2Handler::read(QImage *image) data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/macjp2/qmacjp2handler.h:61:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QImage *image) override; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/mng/qmnghandler.cpp:235:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *pRead = q->device()->read((char *)pBuf, iSize); data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/mng/qmnghandler.cpp:406:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QMngHandler::read(QImage *image) data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/mng/qmnghandler_p.h:60:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QImage *image) override; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/shared/qiiofhelpers.cpp:57:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). qint64 res = dev->read(static_cast<char *>(buffer), qint64(count)); data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/shared/qiiofhelpers.cpp:73:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = dev->read(buf, count); data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tga/qtgafile.cpp:151:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (device->read(reinterpret_cast<char*>(mHeader), HeaderSize) != HeaderSize) { data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tga/qtgafile.cpp:181:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (mDevice->read(reinterpret_cast<char*>(footer), FooterSize) != FooterSize) { data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tga/qtgafile.cpp:259:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). im.setPixel(x, y, read(mDevice)); data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tga/qtgafile.cpp:265:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). im.setPixel(x, y, read(mDevice)); data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tga/qtgahandler.cpp:94:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QTgaHandler::read(QImage *image) data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tga/qtgahandler.h:56:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QImage *image) override; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tiff/qtiffhandler.cpp:57:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return device->isReadable() ? device->read(static_cast<char *>(buf), size) : -1; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tiff/qtiffhandler.cpp:344:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QTiffHandler::read(QImage *image) data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/tiff/qtiffhandler_p.h:55:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QImage *image) override; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/wbmp/qwbmphandler.cpp:114:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (iodev->read(reinterpret_cast<char *>(tmp), WBMPFIXEDHEADER_SIZE) == WBMPFIXEDHEADER_SIZE) { data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/wbmp/qwbmphandler.cpp:166:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (iodev->read(reinterpret_cast<char *>(image.scanLine(l)), bpl) != bpl) data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/wbmp/qwbmphandler.cpp:297:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QWbmpHandler::read(QImage *image) data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/wbmp/qwbmphandler_p.h:67:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QImage *image) override; data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/webp/qwebphandler.cpp:160:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QWebpHandler::read(QImage *image) data/qtimageformats-opensource-src-5.15.2/src/plugins/imageformats/webp/qwebphandler_p.h:61:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QImage *image) override; data/qtimageformats-opensource-src-5.15.2/tests/auto/dds/tst_qdds.cpp:121:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/dds/tst_qdds.cpp:148:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/heif/tst_qheif.cpp:69:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/heif/tst_qheif.cpp:92:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/heif/tst_qheif.cpp:116:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QVERIFY(reader.read(&rimg1)); data/qtimageformats-opensource-src-5.15.2/tests/auto/heif/tst_qheif.cpp:141:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QVERIFY(reader.read(&rimg2)); data/qtimageformats-opensource-src-5.15.2/tests/auto/icns/tst_qicns.cpp:81:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/jp2/tst_qjp2.cpp:67:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/jp2/tst_qjp2.cpp:74:45: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage referenceImage = referenceReader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/mng/tst_qmng.cpp:69:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/mng/tst_qmng.cpp:94:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/tga/tst_qtga.cpp:64:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:195:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:220:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:368:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:385:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). image2 = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:436:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image2 = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:466:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage img2 = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:547:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const QImage generatedImage = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:581:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:624:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:635:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/tiff/tst_qtiff.cpp:669:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image2 = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/wbmp/tst_qwbmp.cpp:65:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/webp/tst_qwebp.cpp:72:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/webp/tst_qwebp.cpp:125:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/auto/webp/tst_qwebp.cpp:133:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QVERIFY(reader.read().isNull()); data/qtimageformats-opensource-src-5.15.2/tests/benchmarks/mng/tst_qmng.cpp:63:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/benchmarks/mng/tst_qmng.cpp:90:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/benchmarks/tiff/tst_qtiff.cpp:107:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); data/qtimageformats-opensource-src-5.15.2/tests/benchmarks/tiff/tst_qtiff.cpp:132:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image = reader.read(); ANALYSIS SUMMARY: Hits = 351 Lines analyzed = 123504 in approximately 3.35 seconds (36873 lines/second) Physical Source Lines of Code (SLOC) = 93474 Hits@level = [0] 273 [1] 75 [2] 219 [3] 12 [4] 45 [5] 0 Hits@level+ = [0+] 624 [1+] 351 [2+] 276 [3+] 57 [4+] 45 [5+] 0 Hits/KSLOC@level+ = [0+] 6.67565 [1+] 3.75505 [2+] 2.95269 [3+] 0.609795 [4+] 0.481417 [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.