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/clamav-0.103.0+dfsg/shared/linux/cert_util_linux.c
Examining data/clamav-0.103.0+dfsg/shared/misc.h
Examining data/clamav-0.103.0+dfsg/shared/cert_util.h
Examining data/clamav-0.103.0+dfsg/shared/fdpassing.h
Examining data/clamav-0.103.0+dfsg/shared/hostid.c
Examining data/clamav-0.103.0+dfsg/shared/hostid.h
Examining data/clamav-0.103.0+dfsg/shared/cdiff.h
Examining data/clamav-0.103.0+dfsg/shared/cdiff.c
Examining data/clamav-0.103.0+dfsg/shared/win/cert_util_win.c
Examining data/clamav-0.103.0+dfsg/shared/tar.c
Examining data/clamav-0.103.0+dfsg/shared/clamdcom.c
Examining data/clamav-0.103.0+dfsg/shared/cert_util.c
Examining data/clamav-0.103.0+dfsg/shared/cert_util_internal.h
Examining data/clamav-0.103.0+dfsg/shared/actions.c
Examining data/clamav-0.103.0+dfsg/shared/output.c
Examining data/clamav-0.103.0+dfsg/shared/idmef_logging.c
Examining data/clamav-0.103.0+dfsg/shared/clamdcom.h
Examining data/clamav-0.103.0+dfsg/shared/actions.h
Examining data/clamav-0.103.0+dfsg/shared/getopt.h
Examining data/clamav-0.103.0+dfsg/shared/tar.h
Examining data/clamav-0.103.0+dfsg/shared/idmef_logging.h
Examining data/clamav-0.103.0+dfsg/shared/misc.c
Examining data/clamav-0.103.0+dfsg/shared/output.h
Examining data/clamav-0.103.0+dfsg/shared/optparser.h
Examining data/clamav-0.103.0+dfsg/shared/getopt.c
Examining data/clamav-0.103.0+dfsg/shared/optparser.c
Examining data/clamav-0.103.0+dfsg/cmake/CheckStructPacking_PRAGMA_PACK.c
Examining data/clamav-0.103.0+dfsg/cmake/CheckStructPacking_PRAGMA_PACK_HPPA.c
Examining data/clamav-0.103.0+dfsg/cmake/TestInline.c
Examining data/clamav-0.103.0+dfsg/cmake/CheckUnamePosix.c
Examining data/clamav-0.103.0+dfsg/cmake/CheckSignedRightShift.c
Examining data/clamav-0.103.0+dfsg/cmake/CheckFileOffsetBits.c
Examining data/clamav-0.103.0+dfsg/cmake/CheckFDPassing.c
Examining data/clamav-0.103.0+dfsg/examples/ex1.c
Examining data/clamav-0.103.0+dfsg/examples/fileprop_analysis/sandbox.c
Examining data/clamav-0.103.0+dfsg/examples/fileprop_analysis/onlype_sample.c
Examining data/clamav-0.103.0+dfsg/examples/fileprop_analysis/ftype_sample.c
Examining data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/sandbox.c
Examining data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/onlype_sample.c
Examining data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/ftype_sample.c
Examining data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/embedpe_sample.c
Examining data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/notpdf_sample.c
Examining data/clamav-0.103.0+dfsg/examples/fileprop_analysis/embedpe_sample.c
Examining data/clamav-0.103.0+dfsg/examples/fileprop_analysis/notpdf_sample.c
Examining data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c
Examining data/clamav-0.103.0+dfsg/libfreshclam/dns.c
Examining data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c
Examining data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.h
Examining data/clamav-0.103.0+dfsg/libfreshclam/dns.h
Examining data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_main.c
Examining data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.h
Examining data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c
Examining data/clamav-0.103.0+dfsg/sigtool/vba.c
Examining data/clamav-0.103.0+dfsg/sigtool/sigtool.c
Examining data/clamav-0.103.0+dfsg/sigtool/vba.h
Examining data/clamav-0.103.0+dfsg/clambc/bcrun.c
Examining data/clamav-0.103.0+dfsg/libclamav/events.h
Examining data/clamav-0.103.0+dfsg/libclamav/others_common.c
Examining data/clamav-0.103.0+dfsg/libclamav/matcher-bm.c
Examining data/clamav-0.103.0+dfsg/libclamav/bytecode_priv.h
Examining data/clamav-0.103.0+dfsg/libclamav/qsort.c
Examining data/clamav-0.103.0+dfsg/libclamav/partition_intersection.c
Examining data/clamav-0.103.0+dfsg/libclamav/matcher-ac.h
Examining data/clamav-0.103.0+dfsg/libclamav/matcher-byte-comp.c
Examining data/clamav-0.103.0+dfsg/libclamav/lzma_iface.c
Examining data/clamav-0.103.0+dfsg/libclamav/mew.c
Examining data/clamav-0.103.0+dfsg/libclamav/sis.h
Examining data/clamav-0.103.0+dfsg/libclamav/cpio.c
Examining data/clamav-0.103.0+dfsg/libclamav/str.c
Examining data/clamav-0.103.0+dfsg/libclamav/entconv.h
Examining data/clamav-0.103.0+dfsg/libclamav/iowrap.h
Examining data/clamav-0.103.0+dfsg/libclamav/conv.h
Examining data/clamav-0.103.0+dfsg/libclamav/stats_json.c
Examining data/clamav-0.103.0+dfsg/libclamav/pdfng.c
Examining data/clamav-0.103.0+dfsg/libclamav/dconf.h
Examining data/clamav-0.103.0+dfsg/libclamav/crtmgr.h
Examining data/clamav-0.103.0+dfsg/libclamav/phishcheck.c
Examining data/clamav-0.103.0+dfsg/libclamav/bytecode.h
Examining data/clamav-0.103.0+dfsg/libclamav/rijndael.h
Examining data/clamav-0.103.0+dfsg/libclamav/openioc.h
Examining data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.h
Examining data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c
Examining data/clamav-0.103.0+dfsg/libclamav/jsparse/lexglobal.h
Examining data/clamav-0.103.0+dfsg/libclamav/jsparse/textbuf.h
Examining data/clamav-0.103.0+dfsg/libclamav/jsparse/generated/operators.h
Examining data/clamav-0.103.0+dfsg/libclamav/jsparse/generated/keywords.h
Examining data/clamav-0.103.0+dfsg/libclamav/libmspack.h
Examining data/clamav-0.103.0+dfsg/libclamav/bytecode_nojit.c
Examining data/clamav-0.103.0+dfsg/libclamav/petite.h
Examining data/clamav-0.103.0+dfsg/libclamav/str.h
Examining data/clamav-0.103.0+dfsg/libclamav/pdfdecode.c
Examining data/clamav-0.103.0+dfsg/libclamav/upx.h
Examining data/clamav-0.103.0+dfsg/libclamav/fpu.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zVersion.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Bra.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zFile.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Delta.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/XzCrc64.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/CpuArch.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zCrc.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zBuf.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/RotateDefs.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zAlloc.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/XzCrc64.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/LzmaDec.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Bcj2.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Types.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zStream.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zAlloc.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/XzIn.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Ppmd7.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zCrcOpt.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Lzma2Dec.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Ppmd7.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zFile.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zBuf2.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Bcj2.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Bra.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Xz.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Bra86.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Delta.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Ppmd.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/XzDec.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7z.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zCrc.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/CpuArch.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Ppmd7Dec.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Alloc.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zBuf.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/LzmaDec.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zIn.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Xz.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z/Lzma2Dec.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/BraIA64.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z/7zDec.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_2.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_4.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mulmod.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_12.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_20.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_28.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_64.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_8.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_7.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_17.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_24.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_3.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_9.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_d.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_6.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_48.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_2d.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_32.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/addsub/fp_cmp.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/addsub/fp_cmp_d.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/addsub/fp_sub.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/addsub/s_fp_add.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/addsub/fp_cmp_mag.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/addsub/fp_addmod.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/addsub/fp_add_d.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/addsub/fp_submod.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/addsub/fp_sub_d.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/addsub/fp_add.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/addsub/s_fp_sub.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bit/fp_lshd.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bit/fp_cnt_lsb.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bit/fp_div_2.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bit/fp_rshd.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bit/fp_div_2d.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bit/fp_count_bits.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bit/fp_mod_2d.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/numtheory/fp_invmod.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/divide/fp_div.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/divide/fp_mod.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/divide/fp_div_d.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/divide/fp_mod_d.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bin/fp_unsigned_bin_size.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bin/fp_toradix.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bin/fp_radix_size.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bin/fp_s_rmap.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bin/fp_read_signed_bin.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bin/fp_signed_bin_size.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bin/fp_to_signed_bin.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bin/fp_reverse.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bin/fp_read_unsigned_bin.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bin/fp_to_unsigned_bin.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bin/fp_read_radix.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/bin/fp_toradix_n.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/exptmod/fp_2expt.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/exptmod/fp_exptmod.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/misc/fp_ident.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/misc/fp_set.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_28.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_32.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_64.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_6.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_4.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_7.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_48.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_generic.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_9.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_24.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_20.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_8.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_17.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_12.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_3.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqrmod.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mont/fp_montgomery_setup.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mont/fp_montgomery_reduce.c
Examining data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mont/fp_montgomery_calc_normalization.c
Examining data/clamav-0.103.0+dfsg/libclamav/crypto.c
Examining data/clamav-0.103.0+dfsg/libclamav/xlm_extract.h
Examining data/clamav-0.103.0+dfsg/libclamav/yara_arena.h
Examining data/clamav-0.103.0+dfsg/libclamav/execs.h
Examining data/clamav-0.103.0+dfsg/libclamav/uuencode.c
Examining data/clamav-0.103.0+dfsg/libclamav/untar.c
Examining data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c
Examining data/clamav-0.103.0+dfsg/libclamav/swf.c
Examining data/clamav-0.103.0+dfsg/libclamav/is_tar.h
Examining data/clamav-0.103.0+dfsg/libclamav/inflate64.h
Examining data/clamav-0.103.0+dfsg/libclamav/arc4.c
Examining data/clamav-0.103.0+dfsg/libclamav/iso9660.h
Examining data/clamav-0.103.0+dfsg/libclamav/xar.h
Examining data/clamav-0.103.0+dfsg/libclamav/iowrap.c
Examining data/clamav-0.103.0+dfsg/libclamav/version.h
Examining data/clamav-0.103.0+dfsg/libclamav/unarj.c
Examining data/clamav-0.103.0+dfsg/libclamav/phish_whitelist.c
Examining data/clamav-0.103.0+dfsg/libclamav/special.h
Examining data/clamav-0.103.0+dfsg/libclamav/gif.h
Examining data/clamav-0.103.0+dfsg/libclamav/wwunpack.c
Examining data/clamav-0.103.0+dfsg/libclamav/matcher.h
Examining data/clamav-0.103.0+dfsg/libclamav/encoding_aliases.h
Examining data/clamav-0.103.0+dfsg/libclamav/msexpand.h
Examining data/clamav-0.103.0+dfsg/libclamav/xz_iface.h
Examining data/clamav-0.103.0+dfsg/libclamav/bytecode_api.c
Examining data/clamav-0.103.0+dfsg/libclamav/perflogging.c
Examining data/clamav-0.103.0+dfsg/libclamav/www.h
Examining data/clamav-0.103.0+dfsg/libclamav/cvd.c
Examining data/clamav-0.103.0+dfsg/libclamav/phishcheck.h
Examining data/clamav-0.103.0+dfsg/libclamav/dlp.c
Examining data/clamav-0.103.0+dfsg/libclamav/json_api.c
Examining data/clamav-0.103.0+dfsg/libclamav/filtering.c
Examining data/clamav-0.103.0+dfsg/libclamav/stats.h
Examining data/clamav-0.103.0+dfsg/libclamav/yara_compiler.c
Examining data/clamav-0.103.0+dfsg/libclamav/textdet.c
Examining data/clamav-0.103.0+dfsg/libclamav/pe_icons.h
Examining data/clamav-0.103.0+dfsg/libclamav/xz_iface.c
Examining data/clamav-0.103.0+dfsg/libclamav/aspack.h
Examining data/clamav-0.103.0+dfsg/libclamav/yc.c
Examining data/clamav-0.103.0+dfsg/libclamav/www.c
Examining data/clamav-0.103.0+dfsg/libclamav/explode.h
Examining data/clamav-0.103.0+dfsg/libclamav/blob.c
Examining data/clamav-0.103.0+dfsg/libclamav/regex/engine.c
Examining data/clamav-0.103.0+dfsg/libclamav/regex/regex.h
Examining data/clamav-0.103.0+dfsg/libclamav/regex/regfree.c
Examining data/clamav-0.103.0+dfsg/libclamav/regex/regex2.h
Examining data/clamav-0.103.0+dfsg/libclamav/regex/regcomp.c
Examining data/clamav-0.103.0+dfsg/libclamav/regex/utils.h
Examining data/clamav-0.103.0+dfsg/libclamav/regex/cname.h
Examining data/clamav-0.103.0+dfsg/libclamav/regex/regexec.c
Examining data/clamav-0.103.0+dfsg/libclamav/regex/strlcpy.c
Examining data/clamav-0.103.0+dfsg/libclamav/regex/regerror.c
Examining data/clamav-0.103.0+dfsg/libclamav/regex/cclass.h
Examining data/clamav-0.103.0+dfsg/libclamav/text.h
Examining data/clamav-0.103.0+dfsg/libclamav/yara_compiler.h
Examining data/clamav-0.103.0+dfsg/libclamav/msxml_parser.c
Examining data/clamav-0.103.0+dfsg/libclamav/tiff.c
Examining data/clamav-0.103.0+dfsg/libclamav/hfsplus.h
Examining data/clamav-0.103.0+dfsg/libclamav/jpeg.h
Examining data/clamav-0.103.0+dfsg/libclamav/message.c
Examining data/clamav-0.103.0+dfsg/libclamav/sf_base64decode.c
Examining data/clamav-0.103.0+dfsg/libclamav/lzma_iface.h
Examining data/clamav-0.103.0+dfsg/libclamav/xar.c
Examining data/clamav-0.103.0+dfsg/libclamav/regex_pcre.c
Examining data/clamav-0.103.0+dfsg/libclamav/pe.h
Examining data/clamav-0.103.0+dfsg/libclamav/hwp.h
Examining data/clamav-0.103.0+dfsg/libclamav/regex_list.h
Examining data/clamav-0.103.0+dfsg/libclamav/table.c
Examining data/clamav-0.103.0+dfsg/libclamav/tnef.h
Examining data/clamav-0.103.0+dfsg/libclamav/ishield.c
Examining data/clamav-0.103.0+dfsg/libclamav/yara_grammar.h
Examining data/clamav-0.103.0+dfsg/libclamav/tiff.h
Examining data/clamav-0.103.0+dfsg/libclamav/wwunpack.h
Examining data/clamav-0.103.0+dfsg/libclamav/petite.c
Examining data/clamav-0.103.0+dfsg/libclamav/disasm-common.h
Examining data/clamav-0.103.0+dfsg/libclamav/regex_list.c
Examining data/clamav-0.103.0+dfsg/libclamav/iso9660.c
Examining data/clamav-0.103.0+dfsg/libclamav/disasmpriv.h
Examining data/clamav-0.103.0+dfsg/libclamav/matcher-byte-comp.h
Examining data/clamav-0.103.0+dfsg/libclamav/autoit.c
Examining data/clamav-0.103.0+dfsg/libclamav/pdf.c
Examining data/clamav-0.103.0+dfsg/libclamav/bytecode.c
Examining data/clamav-0.103.0+dfsg/libclamav/elf.c
Examining data/clamav-0.103.0+dfsg/libclamav/cache.h
Examining data/clamav-0.103.0+dfsg/libclamav/tnef.c
Examining data/clamav-0.103.0+dfsg/libclamav/iana_tld.h
Examining data/clamav-0.103.0+dfsg/libclamav/gif.c
Examining data/clamav-0.103.0+dfsg/libclamav/asn1.c
Examining data/clamav-0.103.0+dfsg/libclamav/builtin_bytecodes.h
Examining data/clamav-0.103.0+dfsg/libclamav/matcher.c
Examining data/clamav-0.103.0+dfsg/libclamav/textdet.h
Examining data/clamav-0.103.0+dfsg/libclamav/aspack.c
Examining data/clamav-0.103.0+dfsg/libclamav/yara_exec.h
Examining data/clamav-0.103.0+dfsg/libclamav/cpio.h
Examining data/clamav-0.103.0+dfsg/libclamav/fmap.c
Examining data/clamav-0.103.0+dfsg/libclamav/png.c
Examining data/clamav-0.103.0+dfsg/libclamav/openioc.c
Examining data/clamav-0.103.0+dfsg/libclamav/jpeg.c
Examining data/clamav-0.103.0+dfsg/libclamav/apm.c
Examining data/clamav-0.103.0+dfsg/libclamav/htmlnorm.h
Examining data/clamav-0.103.0+dfsg/libclamav/dmg.c
Examining data/clamav-0.103.0+dfsg/libclamav/msxml.h
Examining data/clamav-0.103.0+dfsg/libclamav/hashtab.h
Examining data/clamav-0.103.0+dfsg/libclamav/swf.h
Examining data/clamav-0.103.0+dfsg/libclamav/mbox.h
Examining data/clamav-0.103.0+dfsg/libclamav/yara_parser.h
Examining data/clamav-0.103.0+dfsg/libclamav/inffixed64.h
Examining data/clamav-0.103.0+dfsg/libclamav/readdb.c
Examining data/clamav-0.103.0+dfsg/libclamav/yara_hash.h
Examining data/clamav-0.103.0+dfsg/libclamav/c++/llvm30_compat.h
Examining data/clamav-0.103.0+dfsg/libclamav/c++/ClamBCDiagnostics.h
Examining data/clamav-0.103.0+dfsg/libclamav/c++/ClamBCModule.h
Examining data/clamav-0.103.0+dfsg/libclamav/c++/PointerTracking.h
Examining data/clamav-0.103.0+dfsg/libclamav/c++/ClamBCRTChecks.cpp
Examining data/clamav-0.103.0+dfsg/libclamav/c++/PointerTracking.cpp
Examining data/clamav-0.103.0+dfsg/libclamav/c++/detect.cpp
Examining data/clamav-0.103.0+dfsg/libclamav/c++/bytecode2llvm.cpp
Examining data/clamav-0.103.0+dfsg/libclamav/matcher-bm.h
Examining data/clamav-0.103.0+dfsg/libclamav/lzw/lzwdec.h
Examining data/clamav-0.103.0+dfsg/libclamav/lzw/lzwdec.c
Examining data/clamav-0.103.0+dfsg/libclamav/disasm.h
Examining data/clamav-0.103.0+dfsg/libclamav/hostid_internal.h
Examining data/clamav-0.103.0+dfsg/libclamav/xlm_extract.c
Examining data/clamav-0.103.0+dfsg/libclamav/rtf.c
Examining data/clamav-0.103.0+dfsg/libclamav/filetypes.h
Examining data/clamav-0.103.0+dfsg/libclamav/egg.c
Examining data/clamav-0.103.0+dfsg/libclamav/stats.c
Examining data/clamav-0.103.0+dfsg/libclamav/matcher-pcre.h
Examining data/clamav-0.103.0+dfsg/libclamav/unzip.h
Examining data/clamav-0.103.0+dfsg/libclamav/7z_iface.h
Examining data/clamav-0.103.0+dfsg/libclamav/vba_extract.c
Examining data/clamav-0.103.0+dfsg/libclamav/macho.c
Examining data/clamav-0.103.0+dfsg/libclamav/spin.h
Examining data/clamav-0.103.0+dfsg/libclamav/unarj.h
Examining data/clamav-0.103.0+dfsg/libclamav/rebuildpe.h
Examining data/clamav-0.103.0+dfsg/libclamav/hwp.c
Examining data/clamav-0.103.0+dfsg/libclamav/uniq.h
Examining data/clamav-0.103.0+dfsg/libclamav/pe.c
Examining data/clamav-0.103.0+dfsg/libclamav/fpu.c
Examining data/clamav-0.103.0+dfsg/libclamav/entitylist.h
Examining data/clamav-0.103.0+dfsg/libclamav/hashtab.c
Examining data/clamav-0.103.0+dfsg/libclamav/matcher-hash.h
Examining data/clamav-0.103.0+dfsg/libclamav/stats_json.h
Examining data/clamav-0.103.0+dfsg/libclamav/special.c
Examining data/clamav-0.103.0+dfsg/libclamav/table.h
Examining data/clamav-0.103.0+dfsg/libclamav/line.c
Examining data/clamav-0.103.0+dfsg/libclamav/crtmgr.c
Examining data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c
Examining data/clamav-0.103.0+dfsg/libclamav/partition_intersection.h
Examining data/clamav-0.103.0+dfsg/libclamav/apm.h
Examining data/clamav-0.103.0+dfsg/libclamav/sis.c
Examining data/clamav-0.103.0+dfsg/libclamav/bignum_fast.h
Examining data/clamav-0.103.0+dfsg/libclamav/pe_icons.c
Examining data/clamav-0.103.0+dfsg/libclamav/bytecode_api_impl.h
Examining data/clamav-0.103.0+dfsg/libclamav/yara_lexer.h
Examining data/clamav-0.103.0+dfsg/libclamav/strlcat.c
Examining data/clamav-0.103.0+dfsg/libclamav/yara_grammar.c
Examining data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c
Examining data/clamav-0.103.0+dfsg/libclamav/conv.c
Examining data/clamav-0.103.0+dfsg/libclamav/mpool.c
Examining data/clamav-0.103.0+dfsg/libclamav/disasm.c
Examining data/clamav-0.103.0+dfsg/libclamav/clamav.h
Examining data/clamav-0.103.0+dfsg/libclamav/inflate64.c
Examining data/clamav-0.103.0+dfsg/libclamav/cache.c
Examining data/clamav-0.103.0+dfsg/libclamav/binhex.c
Examining data/clamav-0.103.0+dfsg/libclamav/msexpand.c
Examining data/clamav-0.103.0+dfsg/libclamav/sf_base64decode.h
Examining data/clamav-0.103.0+dfsg/libclamav/libmspack.c
Examining data/clamav-0.103.0+dfsg/libclamav/7z_iface.c
Examining data/clamav-0.103.0+dfsg/libclamav/asn1.h
Examining data/clamav-0.103.0+dfsg/libclamav/upx.c
Examining data/clamav-0.103.0+dfsg/libclamav/readdb.h
Examining data/clamav-0.103.0+dfsg/libclamav/others.h
Examining data/clamav-0.103.0+dfsg/libclamav/gpt.c
Examining data/clamav-0.103.0+dfsg/libclamav/msxml_parser.h
Examining data/clamav-0.103.0+dfsg/libclamav/entconv.c
Examining data/clamav-0.103.0+dfsg/libclamav/autoit.h
Examining data/clamav-0.103.0+dfsg/libclamav/uuencode.h
Examining data/clamav-0.103.0+dfsg/libclamav/json_api.h
Examining data/clamav-0.103.0+dfsg/libclamav/dsig.h
Examining data/clamav-0.103.0+dfsg/libclamav/execs.c
Examining data/clamav-0.103.0+dfsg/libclamav/untar.h
Examining data/clamav-0.103.0+dfsg/libclamav/matcher-hash.c
Examining data/clamav-0.103.0+dfsg/libclamav/ole2_extract.h
Examining data/clamav-0.103.0+dfsg/libclamav/unzip.c
Examining data/clamav-0.103.0+dfsg/libclamav/ooxml.h
Examining data/clamav-0.103.0+dfsg/libclamav/text.c
Examining data/clamav-0.103.0+dfsg/libclamav/scanners.h
Examining data/clamav-0.103.0+dfsg/libclamav/hfsplus.c
Examining data/clamav-0.103.0+dfsg/libclamav/png.h
Examining data/clamav-0.103.0+dfsg/libclamav/version.c
Examining data/clamav-0.103.0+dfsg/libclamav/hostid_internal.c
Examining data/clamav-0.103.0+dfsg/libclamav/gpt.h
Examining data/clamav-0.103.0+dfsg/libclamav/regex_suffix.h
Examining data/clamav-0.103.0+dfsg/libclamav/xdp.h
Examining data/clamav-0.103.0+dfsg/libclamav/pdf.h
Examining data/clamav-0.103.0+dfsg/libclamav/textnorm.c
Examining data/clamav-0.103.0+dfsg/libclamav/pe_structs.h
Examining data/clamav-0.103.0+dfsg/libclamav/yara_clam.h
Examining data/clamav-0.103.0+dfsg/libclamav/upack.c
Examining data/clamav-0.103.0+dfsg/libclamav/regex_pcre.h
Examining data/clamav-0.103.0+dfsg/libclamav/yc.h
Examining data/clamav-0.103.0+dfsg/libclamav/fsg.h
Examining data/clamav-0.103.0+dfsg/libclamav/scanners.c
Examining data/clamav-0.103.0+dfsg/libclamav/bytecode_vm.c
Examining data/clamav-0.103.0+dfsg/libclamav/yara_parser.c
Examining data/clamav-0.103.0+dfsg/libclamav/bytecode_detect.h
Examining data/clamav-0.103.0+dfsg/libclamav/phish_domaincheck_db.c
Examining data/clamav-0.103.0+dfsg/libclamav/bytecode_api.h
Examining data/clamav-0.103.0+dfsg/libclamav/filetypes.c
Examining data/clamav-0.103.0+dfsg/libclamav/iana_cctld.h
Examining data/clamav-0.103.0+dfsg/libclamav/macho.h
Examining data/clamav-0.103.0+dfsg/libclamav/clambc.h
Examining data/clamav-0.103.0+dfsg/libclamav/fsg.c
Examining data/clamav-0.103.0+dfsg/libclamav/dsig.c
Examining data/clamav-0.103.0+dfsg/libclamav/type_desc.h
Examining data/clamav-0.103.0+dfsg/libclamav/matcher-pcre.c
Examining data/clamav-0.103.0+dfsg/libclamav/nsis/nsis_bzlib.h
Examining data/clamav-0.103.0+dfsg/libclamav/nsis/nulsft.c
Examining data/clamav-0.103.0+dfsg/libclamav/nsis/infblock.c
Examining data/clamav-0.103.0+dfsg/libclamav/nsis/nulsft.h
Examining data/clamav-0.103.0+dfsg/libclamav/nsis/nsis_zutil.h
Examining data/clamav-0.103.0+dfsg/libclamav/nsis/nsis_zlib.h
Examining data/clamav-0.103.0+dfsg/libclamav/nsis/nsis_zconf.h
Examining data/clamav-0.103.0+dfsg/libclamav/nsis/bzlib.c
Examining data/clamav-0.103.0+dfsg/libclamav/nsis/bzlib_private.h
Examining data/clamav-0.103.0+dfsg/libclamav/dmg.h
Examining data/clamav-0.103.0+dfsg/libclamav/is_tar.c
Examining data/clamav-0.103.0+dfsg/libclamav/explode.c
Examining data/clamav-0.103.0+dfsg/libclamav/queue.h
Examining data/clamav-0.103.0+dfsg/libclamav/elf.h
Examining data/clamav-0.103.0+dfsg/libclamav/ooxml.c
Examining data/clamav-0.103.0+dfsg/libclamav/mpool.h
Examining data/clamav-0.103.0+dfsg/libclamav/libclamav_main.c
Examining data/clamav-0.103.0+dfsg/libclamav/yara_arena.c
Examining data/clamav-0.103.0+dfsg/libclamav/bcfeatures.h
Examining data/clamav-0.103.0+dfsg/libclamav/rtf.h
Examining data/clamav-0.103.0+dfsg/libclamav/events.c
Examining data/clamav-0.103.0+dfsg/libclamav/msdoc.c
Examining data/clamav-0.103.0+dfsg/libclamav/cvd.h
Examining data/clamav-0.103.0+dfsg/libclamav/textnorm.h
Examining data/clamav-0.103.0+dfsg/libclamav/inflate64_priv.h
Examining data/clamav-0.103.0+dfsg/libclamav/default.h
Examining data/clamav-0.103.0+dfsg/libclamav/bytecode_api_decl.c
Examining data/clamav-0.103.0+dfsg/libclamav/adc.c
Examining data/clamav-0.103.0+dfsg/libclamav/upack.h
Examining data/clamav-0.103.0+dfsg/libclamav/binhex.h
Examining data/clamav-0.103.0+dfsg/libclamav/others.c
Examining data/clamav-0.103.0+dfsg/libclamav/filtering.h
Examining data/clamav-0.103.0+dfsg/libclamav/yara_exec.c
Examining data/clamav-0.103.0+dfsg/libclamav/arc4.h
Examining data/clamav-0.103.0+dfsg/libclamav/phish_whitelist.h
Examining data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c
Examining data/clamav-0.103.0+dfsg/libclamav/regex_suffix.c
Examining data/clamav-0.103.0+dfsg/libclamav/mew.h
Examining data/clamav-0.103.0+dfsg/libclamav/mbr.c
Examining data/clamav-0.103.0+dfsg/libclamav/rijndael.c
Examining data/clamav-0.103.0+dfsg/libclamav/dlp.h
Examining data/clamav-0.103.0+dfsg/libclamav/pdfdecode.h
Examining data/clamav-0.103.0+dfsg/libclamav/unsp.c
Examining data/clamav-0.103.0+dfsg/libclamav/dconf.c
Examining data/clamav-0.103.0+dfsg/libclamav/adc.h
Examining data/clamav-0.103.0+dfsg/libclamav/ishield.h
Examining data/clamav-0.103.0+dfsg/libclamav/packlibs.h
Examining data/clamav-0.103.0+dfsg/libclamav/msdoc.h
Examining data/clamav-0.103.0+dfsg/libclamav/mbr.h
Examining data/clamav-0.103.0+dfsg/libclamav/blob.h
Examining data/clamav-0.103.0+dfsg/libclamav/unsp.h
Examining data/clamav-0.103.0+dfsg/libclamav/uniq.c
Examining data/clamav-0.103.0+dfsg/libclamav/phish_domaincheck_db.h
Examining data/clamav-0.103.0+dfsg/libclamav/yara_hash.c
Examining data/clamav-0.103.0+dfsg/libclamav/bytecode_detect.c
Examining data/clamav-0.103.0+dfsg/libclamav/spin.c
Examining data/clamav-0.103.0+dfsg/libclamav/line.h
Examining data/clamav-0.103.0+dfsg/libclamav/filetypes_int.h
Examining data/clamav-0.103.0+dfsg/libclamav/message.h
Examining data/clamav-0.103.0+dfsg/libclamav/msxml.c
Examining data/clamav-0.103.0+dfsg/libclamav/mbox.c
Examining data/clamav-0.103.0+dfsg/libclamav/fmap.h
Examining data/clamav-0.103.0+dfsg/libclamav/rebuildpe.c
Examining data/clamav-0.103.0+dfsg/libclamav/bytecode_hooks.h
Examining data/clamav-0.103.0+dfsg/libclamav/vba_extract.h
Examining data/clamav-0.103.0+dfsg/libclamav/packlibs.c
Examining data/clamav-0.103.0+dfsg/libclamav/egg.h
Examining data/clamav-0.103.0+dfsg/libclamav/perflogging.h
Examining data/clamav-0.103.0+dfsg/libclamav/bignum.h
Examining data/clamav-0.103.0+dfsg/libclamav/xdp.c
Examining data/clamav-0.103.0+dfsg/clamav-milter/whitelist.c
Examining data/clamav-0.103.0+dfsg/clamav-milter/clamfi.h
Examining data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c
Examining data/clamav-0.103.0+dfsg/clamav-milter/clamav-milter.c
Examining data/clamav-0.103.0+dfsg/clamav-milter/netcode.h
Examining data/clamav-0.103.0+dfsg/clamav-milter/netcode.c
Examining data/clamav-0.103.0+dfsg/clamav-milter/whitelist.h
Examining data/clamav-0.103.0+dfsg/clamav-milter/connpool.h
Examining data/clamav-0.103.0+dfsg/clamav-milter/connpool.c
Examining data/clamav-0.103.0+dfsg/clamdscan/proto.c
Examining data/clamav-0.103.0+dfsg/clamdscan/clamdscan.c
Examining data/clamav-0.103.0+dfsg/clamdscan/proto.h
Examining data/clamav-0.103.0+dfsg/clamdscan/client.c
Examining data/clamav-0.103.0+dfsg/clamdscan/client.h
Examining data/clamav-0.103.0+dfsg/freshclam/execute.h
Examining data/clamav-0.103.0+dfsg/freshclam/execute.c
Examining data/clamav-0.103.0+dfsg/freshclam/notify.h
Examining data/clamav-0.103.0+dfsg/freshclam/notify.c
Examining data/clamav-0.103.0+dfsg/freshclam/freshclam.c
Examining data/clamav-0.103.0+dfsg/libltdl/lt__strl.c
Examining data/clamav-0.103.0+dfsg/libltdl/slist.c
Examining data/clamav-0.103.0+dfsg/libltdl/ltdl.h
Examining data/clamav-0.103.0+dfsg/libltdl/lt__argz.c
Examining data/clamav-0.103.0+dfsg/libltdl/ltdl.c
Examining data/clamav-0.103.0+dfsg/libltdl/lt__alloc.c
Examining data/clamav-0.103.0+dfsg/libltdl/lt_error.c
Examining data/clamav-0.103.0+dfsg/libltdl/libltdl/slist.h
Examining data/clamav-0.103.0+dfsg/libltdl/libltdl/lt_error.h
Examining data/clamav-0.103.0+dfsg/libltdl/libltdl/lt__dirent.h
Examining data/clamav-0.103.0+dfsg/libltdl/libltdl/lt__strl.h
Examining data/clamav-0.103.0+dfsg/libltdl/libltdl/lt__alloc.h
Examining data/clamav-0.103.0+dfsg/libltdl/libltdl/lt__glibc.h
Examining data/clamav-0.103.0+dfsg/libltdl/libltdl/lt__argz_.h
Examining data/clamav-0.103.0+dfsg/libltdl/libltdl/lt_dlloader.h
Examining data/clamav-0.103.0+dfsg/libltdl/libltdl/lt_system.h
Examining data/clamav-0.103.0+dfsg/libltdl/libltdl/lt__private.h
Examining data/clamav-0.103.0+dfsg/libltdl/lt__dirent.c
Examining data/clamav-0.103.0+dfsg/libltdl/lt_dlloader.c
Examining data/clamav-0.103.0+dfsg/libltdl/loaders/dlopen.c
Examining data/clamav-0.103.0+dfsg/libltdl/loaders/dyld.c
Examining data/clamav-0.103.0+dfsg/libltdl/loaders/loadlibrary.c
Examining data/clamav-0.103.0+dfsg/libltdl/loaders/shl_load.c
Examining data/clamav-0.103.0+dfsg/libltdl/loaders/load_add_on.c
Examining data/clamav-0.103.0+dfsg/libltdl/loaders/dld_link.c
Examining data/clamav-0.103.0+dfsg/libltdl/loaders/preopen.c
Examining data/clamav-0.103.0+dfsg/fuzz/clamav_scanfile_fuzzer.cpp
Examining data/clamav-0.103.0+dfsg/fuzz/clamav_scanmap_fuzzer.cpp
Examining data/clamav-0.103.0+dfsg/fuzz/standalone_fuzz_target_runner.cpp
Examining data/clamav-0.103.0+dfsg/fuzz/clamav_dbload_fuzzer.cpp
Examining data/clamav-0.103.0+dfsg/clamconf/clamconf.c
Examining data/clamav-0.103.0+dfsg/clamscan/manager.h
Examining data/clamav-0.103.0+dfsg/clamscan/global.h
Examining data/clamav-0.103.0+dfsg/clamscan/manager.c
Examining data/clamav-0.103.0+dfsg/clamscan/clamscan.c
Examining data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c
Examining data/clamav-0.103.0+dfsg/libclamunrar_iface/unrar_iface.h
Examining data/clamav-0.103.0+dfsg/libclamunrar_iface/unrar_iface.cpp
Examining data/clamav-0.103.0+dfsg/clamd/thrmgr.h
Examining data/clamav-0.103.0+dfsg/clamd/server.h
Examining data/clamav-0.103.0+dfsg/clamd/scanner.c
Examining data/clamav-0.103.0+dfsg/clamd/session.h
Examining data/clamav-0.103.0+dfsg/clamd/shared.h
Examining data/clamav-0.103.0+dfsg/clamd/tcpserver.c
Examining data/clamav-0.103.0+dfsg/clamd/localserver.c
Examining data/clamav-0.103.0+dfsg/clamd/clamd_others.h
Examining data/clamav-0.103.0+dfsg/clamd/clamd.c
Examining data/clamav-0.103.0+dfsg/clamd/clamd_others.c
Examining data/clamav-0.103.0+dfsg/clamd/scanner.h
Examining data/clamav-0.103.0+dfsg/clamd/server-th.c
Examining data/clamav-0.103.0+dfsg/clamd/localserver.h
Examining data/clamav-0.103.0+dfsg/clamd/tcpserver.h
Examining data/clamav-0.103.0+dfsg/clamd/session.c
Examining data/clamav-0.103.0+dfsg/clamd/thrmgr.c
Examining data/clamav-0.103.0+dfsg/unit_tests/check_disasm.c
Examining data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c
Examining data/clamav-0.103.0+dfsg/unit_tests/check_fpu_endian.c
Examining data/clamav-0.103.0+dfsg/unit_tests/check_htmlnorm.c
Examining data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c
Examining data/clamav-0.103.0+dfsg/unit_tests/checks_common.h
Examining data/clamav-0.103.0+dfsg/unit_tests/check_bytecode.c
Examining data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c
Examining data/clamav-0.103.0+dfsg/unit_tests/check_uniq.c
Examining data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c
Examining data/clamav-0.103.0+dfsg/unit_tests/check_clamav_skip.c
Examining data/clamav-0.103.0+dfsg/unit_tests/check_regex.c
Examining data/clamav-0.103.0+dfsg/unit_tests/check_str.c
Examining data/clamav-0.103.0+dfsg/unit_tests/checks.h
Examining data/clamav-0.103.0+dfsg/clamonacc/clamonacc.c
Examining data/clamav-0.103.0+dfsg/clamonacc/inotif/hash.h
Examining data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.h
Examining data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c
Examining data/clamav-0.103.0+dfsg/clamonacc/inotif/hash.c
Examining data/clamav-0.103.0+dfsg/clamonacc/clamonacc.h
Examining data/clamav-0.103.0+dfsg/clamonacc/scan/onas_queue.c
Examining data/clamav-0.103.0+dfsg/clamonacc/scan/thread.h
Examining data/clamav-0.103.0+dfsg/clamonacc/scan/onas_queue.h
Examining data/clamav-0.103.0+dfsg/clamonacc/scan/thread.c
Examining data/clamav-0.103.0+dfsg/clamonacc/c-thread-pool/thpool.h
Examining data/clamav-0.103.0+dfsg/clamonacc/c-thread-pool/thpool.c
Examining data/clamav-0.103.0+dfsg/clamonacc/fanotif/fanotif.h
Examining data/clamav-0.103.0+dfsg/clamonacc/fanotif/fanotif.c
Examining data/clamav-0.103.0+dfsg/clamonacc/client/protocol.c
Examining data/clamav-0.103.0+dfsg/clamonacc/client/communication.c
Examining data/clamav-0.103.0+dfsg/clamonacc/client/protocol.h
Examining data/clamav-0.103.0+dfsg/clamonacc/client/client.c
Examining data/clamav-0.103.0+dfsg/clamonacc/client/client.h
Examining data/clamav-0.103.0+dfsg/clamonacc/client/communication.h
Examining data/clamav-0.103.0+dfsg/clamonacc/misc/utils.h
Examining data/clamav-0.103.0+dfsg/clamonacc/misc/priv_fts.h
Examining data/clamav-0.103.0+dfsg/clamonacc/misc/fts.c
Examining data/clamav-0.103.0+dfsg/clamonacc/misc/utils.c

FINAL RESULTS:

data/clamav-0.103.0+dfsg/clamav-milter/clamav-milter.c:255:17:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            if (chown(sock_name, -1, sock_gid)) {
data/clamav-0.103.0+dfsg/clamav-milter/clamav-milter.c:273:17:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            if (chown(sock_name, user->pw_uid, -1)) {
data/clamav-0.103.0+dfsg/clamav-milter/clamav-milter.c:293:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        if (chmod(sock_name, sock_mode & 0666)) {
data/clamav-0.103.0+dfsg/clamd/clamd.c:723:21:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
                if (chown(optget(opts, "LocalSocket")->strarg, -1, sock_gid)) {
data/clamav-0.103.0+dfsg/clamd/clamd.c:743:17:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            if (chmod(optget(opts, "LocalSocket")->strarg, sock_mode & 0666)) {
data/clamav-0.103.0+dfsg/clamonacc/fanotif/fanotif.c:191:25:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
                len   = readlink(proc_fd_fname, fname, sizeof(fname) - 1);
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:762:17:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            if (chown(fcConfig.databaseDirectory, user->pw_uid, user->pw_gid)) {
data/clamav-0.103.0+dfsg/libclamav/fmap.h:77:19:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    const void *(*gets)(fmap_t *, char *dst, size_t *at, size_t max_len);
data/clamav-0.103.0+dfsg/libclamav/fmap.h:228:15:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    return m->gets(m, dst, at, max_len);
data/clamav-0.103.0+dfsg/libclamav/others.c:1460:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod(dirname, 0700);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1210:25:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    if (-1 == (linksz = readlink(link, fname, PATH_MAX - 1))) {
data/clamav-0.103.0+dfsg/libclamav/scanners.c:445:34:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                        if (0 != chmod(extract_fullpath, S_IRUSR | S_IRGRP)) {
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:450:42:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                                    exit(execvp(viraction, args));
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:567: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.
    snprintf(buf, sizeof(buf), rejectfmt, cf->virusname);
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:230:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access("/usr/bin/lsb_release", X_OK)) {
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:233:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if (system("/usr/bin/lsb_release -d -s") == -1) {
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:239:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access("/etc/release", R_OK)) {
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:344:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(dbfile, "%s" PATHSEP "%s", dir, dent->d_name);
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:413:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(path, R_OK)) {
data/clamav-0.103.0+dfsg/clamd/clamd.c:468:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(pua_cats + i, ".%s", opt->strarg);
data/clamav-0.103.0+dfsg/clamd/clamd.c:502:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(pua_cats + i, ".%s", opt->strarg);
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:124:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buffer_file, "%s=%s", VE_FILENAME, filename);
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:131:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buffer_vir, "%s=%s", VE_VIRUSNAME, virname);
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:154:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(buffer_cmd, virname);
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:166:15:  [4] (shell) execle:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        _exit(execle("/bin/sh", "sh", "-c", buffer_cmd, NULL, env));
data/clamav-0.103.0+dfsg/clamd/scanner.c:260:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(filename, R_OK)) {
data/clamav-0.103.0+dfsg/clamdscan/client.c:284: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.
        snprintf(&ret[namelen], PATH_MAX - namelen, PATHSEP "%s", basepath);
data/clamav-0.103.0+dfsg/clamdscan/proto.c:292:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bol, "z%s %s", scancmd[scantype], filename);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:524:86:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
static void print_con_info(conn_t *conn, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:535: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.
        vsnprintf(buf, maxx + 1, fmt, ap);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:546:9:  [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(stdout, fmt, ap);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:666:36:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (cli_is_abspath(soname) || (access(soname, F_OK) == 0)) {
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1076: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.
        snprintf(mem, sizeof(mem), format, s, c);
data/clamav-0.103.0+dfsg/clamonacc/c-thread-pool/thpool.c:32:18:  [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.
#define err(str) fprintf(stderr, str)
data/clamav-0.103.0+dfsg/clamonacc/client/protocol.c:222:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bol, "z%s %s", scancmd[scantype], filename);
data/clamav-0.103.0+dfsg/clamscan/manager.c:78:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    return !access(path, mode);
data/clamav-0.103.0+dfsg/clamscan/manager.c:105:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(path, mode))
data/clamav-0.103.0+dfsg/clamscan/manager.c:115:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (!access(path, mode))
data/clamav-0.103.0+dfsg/clamscan/manager.c:513:25:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        sprintf(fname, PATHSEP "%s", dent->d_name);
data/clamav-0.103.0+dfsg/clamscan/manager.c:515:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(fname, "%s" PATHSEP "%s", dirname, dent->d_name);
data/clamav-0.103.0+dfsg/clamscan/manager.c:579:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(tmpdir, R_OK | W_OK) == -1) {
data/clamav-0.103.0+dfsg/clamscan/manager.c:713:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(pua_cats + i, ".%s", opt->strarg);
data/clamav-0.103.0+dfsg/clamscan/manager.c:741:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(pua_cats + i, ".%s", opt->strarg);
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:184: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.
    snprintf(userAgent, sizeof(userAgent),
data/clamav-0.103.0+dfsg/freshclam/execute.c:49:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if (system(text) == -1)
data/clamav-0.103.0+dfsg/freshclam/execute.c:56:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (system(text) == -1) {
data/clamav-0.103.0+dfsg/freshclam/execute.c:65:27:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                if (-1 == system(text)) {
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:1334:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(modifiedCommand, version);
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:1338:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(modifiedCommand, after_replace_version);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:3339:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf("%d = %d trunc " STDx64, inst->dest, inst->u.cast.source, inst->u.cast.mask);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:3342:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf("%d = %d sext " STDx64, inst->dest, inst->u.cast.source, inst->u.cast.mask);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:3345:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf("%d = %d zext " STDx64, inst->dest, inst->u.cast.source, inst->u.cast.mask);
data/clamav-0.103.0+dfsg/libclamav/c++/bytecode2llvm.cpp:265:61:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void cli_errmsg(const char *str, ...) __attribute__((format(printf, 1, 2)));
data/clamav-0.103.0+dfsg/libclamav/c++/bytecode2llvm.cpp:271:62:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void cli_warnmsg(const char *str, ...) __attribute__((format(printf, 1, 2)));
data/clamav-0.103.0+dfsg/libclamav/c++/bytecode2llvm.cpp:277:70:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void cli_dbgmsg_internal(const char *str, ...) __attribute__((format(printf, 1, 2)));
data/clamav-0.103.0+dfsg/libclamav/cache.c:360:15:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define ptree printf
data/clamav-0.103.0+dfsg/libclamav/crypto.c:883:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(authorities[nauths], "%s" PATHSEP "%s", tsdir, dirent->d_name);
data/clamav-0.103.0+dfsg/libclamav/cvd.c:631:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (!access(dupname, R_OK) && (dupfs = fopen(dupname, "rb"))) {
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1199: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(hr, mnemonic[s->real_op]);
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1203:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        switch (s->args[i].access) {
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1209:27:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    hr += sprintf(hr, "%s %lx", comma, (long)s->args[i].arg.q);
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1211:27:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    hr += sprintf(hr, "%s -%x", comma, -(int)s->args[i].arg.rq);
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1214:23:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                hr += sprintf(hr, "%s %s", comma, x86regs[s->args[i].reg]);
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1218:23:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                hr += sprintf(hr, "%s %s ptr ", comma, dis_size[s->args[i].size]);
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1219:39:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                if (s->segment) hr += sprintf(hr, "%s:", x86regs[s->segment]);
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1225:35:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                            hr += sprintf(hr, "%s", x86regs[s->args[i].arg.marg.r1]);
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1231:35:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                            hr += sprintf(hr, "%s*%d", x86regs[s->args[i].arg.marg.r1], s->args[i].arg.marg.scale);
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1236:27:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    hr += sprintf(hr, "%s%s", gotstuff, x86regs[s->args[i].arg.marg.r2]);
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1243:31:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        hr += sprintf(hr, "%s%x", gotstuff, s->args[i].arg.marg.disp);
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1734:34:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        w->arg[i][0] = s.args[i].access;
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1736:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        switch (s.args[i].access) {
data/clamav-0.103.0+dfsg/libclamav/disasmpriv.h:38:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    enum DIS_ACCESS access;
data/clamav-0.103.0+dfsg/libclamav/hostid_internal.c:191:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(ifr.ifr_name, devices[i].name);
data/clamav-0.103.0+dfsg/libclamav/inflate64_priv.h:68:37:  [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.
#  define Trace(x) {if (verbose>=0) fprintf x ;}
data/clamav-0.103.0+dfsg/libclamav/inflate64_priv.h:69:37:  [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.
#  define Tracev(x) {if (verbose>0) fprintf x ;}
data/clamav-0.103.0+dfsg/libclamav/inflate64_priv.h:70:38:  [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.
#  define Tracevv(x) {if (verbose>1) fprintf x ;}
data/clamav-0.103.0+dfsg/libclamav/inflate64_priv.h:71:46:  [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.
#  define Tracec(c,x) {if (verbose>0 && (c)) fprintf x ;}
data/clamav-0.103.0+dfsg/libclamav/inflate64_priv.h:72:47:  [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.
#  define Tracecv(c,x) {if (verbose>1 && (c)) fprintf x ;}
data/clamav-0.103.0+dfsg/libclamav/libmspack.c:286: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.
        vsnprintf(buff + len, sizeof(buff) - len - 2, fmt, args);
data/clamav-0.103.0+dfsg/libclamav/libmspack.c:419:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (!access(tmp_fname, R_OK) && cli_unlink(tmp_fname)) {
data/clamav-0.103.0+dfsg/libclamav/libmspack.c:522:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (!access(tmp_fname, R_OK) && cli_unlink(tmp_fname)) {
data/clamav-0.103.0+dfsg/libclamav/matcher.c:351:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(offcpy, offstr);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:675:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(next->buffer, &(buffer[part]));
data/clamav-0.103.0+dfsg/libclamav/mbox.c:680:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(&(rs->buffer[rs->bufferLen]), buffer);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:935:17:  [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(copy, buffer);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3646:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(arg, "filename=%s%s", id, number);
data/clamav-0.103.0+dfsg/libclamav/message.c:1870:17:  [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(base64buf, line);
data/clamav-0.103.0+dfsg/libclamav/message.c:2607:15:  [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).
        (void)strcpy(buffer, t1->d1);
data/clamav-0.103.0+dfsg/libclamav/mpool.c:860:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(newname, "%s.UNOFFICIAL", virname);
data/clamav-0.103.0+dfsg/libclamav/msdoc.c:949:57:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    sumstub.system       = sum32_endian_convert(sumstub.system);  /*unused*/
data/clamav-0.103.0+dfsg/libclamav/msdoc.h:120:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    uint32_t system; /* implementation-specific */
data/clamav-0.103.0+dfsg/libclamav/others.c:1435:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(path, "%s\\%s", name, dent->d_name);
data/clamav-0.103.0+dfsg/libclamav/others.c:1480:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                            sprintf(path, "%s" PATHSEP "%s", dirname, dent->d_name);
data/clamav-0.103.0+dfsg/libclamav/others.h:700:62:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void cli_warnmsg(const char *str, ...) __attribute__((format(printf, 1, 2)));
data/clamav-0.103.0+dfsg/libclamav/others.h:706:61:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void cli_errmsg(const char *str, ...) __attribute__((format(printf, 1, 2)));
data/clamav-0.103.0+dfsg/libclamav/others.h:712:82:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void cli_infomsg(const cli_ctx *ctx, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
data/clamav-0.103.0+dfsg/libclamav/others.h:747:70:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void cli_dbgmsg_internal(const char *str, ...) __attribute__((format(printf, 1, 2)));
data/clamav-0.103.0+dfsg/libclamav/others_common.c:145:5:  [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.
    vsnprintf(buff + len, sizeof(buff) - len, str, args); \
data/clamav-0.103.0+dfsg/libclamav/others_common.c:710:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(fname, PATHSEP "%s", dent->d_name);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:712:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(fname, "%s" PATHSEP "%s", dirname, dent->d_name);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:122:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(newname, "%s.UNOFFICIAL", virname);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:437:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(hexcpy, ++wild);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:921:13:  [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(buffer_cpy, buffer);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:998:13:  [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(buffer_cpy, buffer);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1276:13:  [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(buffer_cpy, buffer);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1921:13:  [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(buffer_cpy, buffer);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2496:13:  [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(buffer_cpy, buffer);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2620:13:  [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(buffer_cpy, buffer);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2774:13:  [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(buffer_cpy, buffer);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4334:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (access(filename, R_OK)) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4568:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(dbfile, "%s%s", dirname, dent->d_name);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4570:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(dbfile, "%s" PATHSEP "%s", dirname, dent->d_name);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4590:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (0 == access(dbfile, R_OK)) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4602:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (0 == access(dbfile, R_OK)) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4887:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(fname, "%s" PATHSEP "%s", dirname, dent->d_name);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4897:17:  [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(dbstat->statdname[dbstat->entries - 1], dent->d_name);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4939:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(fname, "%s" PATHSEP "%s", dbstat->dir, dent->d_name);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:148:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(fname, "%s" PATHSEP "%s", dirname, dent->d_name);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:439:30:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    if (0 != access(extract_fullpath, R_OK)) {
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1950:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(fullname, "%s" PATHSEP "%s", dirname, dent->d_name);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:3244:115:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                            if ((fpt->offset != 0) || (SCAN_UNPRIVILEGED) || (NULL == ctx->sub_filepath) || (0 != access(ctx->sub_filepath, R_OK))) {
data/clamav-0.103.0+dfsg/libclamav/scanners.c:3931:81:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if ((SCAN_UNPRIVILEGED) || (NULL == ctx->sub_filepath) || (0 != access(ctx->sub_filepath, R_OK))) {
data/clamav-0.103.0+dfsg/libclamav/scanners.c:4822:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(new_temp_prefix + strlen("YYYYMMDD_HHMMSS-"), target_basename);
data/clamav-0.103.0+dfsg/libclamav/stats.c:98:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(ret + strlen(ret), "%s%s", (i == 0) ? "" : " ", names[i]);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:100:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "{\n\t\"hostid\": \"%s\",\n", hostid);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:102:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf + strlen(buf), "\t\"host_info\": \"%s\",\n", intel->host_info);
data/clamav-0.103.0+dfsg/libclamav/yara_grammar.c:996:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:711: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/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:711: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/clamav-0.103.0+dfsg/libclamunrar_iface/unrar_iface.cpp:86:5:  [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, str, ap);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:220: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.
        snprintf(
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:177:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stdout, format, megabytes);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:181:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stdout, format, kilobytes);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:184:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stdout, format, bytes);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:334: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.
        snprintf(userAgent, sizeof(userAgent),
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1177:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (-1 == access(tmpdir, R_OK | W_OK)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1193:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (-1 == access(cvdfile, R_OK)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1200:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (-1 == access(cvdfile, R_OK)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1349:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (-1 == access(filename, R_OK)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1354:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (-1 == access(filename, R_OK)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1454:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (-1 == access("COPYING", R_OK)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1466:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (-1 != access(info, R_OK)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1474:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (-1 != access("daily.cfg", R_OK)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2045:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access(newLocalFilename, R_OK) && unlink(newLocalFilename)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2058:37:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if ((NULL != localFilename) && !access(localFilename, R_OK) && strcmp(newLocalFilename, localFilename))
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2253:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access(databaseName, R_OK) && unlink(databaseName)) {
data/clamav-0.103.0+dfsg/libltdl/libltdl/lt__private.h:117:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  void *		system;		/* system specific data */
data/clamav-0.103.0+dfsg/libltdl/loaders/dlopen.c:229:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (attempt, "%s%s", filename, member);
data/clamav-0.103.0+dfsg/libltdl/loaders/loadlibrary.c:170:7:  [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(wpath, filename);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:522:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (filename, "%.*s/%s", (int) dirname_len, dirname, dlname);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:718: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 (filename, dir_name);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:724:6:  [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 (filename +lendir, base_name);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:785:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  int		notfound	= access (filename, R_OK);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:922:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf (name, "lib%s", p+2);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1212:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(attempt, "%s%s", filename, ext);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1307:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf (archive_name, "%s%s.%s", libprefix, name + 3, libext);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1311:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf (archive_name, "%s.%s", name, libext);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1820: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  (buf, dirnam);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:2063:4:  [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(sym, handle->vtable->sym_prefix);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:2064:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat(sym, handle->info.name);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:2068:4:  [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(sym, handle->info.name);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:2072:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(sym, symbol);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:2090:7:  [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(sym, handle->vtable->sym_prefix);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:2091:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(sym, symbol);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:2095:7:  [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(sym, symbol);
data/clamav-0.103.0+dfsg/shared/actions.c:80:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(*newname, "%s" PATHSEP "%s", actarget, filename);
data/clamav-0.103.0+dfsg/shared/actions.c:88:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(*newname, "%s" PATHSEP "%s.%03u", actarget, filename, i);
data/clamav-0.103.0+dfsg/shared/misc.c:94:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(daily, "%s" PATHSEP "daily.cvd", opt->strarg);
data/clamav-0.103.0+dfsg/shared/misc.c:95:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(daily, R_OK))
data/clamav-0.103.0+dfsg/shared/misc.c:96:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(daily, "%s" PATHSEP "daily.cld", opt->strarg);
data/clamav-0.103.0+dfsg/shared/misc.c:98:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (!access(daily, R_OK) && (d1 = cl_cvdhead(daily))) {
data/clamav-0.103.0+dfsg/shared/misc.c:99:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(daily, "%s" PATHSEP "daily.cvd", dbdir);
data/clamav-0.103.0+dfsg/shared/misc.c:100:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    if (access(daily, R_OK))
data/clamav-0.103.0+dfsg/shared/misc.c:101:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(daily, "%s" PATHSEP "daily.cld", dbdir);
data/clamav-0.103.0+dfsg/shared/misc.c:103:26:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    if (!access(daily, R_OK) && (d2 = cl_cvdhead(daily))) {
data/clamav-0.103.0+dfsg/shared/misc.c:152:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s" PATHSEP "daily.cvd", pt);
data/clamav-0.103.0+dfsg/shared/misc.c:153:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access(path, R_OK)) {
data/clamav-0.103.0+dfsg/shared/misc.c:162:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s" PATHSEP "daily.cld", pt);
data/clamav-0.103.0+dfsg/shared/misc.c:163:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access(path, R_OK)) {
data/clamav-0.103.0+dfsg/shared/misc.c:246:13:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            execl("/usr/bin/ditto", "ditto", src, dest, NULL);
data/clamav-0.103.0+dfsg/shared/misc.c:450: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.
        snprintf(fname, 511, "%s" PATHSEP, filename);
data/clamav-0.103.0+dfsg/shared/output.c:148:13:  [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.
    bytes = vsnprintf(buff, len, str, args);
data/clamav-0.103.0+dfsg/shared/output.c:246: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(rotate_file, logg_file);
data/clamav-0.103.0+dfsg/shared/output.c:349:5:  [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.
    vsnprintf(buff, len, str, args);
data/clamav-0.103.0+dfsg/shared/output.c:511:5:  [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.
    vsnprintf(buff, len, str, args);
data/clamav-0.103.0+dfsg/shared/output.h:37:68:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
int mdprintf(int desc, const char *str, ...) __attribute__((format(printf, 2, 3)));
data/clamav-0.103.0+dfsg/shared/output.h:43:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
int logg(const char *str, ...) __attribute__((format(printf, 1, 2)));
data/clamav-0.103.0+dfsg/shared/output.h:59:58:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void mprintf(const char *str, ...) __attribute__((format(printf, 1, 2)));
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:461:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(newname, "%s.ascii", fname);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:653:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access(file, R_OK)) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:690:51:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (strcmp(dblist[i].ext, "info") && !access(dbfile, R_OK)) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:956:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (!access("last.hdb", R_OK)) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:979:41:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (dblist[i].count && !access(dbfile, R_OK))
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1012:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(olddb, R_OK))
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1014:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(olddb, R_OK))
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1050:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(header, smbuff);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1080:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(header, builder);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1136:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (!access(dbfile, R_OK)) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1166:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(header + strlen(header), "%s:", pt);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1177:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(header + strlen(header), "%s:", pt);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1184:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(header, builder);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1337:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(name, R_OK)) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1339:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (access(name, R_OK)) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1452:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(dbfile, "%s" PATHSEP "%s", dirname, dent->d_name);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1687:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(name, R_OK) && localdbdir)
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1911:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access(oldpath, R_OK) && (omd5 = cli_hashfile(oldpath, 1))) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3269:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (access(path, R_OK))
data/clamav-0.103.0+dfsg/sigtool/vba.c:1111:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(fname, "%s" PATHSEP "%s", dirname, dent->d_name);
data/clamav-0.103.0+dfsg/sigtool/vba.c:1307:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(fullname, "%s" PATHSEP "%s", dirname, dent->d_name);
data/clamav-0.103.0+dfsg/unit_tests/check_bytecode.c:119: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.
        snprintf(filestr, sizeof(filestr), OBJDIR "/%s", infile);
data/clamav-0.103.0+dfsg/unit_tests/check_bytecode.c:496:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "%s/%s", srcdir, dbname);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:519: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.
    snprintf(file, fsize, OBJDIR "/../test/%s", testfiles[i]);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1253:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "%s/%s", srcdir, name);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:747:13:  [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(p, test->command);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:752:17:  [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(p, test->extra);
data/clamav-0.103.0+dfsg/clamav-milter/clamav-milter.c:170:13:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
        if (chroot(opt->strarg) != 0) {
data/clamav-0.103.0+dfsg/clamav-milter/connpool.c:253:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:117:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    path   = getenv("PATH");
data/clamav-0.103.0+dfsg/libclamav/others.c:445:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(pid + tv.tv_usec * (pid + 1) + clock());
data/clamav-0.103.0+dfsg/libclamav/others_common.c:479:23:  [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 ((tmpdir = getenv(envs[i])))
data/clamav-0.103.0+dfsg/libclamav/others_common.c:844:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(tv.tv_usec + clock() + rand());
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1347:22:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    real_file_path = realpath(file_name, NULL);
data/clamav-0.103.0+dfsg/libltdl/loaders/loadlibrary.c:199:14:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    module = LoadLibrary (wpath);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1361:22:  [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.
	      search_path = getenv (LTDL_SEARCHPATH_VAR);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1369:22:  [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.
	      search_path = getenv (LT_MODULE_PATH_VAR);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1469:23:  [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.
		   && !find_handle (getenv (LTDL_SEARCHPATH_VAR), base_name,
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1472:23:  [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.
		   && !find_handle (getenv (LT_MODULE_PATH_VAR), base_name,
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1925:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  is_done = foreach_dirinpath (getenv(LTDL_SEARCHPATH_VAR), 0,
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1932:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  is_done = foreach_dirinpath (getenv(LT_MODULE_PATH_VAR), 0,
data/clamav-0.103.0+dfsg/shared/getopt.c:63:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("POSIXLY_CORRECT"))
data/clamav-0.103.0+dfsg/shared/getopt.c:163:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("POSIXLY_CORRECT")) {
data/clamav-0.103.0+dfsg/shared/linux/cert_util_linux.c:40: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.
    ca_bundle = getenv("CURL_CA_BUNDLE");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:504:15:  [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 ((pt = getenv("SIGNDPASS"))) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1067:15:  [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 ((pt = getenv("SIGNDUSER"))) {
data/clamav-0.103.0+dfsg/unit_tests/check_bytecode.c:486:26:  [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 *srcdir = getenv("srcdir");
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:429:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *s = getenv("unrar_disabled");
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:714:20:  [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.
    user_timeout = getenv("T");
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1243:26:  [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 *srcdir = getenv("srcdir");
data/clamav-0.103.0+dfsg/clamav-milter/clamav-milter.c:178: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 myname[255];
data/clamav-0.103.0+dfsg/clamav-milter/clamav-milter.c:424:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((fd = fopen(opt->strarg, "w")) == NULL) {
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:64:1:  [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 xvirushdr[255];
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:96: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 buffer[CLAMFIBUFSZ];
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:197: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(&cf->buffer[cf->bufsz], bodyp, len);
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:200: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(&cf->buffer[cf->bufsz], bodyp, CLAMFIBUFSZ - cf->bufsz);
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:204: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(cf->buffer, &bodyp[CLAMFIBUFSZ - cf->bufsz], len);
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:401:21:  [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 msg[255];
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:426:33:  [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 er[256];
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:440:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                    char *args[9]; /* avoid element is not computable at load time warns */
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:562: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[1024];
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.h:30:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char xvirushdr[255];
data/clamav-0.103.0+dfsg/clamav-milter/netcode.c:85: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 er[256];
data/clamav-0.103.0+dfsg/clamav-milter/netcode.c:111: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 er[256];
data/clamav-0.103.0+dfsg/clamav-milter/netcode.c:159: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 er[256];
data/clamav-0.103.0+dfsg/clamav-milter/netcode.c:209: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 fdbuf[CMSG_SPACE(sizeof(int))];
data/clamav-0.103.0+dfsg/clamav-milter/netcode.c:227: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 er[256];
data/clamav-0.103.0+dfsg/clamav-milter/netcode.c:236: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[128], *ret = NULL;
data/clamav-0.103.0+dfsg/clamav-milter/netcode.c:270:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char er[256];
data/clamav-0.103.0+dfsg/clamav-milter/netcode.c:290:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ret, buf, len);
data/clamav-0.103.0+dfsg/clamav-milter/netcode.c:420:17:  [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).
        nmask = atoi(mask);
data/clamav-0.103.0+dfsg/clamav-milter/whitelist.c:68: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[2048];
data/clamav-0.103.0+dfsg/clamav-milter/whitelist.c:72:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(f = fopen(fname, "r"))) {
data/clamav-0.103.0+dfsg/clamav-milter/whitelist.c:138:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[2048];
data/clamav-0.103.0+dfsg/clamav-milter/whitelist.c:139:22:  [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 *f    = fopen(r + 5, "r");
data/clamav-0.103.0+dfsg/clambc/bcrun.c:146: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[4096];
data/clamav-0.103.0+dfsg/clambc/bcrun.c:148:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen(file, "r");
data/clamav-0.103.0+dfsg/clambc/bcrun.c:284:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(opts->filename[0], "r");
data/clamav-0.103.0+dfsg/clambc/bcrun.c:415:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            funcid = atoi(opts->filename[1]);
data/clamav-0.103.0+dfsg/clambc/bcrun.c:424:68:  [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).
                rc = cli_bytecode_context_setparam_int(ctx, i - 2, atoi(opts->filename[i]));
data/clamav-0.103.0+dfsg/clambc/bcrun.c:433:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fd = open(opt->strarg, O_RDONLY);
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:125: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 buffer[1025];
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:126:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *tokens[128];
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:240:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[1024];
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:241:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *f = fopen("/etc/release", "r");
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:376: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 path[512], dbdir[512], clamd_dbdir[512], *pt;
data/clamav-0.103.0+dfsg/clamd/clamd.c:238: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 timestr[32];
data/clamav-0.103.0+dfsg/clamd/clamd.c:305:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((fd = fopen(opt->strarg, "w")) == NULL) {
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:112:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *env[4];
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:164:11:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
    pid = vfork();
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:293:22:  [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 buff[CMSG_SPACE(sizeof(int))];
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:681: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 err[128];
data/clamav-0.103.0+dfsg/clamd/scanner.c:380: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 fdstr[32];
data/clamav-0.103.0+dfsg/clamd/scanner.c:451:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[FILEBUFF];
data/clamav-0.103.0+dfsg/clamd/scanner.c:452: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 peer_addr[32];
data/clamav-0.103.0+dfsg/clamd/scanner.h:64: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 virhash[33];
data/clamav-0.103.0+dfsg/clamd/server-th.c:508:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[BUFFSIZE + 1];
data/clamav-0.103.0+dfsg/clamd/server-th.c:896: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 timestr[32];
data/clamav-0.103.0+dfsg/clamd/server-th.c:903:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[BUFFSIZE + 1];
data/clamav-0.103.0+dfsg/clamd/session.c: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 err[BUFFSIZE + sizeof(". ERROR")];
data/clamav-0.103.0+dfsg/clamd/session.c:182:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(err, ". ERROR");
data/clamav-0.103.0+dfsg/clamd/session.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(dup_conn, conn, sizeof(*conn));
data/clamav-0.103.0+dfsg/clamd/session.c:493: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 timestr[32];
data/clamav-0.103.0+dfsg/clamd/tcpserver.c:55:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char host[NI_MAXHOST], serv[NI_MAXSERV];
data/clamav-0.103.0+dfsg/clamd/tcpserver.c:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *estr, port[10];
data/clamav-0.103.0+dfsg/clamdscan/clamdscan.c:70: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 buffer[26];
data/clamav-0.103.0+dfsg/clamdscan/client.c:83: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 *ipaddr, port[10];
data/clamav-0.103.0+dfsg/clamdscan/proto.c:84: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 port[10];
data/clamav-0.103.0+dfsg/clamdscan/proto.c:196: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 fdbuf[CMSG_SPACE(sizeof(int))];
data/clamav-0.103.0+dfsg/clamdscan/proto.c:201:19:  [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 ((fd = open(filename, O_RDONLY)) < 0) {
data/clamav-0.103.0+dfsg/clamdscan/proto.c:348:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                static char last_filename[PATH_MAX + 1] = {'\0'};
data/clamav-0.103.0+dfsg/clamdscan/proto.c:559:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if ((rid = atoi(bol))) {
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:186:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *status_bar_keys[10];
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:921:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char cmd[16];
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:984: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[128];
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1043: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[128];
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1044: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 timbuf[14];
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1047: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 mem[6];
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1180: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[1025];
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1218: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(stats->engine_version, pstart, p - pstart);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1232: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(stats->db_version, pstart, p - pstart);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1316: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[1024];
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1404:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[512];
data/clamav-0.103.0+dfsg/clamonacc/c-thread-pool/thpool.c:320: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 thread_name[128] = {0};
data/clamav-0.103.0+dfsg/clamonacc/c-thread-pool/thpool.c:321:2:  [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(thread_name, "thread-pool-%d", thread_p->id);
data/clamav-0.103.0+dfsg/clamonacc/clamonacc.c:318: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 faerr[128];
data/clamav-0.103.0+dfsg/clamonacc/client/communication.h:36: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[PATH_MAX + 1024];
data/clamav-0.103.0+dfsg/clamonacc/client/protocol.c:138: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 fdbuf[CMSG_SPACE(sizeof(int))];
data/clamav-0.103.0+dfsg/clamonacc/client/protocol.c:145:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if ((fd = open(filename, O_RDONLY)) < 0) {
data/clamav-0.103.0+dfsg/clamonacc/client/protocol.c:296:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                static char last_filename[PATH_MAX + 1] = {'\0'};
data/clamav-0.103.0+dfsg/clamonacc/fanotif/fanotif.c:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4096];
data/clamav-0.103.0+dfsg/clamonacc/fanotif/fanotif.c:143: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 proc_fd_fname[1024];
data/clamav-0.103.0+dfsg/clamonacc/fanotif/fanotif.c:144: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 fname[1024];
data/clamav-0.103.0+dfsg/clamonacc/fanotif/fanotif.c:189: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(proc_fd_fname, "/proc/self/fd/%d", fmd->fd);
data/clamav-0.103.0+dfsg/clamonacc/fanotif/fanotif.c:231:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(event_data->fmd, fmd, sizeof(struct fanotify_event_metadata));
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nwatch_str[MAX_WATCH_LEN];
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:144:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    nwfd = open(nwatch_file, O_RDONLY);
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:366: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[4096];
data/clamav-0.103.0+dfsg/clamonacc/misc/fts.c:236:47:  [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 (!ISSET(FTS_NOCHDIR) && (sp->fts_rfd = open(".", O_RDONLY, 0)) < 0)
data/clamav-0.103.0+dfsg/clamonacc/misc/fts.c:364:33:  [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 ((p->fts_symfd = open(".", O_RDONLY, 0)) < 0) {
data/clamav-0.103.0+dfsg/clamonacc/misc/fts.c:458:26:  [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).
                         open(".", O_RDONLY, 0)) < 0) {
data/clamav-0.103.0+dfsg/clamonacc/misc/fts.c:595:15:  [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 ((fd = open(".", O_RDONLY, 0)) < 0)
data/clamav-0.103.0+dfsg/clamonacc/misc/fts.c:1147:28:  [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 (fd < 0 && (newfd = open(path, O_RDONLY, 0)) < 0)
data/clamav-0.103.0+dfsg/clamonacc/misc/priv_fts.h:176: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 fts_name[1];       /* file name */
data/clamav-0.103.0+dfsg/clamonacc/misc/priv_fts.h:206: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 fts_name[1];         /* file name */
data/clamav-0.103.0+dfsg/clamonacc/misc/utils.c:56: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 path[32];
data/clamav-0.103.0+dfsg/clamonacc/misc/utils.c:170:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    opt_file = fopen(fname, "r");
data/clamav-0.103.0+dfsg/clamscan/clamscan.c:70: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 buffer[26];
data/clamav-0.103.0+dfsg/clamscan/manager.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(str + na, c->chains[i], n);
data/clamav-0.103.0+dfsg/clamscan/manager.c:184:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[128];
data/clamav-0.103.0+dfsg/clamscan/manager.c:211: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 prev[128];
data/clamav-0.103.0+dfsg/clamscan/manager.c:410:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char str[128];
data/clamav-0.103.0+dfsg/clamscan/manager.c:569:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *file, buff[FILEBUFF];
data/clamav-0.103.0+dfsg/clamscan/manager.c:589:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fs = fopen(file, "wb"))) {
data/clamav-0.103.0+dfsg/clamscan/manager.c:641:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *file, cwd[1024], *pua_cats = NULL;
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:96: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(mem, sp, ep - sp);
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:120: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(str + wd->len, ptr, len);
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:154:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char userAgent[128];
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:304: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(authenticity_token, sp, ep - sp);
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:394: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(submissionID, sp, ep - sp);
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:619: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[512];
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:628: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).
    fp = fopen(filename, "w");
data/clamav-0.103.0+dfsg/cmake/CheckFDPassing.c:35: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 fdbuf[CMSG_SPACE(sizeof(int))];
data/clamav-0.103.0+dfsg/cmake/CheckFDPassing.c:65: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[256];
data/clamav-0.103.0+dfsg/cmake/CheckFDPassing.c:75: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 buf[CMSG_SPACE(sizeof(int))];
data/clamav-0.103.0+dfsg/examples/ex1.c:58:15:  [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 ((fd = open(argv[1], O_RDONLY)) == -1) {
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/embedpe_sample.c:20:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[STR_MAXLEN];
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/ftype_sample.c:21:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[STR_MAXLEN];
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/notpdf_sample.c:19:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[STR_MAXLEN];
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/embedpe_sample.c:31:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[STR_MAXLEN];
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/ftype_sample.c:32:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[STR_MAXLEN];
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/onlype_sample.c:34:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[STR_MAXLEN];
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/onlype_sample.c:20:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[STR_MAXLEN];
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:75:1:  [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 g_freshclamTempDirectory[PATH_MAX] = {0};
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:130:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = fopen(pidfile, "w")) == NULL) {
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:233: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 firstline[256];
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:234: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 lastline[256];
data/clamav-0.103.0+dfsg/freshclam/notify.c:52: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 port[6];
data/clamav-0.103.0+dfsg/freshclam/notify.c:152:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[20];
data/clamav-0.103.0+dfsg/fuzz/clamav_dbload_fuzzer.cpp:125:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fuzzdb = fopen(kClamAVState.tmp_db_name, "w");
data/clamav-0.103.0+dfsg/fuzz/clamav_scanfile_fuzzer.cpp:121:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fuzzfile = fopen(kClamAVState.tmp_file_name, "w");
data/clamav-0.103.0+dfsg/libclamav/7z/7zBuf2.c:36:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, p->data, p->pos);
data/clamav-0.103.0+dfsg/libclamav/7z/7zBuf2.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(p->data + p->pos, buf, size);
data/clamav-0.103.0+dfsg/libclamav/7z/7zDec.c:240: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(outBuffer, inBuf, curSize);
data/clamav-0.103.0+dfsg/libclamav/7z/7zFile.c:48:13:  [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).
  p->file = fopen(name, writeMode ? "wb+" : "rb");
data/clamav-0.103.0+dfsg/libclamav/7z/7zIn.c:1060:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p->FileNames.data, sd->Data, namesSize);
data/clamav-0.103.0+dfsg/libclamav/7z/7zStream.c:46: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(buf, lookBuf, *size);
data/clamav-0.103.0+dfsg/libclamav/7z/7zStream.c:121: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(buf, p->buf + p->pos, rem);
data/clamav-0.103.0+dfsg/libclamav/7z/Lzma2Dec.c:161: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(p->dic + p->dicPos, src, size);
data/clamav-0.103.0+dfsg/libclamav/7z/Lzma2Dec.c:319: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(dest, p->decoder.dic + dicPos, outSizeCur);
data/clamav-0.103.0+dfsg/libclamav/7z/LzmaDec.c:783: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(p->tempBuf, src, inSize);
data/clamav-0.103.0+dfsg/libclamav/7z/LzmaDec.c:871: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(dest, p->dic + dicPos, outSizeCur);
data/clamav-0.103.0+dfsg/libclamav/7z/Ppmd7Dec.c:77: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.
#define MASK(sym) ((signed char *)charMask)[sym]
data/clamav-0.103.0+dfsg/libclamav/7z/XzDec.c:152: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(dest, p->buf + p->bufPos, curSize);
data/clamav-0.103.0+dfsg/libclamav/7z/XzDec.c:167: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(p->buf + p->bufTotal, src, curSize);
data/clamav-0.103.0+dfsg/libclamav/7z/XzDec.c:553: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(filter->props, header + pos, (size_t)size);
data/clamav-0.103.0+dfsg/libclamav/7z/XzDec.c:735:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(p->buf + p->pos, src, cur);
data/clamav-0.103.0+dfsg/libclamav/7z/XzDec.c:769: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(p->buf + p->pos, src, cur);
data/clamav-0.103.0+dfsg/libclamav/7z/XzDec.c:859:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p->buf + p->pos, src, cur);
data/clamav-0.103.0+dfsg/libclamav/7z/XzIn.c:300: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(data, p->streams, p->num * sizeof(CXzStream));
data/clamav-0.103.0+dfsg/libclamav/arc4.c:97: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(data, testdata[i].plaintext, len);
data/clamav-0.103.0+dfsg/libclamav/asn1.c:146: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(&raw[1], data, elen);
data/clamav-0.103.0+dfsg/libclamav/asn1.c:1569: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.
                        char raw_issuer[CRT_RAWMAXLEN * 2 + 1], raw_subject[CRT_RAWMAXLEN * 2 + 1], raw_serial[CRT_RAWMAXLEN * 3 + 1];
data/clamav-0.103.0+dfsg/libclamav/asn1.c:1570: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.
                        char issuer[SHA1_HASH_SIZE * 2 + 1], subject[SHA1_HASH_SIZE * 2 + 1], serial[SHA1_HASH_SIZE * 2 + 1];
data/clamav-0.103.0+dfsg/libclamav/asn1.c:1571: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.
                        char mod[1024 + 1], exp[1024 + 1];
data/clamav-0.103.0+dfsg/libclamav/asn1.c:1580:29:  [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(&raw_issuer[j * 2], "%02x", x509->raw_issuer[j + 1]);
data/clamav-0.103.0+dfsg/libclamav/asn1.c:1582:29:  [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(&raw_subject[j * 2], "%02x", x509->raw_subject[j + 1]);
data/clamav-0.103.0+dfsg/libclamav/asn1.c:1584:29:  [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(&raw_serial[j * 3], "%02x%c", x509->raw_serial[j + 1], (j != x509->raw_serial[0] - 1) ? ':' : '\0');
data/clamav-0.103.0+dfsg/libclamav/asn1.c:1586:29:  [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(&issuer[j * 2], "%02x", x509->issuer[j]);
data/clamav-0.103.0+dfsg/libclamav/asn1.c:1587:29:  [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(&subject[j * 2], "%02x", x509->subject[j]);
data/clamav-0.103.0+dfsg/libclamav/asn1.c:1588:29:  [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(&serial[j * 2], "%02x", x509->serial[j]);
data/clamav-0.103.0+dfsg/libclamav/asn1.c:1933: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(md, cobj.content, hashsize);
data/clamav-0.103.0+dfsg/libclamav/asn1.c:2284:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char sha1[SHA1_HASH_SIZE * 2 + 1];
data/clamav-0.103.0+dfsg/libclamav/asn1.c:2286:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(&sha1[i * 2], "%02x", ((uint8_t *)(tagval3.content))[i]);
data/clamav-0.103.0+dfsg/libclamav/asn1.c:2392: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 hashtxt[MAX_HASH_SIZE * 2 + 1];
data/clamav-0.103.0+dfsg/libclamav/asn1.c:2394:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(&hashtxt[i * 2], "%02x", hash[i]);
data/clamav-0.103.0+dfsg/libclamav/aspack.c:264: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(stream->decrypt_dict, &stream->array2[1], 757);
data/clamav-0.103.0+dfsg/libclamav/aspack.c:435: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(wrkbuf, image + block_rva, block_size);
data/clamav-0.103.0+dfsg/libclamav/aspack.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(outsects, sections, sizeof(struct cli_exe_section) * sectcount);
data/clamav-0.103.0+dfsg/libclamav/autoit.c:647: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 tempfile[1024];
data/clamav-0.103.0+dfsg/libclamav/autoit.c:674: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(b, base, s);
data/clamav-0.103.0+dfsg/libclamav/autoit.c:690: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(b, base, s);
data/clamav-0.103.0+dfsg/libclamav/autoit.c:734: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(UNP.inputbuf, base, UNP.csize);
data/clamav-0.103.0+dfsg/libclamav/autoit.c:839:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((i = open(tempfile, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) < 0) {
data/clamav-0.103.0+dfsg/libclamav/autoit.c:971: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 tempfile[1024];
data/clamav-0.103.0+dfsg/libclamav/autoit.c:1002: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(b, base, s * 2);
data/clamav-0.103.0+dfsg/libclamav/autoit.c:1022: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(b, base, s * 2);
data/clamav-0.103.0+dfsg/libclamav/autoit.c:1070: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(UNP.inputbuf, base, UNP.csize);
data/clamav-0.103.0+dfsg/libclamav/autoit.c:1370:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy(&buf[UNP.cur_output], &UNP.outputbuf[UNP.cur_input], chars);
data/clamav-0.103.0+dfsg/libclamav/autoit.c:1448:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((i = open(tempfile, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) < 0) {
data/clamav-0.103.0+dfsg/libclamav/bignum_fast.h:331:46:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define fp_copy(a, b) (void)(((a) != (b)) && memcpy((b), (a), sizeof(fp_int)))
data/clamav-0.103.0+dfsg/libclamav/blob.c:264: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(&b->data[b->len], data, len);
data/clamav-0.103.0+dfsg/libclamav/blob.c:508: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).
    fb->fd = open(fullname, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY | O_EXCL, 0600);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:160: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 fullname[1025];
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:166:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fd = open(fullname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:1579: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 firstbuf[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:1601:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            linelength = len ? atoi(len + 1) : 4096;
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:2815: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(&ctx.lsigcnt, lsigcnt, 64 * 4);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:2816: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(&ctx.lsigoff, lsigsuboff, 64 * 4);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:2962: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[128];
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:3283: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 inst_str[256];
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.c:213: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 err[128];
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.c:229:22:  [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).
        ctx->outfd = open(ctx->tempfile, O_RDWR | O_CREAT | O_EXCL | O_TRUNC | O_BINARY, 0600);
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.c:408: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[4096];
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.c:486: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(section, &ctx->sections[num], sizeof(struct cli_exe_section));
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.c:1315: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 in[2];
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.c:1754: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(env, ctx->env, len);
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.h:839:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
int32_t atoi(const uint8_t* str, int32_t size);
data/clamav-0.103.0+dfsg/libclamav/bytecode_detect.c:88: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[128];
data/clamav-0.103.0+dfsg/libclamav/bytecode_detect.c:90:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen("/proc/self/status", "r");
data/clamav-0.103.0+dfsg/libclamav/bytecode_detect.c:107: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[128];
data/clamav-0.103.0+dfsg/libclamav/bytecode_detect.c:110:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f     = fopen("/proc/filesystems", "r");
data/clamav-0.103.0+dfsg/libclamav/bytecode_detect.c:112:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        f = fopen("/selinux/enforce", "r");
data/clamav-0.103.0+dfsg/libclamav/bytecode_detect.c:132:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen("/selinux/enforce", "r");
data/clamav-0.103.0+dfsg/libclamav/bytecode_vm.c:134: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 data[STACK_CHUNKSIZE];
data/clamav-0.103.0+dfsg/libclamav/bytecode_vm.c:253: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(&values[func->numBytes - func->numConstants * 8], func->constants,
data/clamav-0.103.0+dfsg/libclamav/bytecode_vm.c:1187:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(arg1, arg2, (int32_t)arg3);
data/clamav-0.103.0+dfsg/libclamav/c++/bytecode2llvm.cpp:224:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char b[16];
data/clamav-0.103.0+dfsg/libclamav/c++/bytecode2llvm.cpp:428:35:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	.Case("memcpy", (void*)(intptr_t)memcpy)
data/clamav-0.103.0+dfsg/libclamav/c++/bytecode2llvm.cpp:2296:60:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    EE->addGlobalMapping(CF->FRealmemcpy, (void*)(intptr_t)memcpy);
data/clamav-0.103.0+dfsg/libclamav/c++/bytecode2llvm.cpp:2298:81:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    sys::DynamicLibrary::AddSymbol(CF->FRealmemcpy->getName(), (void*)(intptr_t)memcpy);
data/clamav-0.103.0+dfsg/libclamav/c++/bytecode2llvm.cpp:2366: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 err[128];
data/clamav-0.103.0+dfsg/libclamav/c++/bytecode2llvm.cpp:2468:6:  [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[256];
data/clamav-0.103.0+dfsg/libclamav/c++/bytecode2llvm.cpp:2544:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char name_salt[16] = { 16, 38, 97, 12, 8, 4, 72, 196, 217, 144, 33, 124, 18, 11, 17, 253 };
data/clamav-0.103.0+dfsg/libclamav/c++/bytecode2llvm.cpp:2547: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 salt[48];
data/clamav-0.103.0+dfsg/libclamav/c++/bytecode2llvm.cpp:2548: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(salt, name_salt, 16);
data/clamav-0.103.0+dfsg/libclamav/cache.c:118: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(&md5a, md5, 16);
data/clamav-0.103.0+dfsg/libclamav/cache.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(map, &tmp_set, sizeof(tmp_set));
data/clamav-0.103.0+dfsg/libclamav/cache.c:558: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(hash, md5, 16);
data/clamav-0.103.0+dfsg/libclamav/cache.c:593: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(hash, md5, 16);
data/clamav-0.103.0+dfsg/libclamav/cache.c:689: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(hash, md5, 16);
data/clamav-0.103.0+dfsg/libclamav/clamav.h:49:25:  [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).
#define safe_open(a, b) open(a, b | O_LARGEFILE)
data/clamav-0.103.0+dfsg/libclamav/clamav.h:58:19:  [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).
#define safe_open open
data/clamav-0.103.0+dfsg/libclamav/clamav.h:331: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 md5[16];
data/clamav-0.103.0+dfsg/libclamav/conv.c:139: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 *)p, (void *)buf, elen);
data/clamav-0.103.0+dfsg/libclamav/cpio.c:57: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 magic[6];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dev[6];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ino[6];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:60: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 mode[6];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:61: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 uid[6];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char gid[6];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:63: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 nlink[6];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:64: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 rdev[6];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:65: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 mtime[11];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:66: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 namesize[6];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:67: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 filesize[11];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:71: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 magic[6];
data/clamav-0.103.0+dfsg/libclamav/cpio.c: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 ino[8];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:73: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 mode[8];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:74: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 uid[8];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:75: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 gid[8];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:76:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nlink[8];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:77: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 mtime[8];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:78: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 filesize[8];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:79: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 devmajor[8];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:80: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 devminor[8];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:81:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char rdevmajor[8];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:82: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 rdevminor[8];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:83: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 namesize[8];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:84: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 check[8];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[513];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:194:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[513], buff[12];
data/clamav-0.103.0+dfsg/libclamav/cpio.c:280:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[513], buff[9];
data/clamav-0.103.0+dfsg/libclamav/crypto.c:575: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).
    fp = fopen(x509path, "r");
data/clamav-0.103.0+dfsg/libclamav/crypto.c:601: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).
    fp = fopen(x509path, "r");
data/clamav-0.103.0+dfsg/libclamav/crypto.c:627: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).
    fp = fopen(x509path, "r");
data/clamav-0.103.0+dfsg/libclamav/crypto.c:701: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).
    fp = fopen(keypath, "r");
data/clamav-0.103.0+dfsg/libclamav/crypto.c:809: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).
    fp = fopen(keypath, "r");
data/clamav-0.103.0+dfsg/libclamav/crypto.c:1109: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 *)(&localtm), (void *)ltm, sizeof(struct tm));
data/clamav-0.103.0+dfsg/libclamav/crypto.c:1125: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).
    fp = fopen(file, "r");
data/clamav-0.103.0+dfsg/libclamav/cvd.c:68: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 *path, osize[13], name[101], type;
data/clamav-0.103.0+dfsg/libclamav/cvd.c:69: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 block[TAR_BLOCKSIZE];
data/clamav-0.103.0+dfsg/libclamav/cvd.c:151:29:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (!(outfile = fopen(path, "wb"))) {
data/clamav-0.103.0+dfsg/libclamav/cvd.c:213: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 osize[13], name[101];
data/clamav-0.103.0+dfsg/libclamav/cvd.c:214: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 block[TAR_BLOCKSIZE];
data/clamav-0.103.0+dfsg/libclamav/cvd.c:219: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 hash[32];
data/clamav-0.103.0+dfsg/libclamav/cvd.c:426:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    cvd->version = atoi(pt);
data/clamav-0.103.0+dfsg/libclamav/cvd.c:435:17:  [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).
    cvd->sigs = atoi(pt);
data/clamav-0.103.0+dfsg/libclamav/cvd.c:444:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    cvd->fl = atoi(pt);
data/clamav-0.103.0+dfsg/libclamav/cvd.c:472:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        cvd->stime = atoi(pt);
data/clamav-0.103.0+dfsg/libclamav/cvd.c:485: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 head[513], *pt;
data/clamav-0.103.0+dfsg/libclamav/cvd.c:489:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fs = fopen(file, "rb")) == NULL) {
data/clamav-0.103.0+dfsg/libclamav/cvd.c:524: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 *md5, head[513];
data/clamav-0.103.0+dfsg/libclamav/cvd.c:541: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(cvdpt, cvd, sizeof(struct cl_cvd));
data/clamav-0.103.0+dfsg/libclamav/cvd.c:582:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fs = fopen(file, "rb")) == NULL) {
data/clamav-0.103.0+dfsg/libclamav/cvd.c:631:48:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!access(dupname, R_OK) && (dupfs = fopen(dupname, "rb"))) {
data/clamav-0.103.0+dfsg/libclamav/cvd.c:722:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(file, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/dconf.c:346: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).
        if ((unsigned int)atoi(pt) > CL_FLEVEL_DCONF) {
data/clamav-0.103.0+dfsg/libclamav/dconf.c:359:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if ((unsigned int)atoi(pt) < CL_FLEVEL_DCONF) {
data/clamav-0.103.0+dfsg/libclamav/dconf.c:373: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 buffer[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1197: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 comma[2] = {'\0', '\0'};
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1241:31:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        hr += sprintf(hr, "-%x", -s->args[i].arg.marg.disp);
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1724: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 hr[128];
data/clamav-0.103.0+dfsg/libclamav/dlp.c:159:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    uint32_t iin = atoi(digits);
data/clamav-0.103.0+dfsg/libclamav/dlp.c:183: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 cc_digits[20];
data/clamav-0.103.0+dfsg/libclamav/dlp.c:305: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 numbuf[12];
data/clamav-0.103.0+dfsg/libclamav/dlp.c:636: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 micr_digits[9];
data/clamav-0.103.0+dfsg/libclamav/dmg.c:993: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 outfile[PATH_MAX + 1];
data/clamav-0.103.0+dfsg/libclamav/dmg.c:1047:36:  [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).
    ofd                          = open(outfile, O_RDWR | O_CREAT | O_EXCL | O_TRUNC | O_BINARY, 0600);
data/clamav-0.103.0+dfsg/libclamav/dmg.c:1049: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 err[128];
data/clamav-0.103.0+dfsg/libclamav/dmg.c:1118: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).
    if ((ofd = open(xmlfile, O_CREAT | O_RDWR | O_EXCL | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) < 0) {
data/clamav-0.103.0+dfsg/libclamav/dmg.c:1119: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 err[128];
data/clamav-0.103.0+dfsg/libclamav/dsig.c:155: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 *decoded, digest1[HASH_LEN], digest2[HASH_LEN], digest3[HASH_LEN], *salt;
data/clamav-0.103.0+dfsg/libclamav/dsig.c:156: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 mask[BLK_LEN], data[BLK_LEN], final[8 + 2 * HASH_LEN], c[4];
data/clamav-0.103.0+dfsg/libclamav/dsig.c:177: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(mask, decoded, BLK_LEN);
data/clamav-0.103.0+dfsg/libclamav/dsig.c:178: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(digest2, &decoded[BLK_LEN], HASH_LEN);
data/clamav-0.103.0+dfsg/libclamav/dsig.c:195: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(&data[i * 32], digest3, BLK_LEN - i * HASH_LEN);
data/clamav-0.103.0+dfsg/libclamav/dsig.c:197: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(&data[i * 32], digest3, HASH_LEN);
data/clamav-0.103.0+dfsg/libclamav/dsig.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(&final[8], sha256, HASH_LEN);
data/clamav-0.103.0+dfsg/libclamav/dsig.c:213: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(&final[8 + HASH_LEN], salt, SALT_LEN);
data/clamav-0.103.0+dfsg/libclamav/egg.c:2388:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(decompressed + decompressed_size, currBlock->compressedData, currBlock->blockHeader->compress_size);
data/clamav-0.103.0+dfsg/libclamav/egg.c:2417:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(decompressed + decompressed_size, decompressed_block, decompressed_block_size);
data/clamav-0.103.0+dfsg/libclamav/egg.c:2449:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(decompressed + decompressed_size, decompressed_block, decompressed_block_size);
data/clamav-0.103.0+dfsg/libclamav/entconv.c:251:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(output, input, maxcopy);
data/clamav-0.103.0+dfsg/libclamav/entconv.c:677: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 tmp4[4];
data/clamav-0.103.0+dfsg/libclamav/entconv.c:696: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(tmp4, input, alignfix);
data/clamav-0.103.0+dfsg/libclamav/entconv.c:810: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(out_utf8, in, in_size);
data/clamav-0.103.0+dfsg/libclamav/entconv.c:853:31:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
                cchWideChar = MultiByteToWideChar(
data/clamav-0.103.0+dfsg/libclamav/entconv.c:873:31:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
                cchWideChar = MultiByteToWideChar(
data/clamav-0.103.0+dfsg/libclamav/entconv.h:228: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 entity_buff[MAX_ENTITY_SIZE + 2];
data/clamav-0.103.0+dfsg/libclamav/events.c:300:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(v_data, data, len);
data/clamav-0.103.0+dfsg/libclamav/events.c:311: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((char *)v_data + ev->count, data, len);
data/clamav-0.103.0+dfsg/libclamav/events.c:349: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(val, &ev->u, sizeof(*val));
data/clamav-0.103.0+dfsg/libclamav/explode.c:212: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(&X->window[X->got], X->next_in, X->avail_in);              \
data/clamav-0.103.0+dfsg/libclamav/explode.c:219: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(&X->window[X->got], X->next_in, need);                         \
data/clamav-0.103.0+dfsg/libclamav/filetypes.c:276: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[MAGIC_BUFFER_SIZE];
data/clamav-0.103.0+dfsg/libclamav/filetypes.c:326:19:  [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 lhdr_magic[4]    = {0x50, 0x4b, 0x03, 0x04};
data/clamav-0.103.0+dfsg/libclamav/filetypes.c:441:30:  [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 decodedbuff[(MAGIC_BUFFER_SIZE + 1) * 2];
data/clamav-0.103.0+dfsg/libclamav/filtering.c:434: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 patc[MAXPATLEN];
data/clamav-0.103.0+dfsg/libclamav/fmap.c:115: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 hash[16] = {'\0'};
data/clamav-0.103.0+dfsg/libclamav/fmap.c:144: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(m->maphash, hash, 16);
data/clamav-0.103.0+dfsg/libclamav/fmap.c:183: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 hash[16] = {'\0'};
data/clamav-0.103.0+dfsg/libclamav/fmap.c:237: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(m->maphash, hash, 16);
data/clamav-0.103.0+dfsg/libclamav/fmap.c:257: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 hash[16]   = {'\0'};
data/clamav-0.103.0+dfsg/libclamav/fmap.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(duplicate_map, map, sizeof(cl_fmap_t));
data/clamav-0.103.0+dfsg/libclamav/fmap.c:292: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(duplicate_map->maphash, hash, 16);
data/clamav-0.103.0+dfsg/libclamav/fmap.c:811:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dst, src, endptr - src);
data/clamav-0.103.0+dfsg/libclamav/fmap.c:815:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dst, src, fullen);
data/clamav-0.103.0+dfsg/libclamav/fmap.c:910:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dst, src, endptr - src);
data/clamav-0.103.0+dfsg/libclamav/fmap.c:914:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dst, src, len);
data/clamav-0.103.0+dfsg/libclamav/fmap.h:83:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char maphash[16];
data/clamav-0.103.0+dfsg/libclamav/fmap.h: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(dst, src, len);
data/clamav-0.103.0+dfsg/libclamav/fpu.c:36: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 mem[8];
data/clamav-0.103.0+dfsg/libclamav/hashtab.c:634: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[1024];
data/clamav-0.103.0+dfsg/libclamav/hashtab.c:636: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 l[1024];
data/clamav-0.103.0+dfsg/libclamav/hashtab.c:922: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((char *)m->u.sized_values + m->last_insert * m->valuesize,
data/clamav-0.103.0+dfsg/libclamav/hashtab.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(v->value, value, valuesize);
data/clamav-0.103.0+dfsg/libclamav/hfsplus.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(volHeader, mPtr, 512);
data/clamav-0.103.0+dfsg/libclamav/hfsplus.c:254: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(nodeDesc, mPtr, sizeof(hfsNodeDescriptor));
data/clamav-0.103.0+dfsg/libclamav/hfsplus.c:267: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(headerRec, mPtr + sizeof(hfsNodeDescriptor), sizeof(hfsHeaderRecord));
data/clamav-0.103.0+dfsg/libclamav/hfsplus.c:529: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(&nodeDesc, nodeBuf, 14);
data/clamav-0.103.0+dfsg/libclamav/hfsplus.c:613: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(record, &(nodeBuf[recordStart + sizeof(hfsPlusAttributeKey) + attrKey.nameLength * 2 + sizeof(attrRec)]), attrRec.attributeSize);
data/clamav-0.103.0+dfsg/libclamav/hfsplus.c:919: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(&nodeDesc, nodeBuf, 14);
data/clamav-0.103.0+dfsg/libclamav/hfsplus.c:981: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(&rectype, &(nodeBuf[recordStart + keylen + 2]), 2);
data/clamav-0.103.0+dfsg/libclamav/hfsplus.c:999: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(&fileRec, &(nodeBuf[recordStart + keylen + 2]), sizeof(hfsPlusCatalogFile));
data/clamav-0.103.0+dfsg/libclamav/hfsplus.h:322: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 type[4];
data/clamav-0.103.0+dfsg/libclamav/hostid_internal.c:248: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 raw_md5[16];
data/clamav-0.103.0+dfsg/libclamav/hostid_internal.c:294: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(printable_md5 + len, "%02x", raw_md5[i]);
data/clamav-0.103.0+dfsg/libclamav/hostid_internal.h:26: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 mac[19];
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:93: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[HTML_FILE_BUFF_LEN];
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:99: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 contents[MAX_TAG_CONTENTS_LENGTH + 1];
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:207: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(chunk, start, chunk_len);
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:217: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(chunk, start, chunk_len);
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:329: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(fbuff->buffer + fbuff->length, str, len);
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:526:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, cont->contents, cont->pos);
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:650: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 filename[1024], tag[HTML_STR_LENGTH + 1], tag_arg[HTML_STR_LENGTH + 1];
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:651: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 tag_val[HTML_STR_LENGTH + 1], *tmp_file, *arg_value;
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:665: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 entity_val[HTML_STR_LENGTH + 1];
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:718:28:  [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).
        file_buff_o2->fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR);
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:736:30:  [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).
        file_buff_text->fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR);
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1444:42:  [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 buff[10];
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1649:43:  [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).
                        file_tmp_o1->fd = open(tmp_file, O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR);
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1898: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 *ptr, filename[1024];
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1909:11:  [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).
    ofd = open((const char *)filename, O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR);
data/clamav-0.103.0+dfsg/libclamav/hwp.c:86:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char inbuf[FILEBUFF], outbuf[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/hwp.c:215: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(inbuf, begin, sz);
data/clamav-0.103.0+dfsg/libclamav/hwp.c:226:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char errbuf[128];
data/clamav-0.103.0+dfsg/libclamav/hwp.c:259: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(tmpbuf, begin, sz);
data/clamav-0.103.0+dfsg/libclamav/hwp.c:524: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(&(docinfo->di_writeprot), hwp3_ptr + DI_WRITEPROT, sizeof(docinfo->di_writeprot));
data/clamav-0.103.0+dfsg/libclamav/hwp.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(&(docinfo->di_externapp), hwp3_ptr + DI_EXTERNAPP, sizeof(docinfo->di_externapp));
data/clamav-0.103.0+dfsg/libclamav/hwp.c:526:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&(docinfo->di_passwd), hwp3_ptr + DI_PASSWD, sizeof(docinfo->di_passwd));
data/clamav-0.103.0+dfsg/libclamav/hwp.c:527: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(&(docinfo->di_compressed), hwp3_ptr + DI_COMPRESSED, sizeof(docinfo->di_compressed));
data/clamav-0.103.0+dfsg/libclamav/hwp.c:528: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(&(docinfo->di_infoblksize), hwp3_ptr + DI_INFOBLKSIZE, sizeof(docinfo->di_infoblksize));
data/clamav-0.103.0+dfsg/libclamav/hwp.c:1528: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 field[HWP3_FIELD_LENGTH];
data/clamav-0.103.0+dfsg/libclamav/inflate64.c:198: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(state->window, strm->next_out - state->wsize, state->wsize);
data/clamav-0.103.0+dfsg/libclamav/inflate64.c:205:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(state->window + state->write, strm->next_out - copy, dist);
data/clamav-0.103.0+dfsg/libclamav/inflate64.c:208: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(state->window, strm->next_out - copy, copy);
data/clamav-0.103.0+dfsg/libclamav/inflate64.c:496:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(put, next, copy);
data/clamav-0.103.0+dfsg/libclamav/iowrap.c:53: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(target, source, size);
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:25: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 charptr[RECORDSIZE];
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:27: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 name[NAMSIZ];
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:28: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 mode[8];
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:29: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 uid[8];
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:30: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 gid[8];
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:31: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 size[12];
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:32: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 mtime[12];
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:33: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 chksum[8];
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:35: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 linkname[NAMSIZ];
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:36: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 magic[8];
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:37: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 uname[TUNMLEN];
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:38: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 gname[TGNMLEN];
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:39: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 devmajor[8];
data/clamav-0.103.0+dfsg/libclamav/is_tar.h:40: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 devminor[8];
data/clamav-0.103.0+dfsg/libclamav/ishield.c:77: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 fname[0x104]; /* MAX_PATH */
data/clamav-0.103.0+dfsg/libclamav/ishield.c:104: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 guid1[16];
data/clamav-0.103.0+dfsg/libclamav/ishield.c:105: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 guid2[16];
data/clamav-0.103.0+dfsg/libclamav/ishield.c:107: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 unk1[3];
data/clamav-0.103.0+dfsg/libclamav/ishield.c:250:20:  [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 ((ofd = open(tempfile, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) < 0) {
data/clamav-0.103.0+dfsg/libclamav/ishield.c:480: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).
    if ((ofd = open(fname, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) < 0) {
data/clamav-0.103.0+dfsg/libclamav/ishield.c:520: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 hash[33], *hdr;
data/clamav-0.103.0+dfsg/libclamav/ishield.c:599: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(hash, file->md5, 16);
data/clamav-0.103.0+dfsg/libclamav/ishield.c:730: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).
    if ((ofd = open(tempfile, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) < 0) {
data/clamav-0.103.0+dfsg/libclamav/iso9660.c:39: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[260];
data/clamav-0.103.0+dfsg/libclamav/iso9660.c:105: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(iso->buf, src, len);
data/clamav-0.103.0+dfsg/libclamav/iso9660.c:114: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(iso->buf, src, len);
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:312: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[65536];
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:359: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 sbuf[128];
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:536: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->data[start], with->data, len * sizeof(dst->data[0]));
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:549: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->data[dst->cnt], src->data, src->cnt * sizeof(dst->data[0]));
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:917: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 filename[1024];
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:922: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).
    buf.outfd = open(filename, O_CREAT | O_WRONLY, 0600);
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:1607:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            TOKEN_SET(lvalp, ival, atoi(scanner->buf.data));
data/clamav-0.103.0+dfsg/libclamav/jsparse/textbuf.h:48: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(&txtbuf->data[txtbuf->pos], s, len);
data/clamav-0.103.0+dfsg/libclamav/libmspack.c:99:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    mspack_handle->f = fopen(filename, fmode);
data/clamav-0.103.0+dfsg/libclamav/libmspack.c:277: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 buff[BUFSIZ];
data/clamav-0.103.0+dfsg/libclamav/libmspack.c:318: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);
data/clamav-0.103.0+dfsg/libclamav/libmspack.c:361:20:  [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).
    cab_h = cab_d->open(cab_d, (char *)&mspack_fmap);
data/clamav-0.103.0+dfsg/libclamav/libmspack.c:463:24:  [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).
    mschm_h = mschm_d->open(mschm_d, (char *)&mspack_fmap);
data/clamav-0.103.0+dfsg/libclamav/line.c:82: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(&ret[1], data, size);
data/clamav-0.103.0+dfsg/libclamav/lzma_iface.h:36: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 header[LZMA_PROPS_SIZE];
data/clamav-0.103.0+dfsg/libclamav/macho.c:65: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 segname[16];
data/clamav-0.103.0+dfsg/libclamav/macho.c:77: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 segname[16];
data/clamav-0.103.0+dfsg/libclamav/macho.c:89: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 sectname[16];
data/clamav-0.103.0+dfsg/libclamav/macho.c:90: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 segname[16];
data/clamav-0.103.0+dfsg/libclamav/macho.c:103: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 sectname[16];
data/clamav-0.103.0+dfsg/libclamav/macho.c:104: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 segname[16];
data/clamav-0.103.0+dfsg/libclamav/macho.c:211:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[16];
data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c:71:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char boundary[256] = {
data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c:2518:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&new->lsigid[1], lsigid, 2 * sizeof(uint32_t));
data/clamav-0.103.0+dfsg/libclamav/matcher-byte-comp.c:67:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *tokens[4];
data/clamav-0.103.0+dfsg/libclamav/matcher-byte-comp.c:942:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tmp_buffer, buffer + pad, byte_len);
data/clamav-0.103.0+dfsg/libclamav/matcher-byte-comp.c:976:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(hex_buffer + 3, buffer + 2, byte_len - 2);
data/clamav-0.103.0+dfsg/libclamav/matcher-byte-comp.c:979:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(hex_buffer + 1, buffer, byte_len);
data/clamav-0.103.0+dfsg/libclamav/matcher-byte-comp.c:983: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(hex_buffer, buffer, byte_len);
data/clamav-0.103.0+dfsg/libclamav/matcher-hash.c:32: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 binhash[CLI_HASHLEN_MAX];
data/clamav-0.103.0+dfsg/libclamav/matcher-hash.c:133: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(&szh->hash_array[(szh->items - 1) * hlen], binhash, hlen);
data/clamav-0.103.0+dfsg/libclamav/matcher-hash.c:163: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(piv, &szh->hash_array[keylen * l], keylen);
data/clamav-0.103.0+dfsg/libclamav/matcher-hash.c:168: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(tmph, &szh->hash_array[keylen * l1], keylen);
data/clamav-0.103.0+dfsg/libclamav/matcher-hash.c:170: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(&szh->hash_array[keylen * l1], &szh->hash_array[keylen * r1], keylen);
data/clamav-0.103.0+dfsg/libclamav/matcher-hash.c:172: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(&szh->hash_array[keylen * r1], tmph, keylen);
data/clamav-0.103.0+dfsg/libclamav/matcher-hash.c:180: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(tmph, &szh->hash_array[keylen * l1], keylen);
data/clamav-0.103.0+dfsg/libclamav/matcher-hash.c:182: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(&szh->hash_array[keylen * l1], &szh->hash_array[keylen * l], keylen);
data/clamav-0.103.0+dfsg/libclamav/matcher-hash.c:184: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(&szh->hash_array[keylen * l], tmph, keylen);
data/clamav-0.103.0+dfsg/libclamav/matcher.c:332: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 offcpy[65];
data/clamav-0.103.0+dfsg/libclamav/matcher.c:358:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            offdata[2] = atoi(pt + 1);
data/clamav-0.103.0+dfsg/libclamav/matcher.c:376:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            offdata[1] = atoi(&offcpy[3]);
data/clamav-0.103.0+dfsg/libclamav/matcher.c:385:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                offdata[3] = atoi(&offcpy[2]);
data/clamav-0.103.0+dfsg/libclamav/matcher.c:393:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                offdata[1] = atoi(&offcpy[3]);
data/clamav-0.103.0+dfsg/libclamav/matcher.c:410:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            offdata[1] = atoi(&offcpy[4]);
data/clamav-0.103.0+dfsg/libclamav/matcher.c:431:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            *offset_min = offdata[1] = atoi(offcpy);
data/clamav-0.103.0+dfsg/libclamav/matcher.c:585: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 md5[33];
data/clamav-0.103.0+dfsg/libclamav/matcher.c:613:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(md5 + i * 2, "%02x", digest[i]);
data/clamav-0.103.0+dfsg/libclamav/matcher.c:665: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((char *)shash256 + i * 2, "%02x", shash256[SHA256_HASH_SIZE + i]);
data/clamav-0.103.0+dfsg/libclamav/matcher.c:671: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((char *)shash1 + i * 2, "%02x", shash1[SHA1_HASH_SIZE + i]);
data/clamav-0.103.0+dfsg/libclamav/matcher.c:732: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 group1[128], group2[128];
data/clamav-0.103.0+dfsg/libclamav/matcher.c:748: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(group1, grp1, grp1len);
data/clamav-0.103.0+dfsg/libclamav/matcher.c:749: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(group2, grp2, grp2len);
data/clamav-0.103.0+dfsg/libclamav/matcher.c:840: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(ctx->handlertype_hash, hash, 16);
data/clamav-0.103.0+dfsg/libclamav/matcher.c:942: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 digest[CLI_HASH_AVAIL_TYPES][32];
data/clamav-0.103.0+dfsg/libclamav/matcher.c:1132: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(digest[CLI_HASH_MD5], refhash, 16);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:367: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 buffer[RFC2821LENGTH + 1];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:648: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 buffer[READ_STRUCT_BUFFER_LEN + 1];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:707: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[bufferLen]), rs->buffer, rs->bufferLen);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:874: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 buffer[RFC2821LENGTH + 1];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:933:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char copy[sizeof(buffer)];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:1000:21:  [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 cmd[RFC2821LENGTH + 1], out[RFC2821LENGTH + 1];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:1240:21:  [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 cmd[RFC2821LENGTH + 1];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:1391: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 *cmd, *copy, tokenseparator[2];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:2842: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[RFC2821LENGTH + 1];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3562: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(pout, blobGetData(b), len);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3588: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 pdir[PATH_MAX + 1];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3589: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 md5_val[16];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3619:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char err[128];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3656:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    n = atoi(number);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3676:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int t   = atoi(total);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3686:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char outname[PATH_MAX + 1];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3695:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fout = fopen(outname, "wb");
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3707:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char filename[NAME_MAX + 1];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3714:21:  [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[BUFSIZ], fullname[PATH_MAX + 1];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3735:40:  [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 ((test_fd = open(fullname, O_RDONLY)) < 0)
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3760: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).
                    fin = fopen(fullname, "rb");
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3835: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 url[1024];
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3854: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(url, mem + off, url_len);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:4187: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 cmd[RFC2821LENGTH + 1];
data/clamav-0.103.0+dfsg/libclamav/message.c:133: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 base64Table[256] = {
data/clamav-0.103.0+dfsg/libclamav/message.c:626: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(field, key, len - 1);
data/clamav-0.103.0+dfsg/libclamav/message.c:1345:22:  [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 smallbuf[1024];
data/clamav-0.103.0+dfsg/libclamav/message.c:1408:22:  [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 data[4];
data/clamav-0.103.0+dfsg/libclamav/message.c:1437: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 fullname[1024];
data/clamav-0.103.0+dfsg/libclamav/message.c:1616:22:  [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 data[1024];
data/clamav-0.103.0+dfsg/libclamav/message.c:1671:22:  [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 data[4];
data/clamav-0.103.0+dfsg/libclamav/message.c:1792: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 base64buf[RFC2045LENGTH + 1];
data/clamav-0.103.0+dfsg/libclamav/message.c:2322:21:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                    strcpy(p, "=rfc2231failure");
data/clamav-0.103.0+dfsg/libclamav/message.c:2466: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 ls1[MAX_PATTERN_SIZ], ls2[MAX_PATTERN_SIZ];
data/clamav-0.103.0+dfsg/libclamav/mpool.c:482: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(mpool_p, &mp, sizeof(mp));
data/clamav-0.103.0+dfsg/libclamav/mpool.c:749: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_ptr, ptr, csize <= size ? csize : size);
data/clamav-0.103.0+dfsg/libclamav/mpool.c:801: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(alloc, s, strsz);
data/clamav-0.103.0+dfsg/libclamav/mpool.c:820: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(alloc, s, strsz - 1);
data/clamav-0.103.0+dfsg/libclamav/mpool.c:830: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[1024];
data/clamav-0.103.0+dfsg/libclamav/msdoc.c:75: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(outbuf, begin, sz);
data/clamav-0.103.0+dfsg/libclamav/msdoc.c:106: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(buf, begin, sz);
data/clamav-0.103.0+dfsg/libclamav/msdoc.c:130: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 errbuf[128];
data/clamav-0.103.0+dfsg/libclamav/msdoc.c:430:21:  [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 b64jstr[PROPSTRLIMIT];
data/clamav-0.103.0+dfsg/libclamav/msdoc.c:479: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(outstr, (const char *)(databuf + offset), strsize);
data/clamav-0.103.0+dfsg/libclamav/msdoc.c:484:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char b64jstr[PROPSTRLIMIT];
data/clamav-0.103.0+dfsg/libclamav/msdoc.c:731: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(&(sctx->pssize), hdr, sizeof(sctx->pssize));
data/clamav-0.103.0+dfsg/libclamav/msdoc.c:939: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(&sumstub, databuf, sizeof(summary_stub_t));
data/clamav-0.103.0+dfsg/libclamav/msdoc.c:971: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(&pentry, databuf, sizeof(propset_entry_t));
data/clamav-0.103.0+dfsg/libclamav/msexpand.c:100: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 buff[B_SIZE], wbuff[RW_SIZE];
data/clamav-0.103.0+dfsg/libclamav/msxml_parser.c:396: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.
                            char name[1024];
data/clamav-0.103.0+dfsg/libclamav/msxml_parser.c:432: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.
                            char name[1024];
data/clamav-0.103.0+dfsg/libclamav/nsis/nsis_zutil.h:60: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.
#define zmemcpy memcpy
data/clamav-0.103.0+dfsg/libclamav/nsis/nulsft.c:76:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ofn[1024];
data/clamav-0.103.0+dfsg/libclamav/nsis/nulsft.c:194: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 obuf[BUFSIZ];
data/clamav-0.103.0+dfsg/libclamav/nsis/nulsft.c:244:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((n->ofd = open(n->ofn, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0600)) == -1) {
data/clamav-0.103.0+dfsg/libclamav/nsis/nulsft.c:379:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((n->ofd = open(n->ofn, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0600)) == -1) {
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:78: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 magic[8]; /* should be: 0xd0cf11e0a1b11ae1 */
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:79: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 clsid[16];
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:120:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[64]; /* in unicode */
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:128: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 clsid[16];
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:137: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 reserved[4];
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:314: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 spam[128], *buf;
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:415: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(buff, pblock, size);
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:801:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *name, newname[1024];
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:836:11:  [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).
    ofd = open(newname, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR);
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:1247:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(hwp_new, hwp_check + offset, sizeof(hwp5_header_t));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:1280: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 check[2];
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:1316: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 inbuf[FILEBUFF], outbuf[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:1466: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).
    if ((ofd = open(tempfile, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) < 0) {
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:1748: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(&hdr, phdr, hdr_size);
data/clamav-0.103.0+dfsg/libclamav/others.c:128: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 modulename[128];
data/clamav-0.103.0+dfsg/libclamav/others.c:182:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char modulename[128];
data/clamav-0.103.0+dfsg/libclamav/others.c:1182: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 digest[32];
data/clamav-0.103.0+dfsg/libclamav/others.c:1183:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/others.c:1218: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(pt, "%02x", digest[i]);
data/clamav-0.103.0+dfsg/libclamav/others.c:1223: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(digcpy, digest, size);
data/clamav-0.103.0+dfsg/libclamav/others.c:1233:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fs = fopen(filename, "rb")) == NULL) {
data/clamav-0.103.0+dfsg/libclamav/others.c:1254:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char err[128];
data/clamav-0.103.0+dfsg/libclamav/others.c:1258:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char err[128];
data/clamav-0.103.0+dfsg/libclamav/others.c:1264:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char err[128];
data/clamav-0.103.0+dfsg/libclamav/others.c:1402: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 err[128];
data/clamav-0.103.0+dfsg/libclamav/others.c:1458: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 err[128];
data/clamav-0.103.0+dfsg/libclamav/others.h:170: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 handlertype_hash[16];
data/clamav-0.103.0+dfsg/libclamav/others.h:193: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 md5[16];
data/clamav-0.103.0+dfsg/libclamav/others.h:249: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 **group_names[2];
data/clamav-0.103.0+dfsg/libclamav/others.h:601: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.
    ret = (int64_t)((const char *)buff)[0] & 0xff;
data/clamav-0.103.0+dfsg/libclamav/others.h:602:30:  [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.
    ret |= (int64_t)(((const char *)buff)[1] & 0xff) << 8;
data/clamav-0.103.0+dfsg/libclamav/others.h:603:30:  [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.
    ret |= (int64_t)(((const char *)buff)[2] & 0xff) << 16;
data/clamav-0.103.0+dfsg/libclamav/others.h:604:30:  [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.
    ret |= (int64_t)(((const char *)buff)[3] & 0xff) << 24;
data/clamav-0.103.0+dfsg/libclamav/others.h:606:30:  [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.
    ret |= (int64_t)(((const char *)buff)[4] & 0xff) << 32;
data/clamav-0.103.0+dfsg/libclamav/others.h:607:30:  [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.
    ret |= (int64_t)(((const char *)buff)[5] & 0xff) << 40;
data/clamav-0.103.0+dfsg/libclamav/others.h:608:30:  [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.
    ret |= (int64_t)(((const char *)buff)[6] & 0xff) << 48;
data/clamav-0.103.0+dfsg/libclamav/others.h:609:30:  [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.
    ret |= (int64_t)(((const char *)buff)[7] & 0xff) << 56;
data/clamav-0.103.0+dfsg/libclamav/others.h:616: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.
    ret = (int32_t)((const char *)buff)[0] & 0xff;
data/clamav-0.103.0+dfsg/libclamav/others.h:617:30:  [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.
    ret |= (int32_t)(((const char *)buff)[1] & 0xff) << 8;
data/clamav-0.103.0+dfsg/libclamav/others.h:618:30:  [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.
    ret |= (int32_t)(((const char *)buff)[2] & 0xff) << 16;
data/clamav-0.103.0+dfsg/libclamav/others.h:619:30:  [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.
    ret |= (int32_t)(((const char *)buff)[3] & 0xff) << 24;
data/clamav-0.103.0+dfsg/libclamav/others.h:626: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.
    ret = (int16_t)((const char *)buff)[0] & 0xff;
data/clamav-0.103.0+dfsg/libclamav/others.h:627:30:  [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.
    ret |= (int16_t)(((const char *)buff)[1] & 0xff) << 8;
data/clamav-0.103.0+dfsg/libclamav/others.h:633:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    ((char *)offset)[0] = value & 0xff;
data/clamav-0.103.0+dfsg/libclamav/others.h:634:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    ((char *)offset)[1] = (value & 0xff00) >> 8;
data/clamav-0.103.0+dfsg/libclamav/others.h:635:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    ((char *)offset)[2] = (value & 0xff0000) >> 16;
data/clamav-0.103.0+dfsg/libclamav/others.h:636:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    ((char *)offset)[3] = (value & 0xff000000) >> 24;
data/clamav-0.103.0+dfsg/libclamav/others_common.c:67:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char name_salt[16] = {16, 38, 97, 12, 8, 4, 72, 196, 217, 144, 33, 124, 18, 11, 17, 253};
data/clamav-0.103.0+dfsg/libclamav/others_common.c:142:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[MSGBUFSIZ];                                 \
data/clamav-0.103.0+dfsg/libclamav/others_common.c:356:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char err[128];
data/clamav-0.103.0+dfsg/libclamav/others_common.c:402:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char err[128];
data/clamav-0.103.0+dfsg/libclamav/others_common.c:432: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).
    if ((s = open(src, O_RDONLY | O_BINARY)) == -1)
data/clamav-0.103.0+dfsg/libclamav/others_common.c:435: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).
    if ((d = open(dest, O_CREAT | O_WRONLY | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) == -1) {
data/clamav-0.103.0+dfsg/libclamav/others_common.c:743: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(statbufp, &statbuf, sizeof(statbuf));
data/clamav-0.103.0+dfsg/libclamav/others_common.c:818: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 digest[16];
data/clamav-0.103.0+dfsg/libclamav/others_common.c:825: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(dig, digest, 16);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:832: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(pt, "%02x", digest[i]);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1004: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 salt[16 + 32];
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1028: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(salt, name_salt, 16);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1090:11:  [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, O_RDWR | O_CREAT | O_TRUNC | O_BINARY | O_EXCL, S_IRUSR | S_IWUSR);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1150:11:  [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, O_RDWR | O_CREAT | O_TRUNC | O_BINARY | O_EXCL, S_IRUSR | S_IWUSR);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1162:19:  [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, O_RDWR | O_CREAT | O_TRUNC | O_BINARY | O_EXCL, S_IRUSR | S_IWUSR);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1195: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 fname[PATH_MAX];
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1197: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 link[32];
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1227: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 fname[PATH_MAX];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1087: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 iv[16];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1114: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(iv, in, 16);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1136: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(iv, in, 16);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1175: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 real_iv[16] = {0};
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1223: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 *key, *q, result[16];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1247: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(key, pdf->key, pdf->keylen);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1255: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(q, "sAlT", 4);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1273: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(q, in, *length);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1301: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(q, in, *length);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1391: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 fullname[1024];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1392: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 outbuff[BUFSIZ];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1393: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 inbuf[BUFSIZ];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1400:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fout = open(fullname, O_RDWR | O_CREAT | O_EXCL | O_TRUNC | O_BINARY, 0600);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1402: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 err[128];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1433: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 fullname[PATH_MAX + 1];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1471:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fout = open(fullname, O_RDWR | O_CREAT | O_EXCL | O_TRUNC | O_BINARY, 0600);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1473: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 err[128];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2117: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 pdfname[64];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2608: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(s0, start, len);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2753: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(s, q, end - q);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2805:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void compute_hash_r6(const char *password, size_t pwlen, const unsigned char salt[16], unsigned char hash[32])
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2805:80:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void compute_hash_r6(const char *password, size_t pwlen, const unsigned char salt[16], unsigned char hash[32])
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2805:104:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void compute_hash_r6(const char *password, size_t pwlen, const unsigned char salt[16], unsigned char hash[32])
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2807: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 data[(128 + 64 + 48) * 64];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2808: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 block[64];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2814:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, password, pwlen);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2815:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data + pwlen, salt, 8);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2819: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(data, password, pwlen);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2820: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(data + pwlen, block, block_size);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2823: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(data + j * in_data_len, data, in_data_len);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2834: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(block, sha256, 32);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2839: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(block, sha384, 48);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2844: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(block, sha512, 64);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2849: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(hash, block, 32);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2859: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 data[32];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2898:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char hash[32], validationkey[32];
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2935: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(d, key_padding, 32);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2936: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(d + 32, O, 32);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2938: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(d + 64, &P, 4);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2939: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(d + 68, pdf->fileID, pdf->fileIDlen);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2945: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(d + 68 + pdf->fileIDlen, &v, 4);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2965: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(pdf->key, result, pdf->keylen);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2972: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(data, key_padding, 32);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2990: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(d, key_padding, 32);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2991: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(d + 32, pdf->fileID, pdf->fileIDlen);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2993: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(data, pdf->key, len);
data/clamav-0.103.0+dfsg/libclamav/pdfdecode.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(token->content, stream, streamlen);
data/clamav-0.103.0+dfsg/libclamav/pdfdecode.c:429: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 fname[1024];
data/clamav-0.103.0+dfsg/libclamav/pdfdecode.c:433:11:  [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).
    ifd = open(fname, O_RDWR | O_CREAT | O_EXCL | O_TRUNC | O_BINARY, 0600);
data/clamav-0.103.0+dfsg/libclamav/pdfdecode.c:435: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 err[128];
data/clamav-0.103.0+dfsg/libclamav/pdfdecode.c:603: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(decoded + declen, content + offset, srclen + 1);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:92: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(buf, begin, sz);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:110:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char errbuf[128];
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:255: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(wrkstr, in, len);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:274:21:  [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 octal[4], *check;
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:277:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(octal, &wrkstr[i + 1], 3);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:329: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(wrkstr, output, outlen);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:348: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(wrkstr, output, outlen);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:475:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(newobj->path, O_RDONLY);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:534:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(res, begin, objsize2);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:578: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(res, p1, (p2 - p1) + 1);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:635: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(res, p1, len);
data/clamav-0.103.0+dfsg/libclamav/pe.c:134:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((ndesc = open(tempfile, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) < 0) { \
data/clamav-0.103.0+dfsg/libclamav/pe.c:564: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 *hashset[CLI_HASH_AVAIL_TYPES];
data/clamav-0.103.0+dfsg/libclamav/pe.c:658:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[64];
data/clamav-0.103.0+dfsg/libclamav/pe.c:665: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(name, "accept");
data/clamav-0.103.0+dfsg/libclamav/pe.c:668: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(name, "bind");
data/clamav-0.103.0+dfsg/libclamav/pe.c:671: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(name, "closesocket");
data/clamav-0.103.0+dfsg/libclamav/pe.c:674: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(name, "connect");
data/clamav-0.103.0+dfsg/libclamav/pe.c:677: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(name, "getpeername");
data/clamav-0.103.0+dfsg/libclamav/pe.c:680: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(name, "getsockname");
data/clamav-0.103.0+dfsg/libclamav/pe.c:683: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(name, "getsockopt");
data/clamav-0.103.0+dfsg/libclamav/pe.c:686: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(name, "htonl");
data/clamav-0.103.0+dfsg/libclamav/pe.c:689: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(name, "htons");
data/clamav-0.103.0+dfsg/libclamav/pe.c:692: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(name, "ioctlsocket");
data/clamav-0.103.0+dfsg/libclamav/pe.c:695: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(name, "inet_addr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:698: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(name, "inet_ntoa");
data/clamav-0.103.0+dfsg/libclamav/pe.c:701: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(name, "listen");
data/clamav-0.103.0+dfsg/libclamav/pe.c:704: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(name, "ntohl");
data/clamav-0.103.0+dfsg/libclamav/pe.c:707: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(name, "ntohs");
data/clamav-0.103.0+dfsg/libclamav/pe.c:710: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(name, "recv");
data/clamav-0.103.0+dfsg/libclamav/pe.c:713: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(name, "recvfrom");
data/clamav-0.103.0+dfsg/libclamav/pe.c:716: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(name, "select");
data/clamav-0.103.0+dfsg/libclamav/pe.c:719: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(name, "send");
data/clamav-0.103.0+dfsg/libclamav/pe.c:722: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(name, "sendto");
data/clamav-0.103.0+dfsg/libclamav/pe.c:725: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(name, "setsockopt");
data/clamav-0.103.0+dfsg/libclamav/pe.c:728: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(name, "shutdown");
data/clamav-0.103.0+dfsg/libclamav/pe.c:731: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(name, "socket");
data/clamav-0.103.0+dfsg/libclamav/pe.c:734: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(name, "GetAddrInfoW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:737: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(name, "GetNameInfoW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:740: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(name, "WSApSetPostRoutine");
data/clamav-0.103.0+dfsg/libclamav/pe.c:743: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(name, "FreeAddrInfoW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:746: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(name, "WPUCompleteOverlappedRequest");
data/clamav-0.103.0+dfsg/libclamav/pe.c:749: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(name, "WSAAccept");
data/clamav-0.103.0+dfsg/libclamav/pe.c:752: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(name, "WSAAddressToStringA");
data/clamav-0.103.0+dfsg/libclamav/pe.c:755: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(name, "WSAAddressToStringW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:758: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(name, "WSACloseEvent");
data/clamav-0.103.0+dfsg/libclamav/pe.c:761: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(name, "WSAConnect");
data/clamav-0.103.0+dfsg/libclamav/pe.c:764: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(name, "WSACreateEvent");
data/clamav-0.103.0+dfsg/libclamav/pe.c:767: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(name, "WSADuplicateSocketA");
data/clamav-0.103.0+dfsg/libclamav/pe.c:770: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(name, "WSADuplicateSocketW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:773: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(name, "WSAEnumNameSpaceProvidersA");
data/clamav-0.103.0+dfsg/libclamav/pe.c:776: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(name, "WSAEnumNameSpaceProvidersW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:779: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(name, "WSAEnumNetworkEvents");
data/clamav-0.103.0+dfsg/libclamav/pe.c:782: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(name, "WSAEnumProtocolsA");
data/clamav-0.103.0+dfsg/libclamav/pe.c:785: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(name, "WSAEnumProtocolsW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:788: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(name, "WSAEventSelect");
data/clamav-0.103.0+dfsg/libclamav/pe.c:791: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(name, "WSAGetOverlappedResult");
data/clamav-0.103.0+dfsg/libclamav/pe.c:794: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(name, "WSAGetQOSByName");
data/clamav-0.103.0+dfsg/libclamav/pe.c:797: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(name, "WSAGetServiceClassInfoA");
data/clamav-0.103.0+dfsg/libclamav/pe.c:800: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(name, "WSAGetServiceClassInfoW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:803: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(name, "WSAGetServiceClassNameByClassIdA");
data/clamav-0.103.0+dfsg/libclamav/pe.c:806: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(name, "WSAGetServiceClassNameByClassIdW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:809: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(name, "WSAHtonl");
data/clamav-0.103.0+dfsg/libclamav/pe.c:812: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(name, "WSAHtons");
data/clamav-0.103.0+dfsg/libclamav/pe.c:815: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(name, "gethostbyaddr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:818: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(name, "gethostbyname");
data/clamav-0.103.0+dfsg/libclamav/pe.c:821: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(name, "getprotobyname");
data/clamav-0.103.0+dfsg/libclamav/pe.c:824: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(name, "getprotobynumber");
data/clamav-0.103.0+dfsg/libclamav/pe.c:827: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(name, "getservbyname");
data/clamav-0.103.0+dfsg/libclamav/pe.c:830: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(name, "getservbyport");
data/clamav-0.103.0+dfsg/libclamav/pe.c:833: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(name, "gethostname");
data/clamav-0.103.0+dfsg/libclamav/pe.c:836: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(name, "WSAInstallServiceClassA");
data/clamav-0.103.0+dfsg/libclamav/pe.c:839: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(name, "WSAInstallServiceClassW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:842: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(name, "WSAIoctl");
data/clamav-0.103.0+dfsg/libclamav/pe.c:845: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(name, "WSAJoinLeaf");
data/clamav-0.103.0+dfsg/libclamav/pe.c:848: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(name, "WSALookupServiceBeginA");
data/clamav-0.103.0+dfsg/libclamav/pe.c:851: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(name, "WSALookupServiceBeginW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:854: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(name, "WSALookupServiceEnd");
data/clamav-0.103.0+dfsg/libclamav/pe.c:857: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(name, "WSALookupServiceNextA");
data/clamav-0.103.0+dfsg/libclamav/pe.c:860: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(name, "WSALookupServiceNextW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:863: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(name, "WSANSPIoctl");
data/clamav-0.103.0+dfsg/libclamav/pe.c:866: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(name, "WSANtohl");
data/clamav-0.103.0+dfsg/libclamav/pe.c:869: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(name, "WSANtohs");
data/clamav-0.103.0+dfsg/libclamav/pe.c:872: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(name, "WSAProviderConfigChange");
data/clamav-0.103.0+dfsg/libclamav/pe.c:875: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(name, "WSARecv");
data/clamav-0.103.0+dfsg/libclamav/pe.c:878: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(name, "WSARecvDisconnect");
data/clamav-0.103.0+dfsg/libclamav/pe.c:881: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(name, "WSARecvFrom");
data/clamav-0.103.0+dfsg/libclamav/pe.c:884: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(name, "WSARemoveServiceClass");
data/clamav-0.103.0+dfsg/libclamav/pe.c:887: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(name, "WSAResetEvent");
data/clamav-0.103.0+dfsg/libclamav/pe.c:890: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(name, "WSASend");
data/clamav-0.103.0+dfsg/libclamav/pe.c:893: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(name, "WSASendDisconnect");
data/clamav-0.103.0+dfsg/libclamav/pe.c:896: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(name, "WSASendTo");
data/clamav-0.103.0+dfsg/libclamav/pe.c:899: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(name, "WSASetEvent");
data/clamav-0.103.0+dfsg/libclamav/pe.c:902: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(name, "WSASetServiceA");
data/clamav-0.103.0+dfsg/libclamav/pe.c:905: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(name, "WSASetServiceW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:908: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(name, "WSASocketA");
data/clamav-0.103.0+dfsg/libclamav/pe.c:911: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(name, "WSASocketW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:914: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(name, "WSAStringToAddressA");
data/clamav-0.103.0+dfsg/libclamav/pe.c:917: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(name, "WSAStringToAddressW");
data/clamav-0.103.0+dfsg/libclamav/pe.c:920: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(name, "WSAWaitForMultipleEvents");
data/clamav-0.103.0+dfsg/libclamav/pe.c:923: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(name, "WSCDeinstallProvider");
data/clamav-0.103.0+dfsg/libclamav/pe.c:926: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(name, "WSCEnableNSProvider");
data/clamav-0.103.0+dfsg/libclamav/pe.c:929: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(name, "WSCEnumProtocols");
data/clamav-0.103.0+dfsg/libclamav/pe.c:932: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(name, "WSCGetProviderPath");
data/clamav-0.103.0+dfsg/libclamav/pe.c:935: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(name, "WSCInstallNameSpace");
data/clamav-0.103.0+dfsg/libclamav/pe.c:938: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(name, "WSCInstallProvider");
data/clamav-0.103.0+dfsg/libclamav/pe.c:941: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(name, "WSCUnInstallNameSpace");
data/clamav-0.103.0+dfsg/libclamav/pe.c:944: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(name, "WSCUpdateProvider");
data/clamav-0.103.0+dfsg/libclamav/pe.c:947: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(name, "WSCWriteNameSpaceOrder");
data/clamav-0.103.0+dfsg/libclamav/pe.c:950: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(name, "WSCWriteProviderOrder");
data/clamav-0.103.0+dfsg/libclamav/pe.c:953: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(name, "freeaddrinfo");
data/clamav-0.103.0+dfsg/libclamav/pe.c:956: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(name, "getaddrinfo");
data/clamav-0.103.0+dfsg/libclamav/pe.c:959: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(name, "getnameinfo");
data/clamav-0.103.0+dfsg/libclamav/pe.c:962: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(name, "WSAAsyncSelect");
data/clamav-0.103.0+dfsg/libclamav/pe.c:965: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(name, "WSAAsyncGetHostByAddr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:968: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(name, "WSAAsyncGetHostByName");
data/clamav-0.103.0+dfsg/libclamav/pe.c:971: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(name, "WSAAsyncGetProtoByNumber");
data/clamav-0.103.0+dfsg/libclamav/pe.c:974: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(name, "WSAAsyncGetProtoByName");
data/clamav-0.103.0+dfsg/libclamav/pe.c:977: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(name, "WSAAsyncGetServByPort");
data/clamav-0.103.0+dfsg/libclamav/pe.c:980: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(name, "WSAAsyncGetServByName");
data/clamav-0.103.0+dfsg/libclamav/pe.c:983: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(name, "WSACancelAsyncRequest");
data/clamav-0.103.0+dfsg/libclamav/pe.c:986: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(name, "WSASetBlockingHook");
data/clamav-0.103.0+dfsg/libclamav/pe.c:989: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(name, "WSAUnhookBlockingHook");
data/clamav-0.103.0+dfsg/libclamav/pe.c:992: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(name, "WSAGetLastError");
data/clamav-0.103.0+dfsg/libclamav/pe.c:995: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(name, "WSASetLastError");
data/clamav-0.103.0+dfsg/libclamav/pe.c:998: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(name, "WSACancelBlockingCall");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1001: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(name, "WSAIsBlocking");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1004: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(name, "WSAStartup");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1007: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(name, "WSACleanup");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1010: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(name, "__WSAFDIsSet");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1013: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(name, "WEP");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1021: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(name, "SysAllocString");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1024: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(name, "SysReAllocString");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1027: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(name, "SysAllocStringLen");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1030: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(name, "SysReAllocStringLen");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1033: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(name, "SysFreeString");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1036: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(name, "SysStringLen");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1039: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(name, "VariantInit");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1042: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(name, "VariantClear");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1045: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(name, "VariantCopy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1048: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(name, "VariantCopyInd");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1051: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(name, "VariantChangeType");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1054: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(name, "VariantTimeToDosDateTime");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1057: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(name, "DosDateTimeToVariantTime");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1060: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(name, "SafeArrayCreate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1063: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(name, "SafeArrayDestroy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1066: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(name, "SafeArrayGetDim");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1069: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(name, "SafeArrayGetElemsize");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1072: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(name, "SafeArrayGetUBound");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1075: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(name, "SafeArrayGetLBound");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1078: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(name, "SafeArrayLock");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1081: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(name, "SafeArrayUnlock");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1084: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(name, "SafeArrayAccessData");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1087: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(name, "SafeArrayUnaccessData");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1090: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(name, "SafeArrayGetElement");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1093: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(name, "SafeArrayPutElement");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1096: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(name, "SafeArrayCopy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1099: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(name, "DispGetParam");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1102: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(name, "DispGetIDsOfNames");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1105: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(name, "DispInvoke");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1108: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(name, "CreateDispTypeInfo");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1111: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(name, "CreateStdDispatch");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1114: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(name, "RegisterActiveObject");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1117: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(name, "RevokeActiveObject");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1120: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(name, "GetActiveObject");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1123: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(name, "SafeArrayAllocDescriptor");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1126: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(name, "SafeArrayAllocData");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1129: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(name, "SafeArrayDestroyDescriptor");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1132: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(name, "SafeArrayDestroyData");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1135: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(name, "SafeArrayRedim");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1138: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(name, "SafeArrayAllocDescriptorEx");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1141: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(name, "SafeArrayCreateEx");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1144: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(name, "SafeArrayCreateVectorEx");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1147: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(name, "SafeArraySetRecordInfo");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1150: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(name, "SafeArrayGetRecordInfo");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1153: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(name, "VarParseNumFromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1156: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(name, "VarNumFromParseNum");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1159: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(name, "VarI2FromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1162: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(name, "VarI2FromI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1165: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(name, "VarI2FromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1168: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(name, "VarI2FromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1171: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(name, "VarI2FromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1174: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(name, "VarI2FromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1177: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(name, "VarI2FromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1180: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(name, "VarI2FromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1183: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(name, "VarI2FromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1186: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(name, "SafeArraySetIID");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1189: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(name, "VarI4FromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1192: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(name, "VarI4FromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1195: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(name, "VarI4FromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1198: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(name, "VarI4FromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1201: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(name, "VarI4FromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1204: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(name, "VarI4FromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1207: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(name, "VarI4FromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1210: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(name, "VarI4FromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1213: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(name, "VarI4FromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1216: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(name, "SafeArrayGetIID");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1219: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(name, "VarR4FromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1222: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(name, "VarR4FromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1225: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(name, "VarR4FromI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1228: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(name, "VarR4FromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1231: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(name, "VarR4FromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1234: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(name, "VarR4FromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1237: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(name, "VarR4FromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1240: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(name, "VarR4FromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1243: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(name, "VarR4FromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1246: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(name, "SafeArrayGetVartype");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1249: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(name, "VarR8FromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1252: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(name, "VarR8FromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1255: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(name, "VarR8FromI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1258: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(name, "VarR8FromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1261: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(name, "VarR8FromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1264: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(name, "VarR8FromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1267: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(name, "VarR8FromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1270: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(name, "VarR8FromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1273: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(name, "VarR8FromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1276: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(name, "VarFormat");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1279: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(name, "VarDateFromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1282: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(name, "VarDateFromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1285: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(name, "VarDateFromI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1288: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(name, "VarDateFromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1291: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(name, "VarDateFromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1294: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(name, "VarDateFromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1297: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(name, "VarDateFromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1300: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(name, "VarDateFromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1303: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(name, "VarDateFromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1306: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(name, "VarFormatDateTime");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1309: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(name, "VarCyFromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1312: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(name, "VarCyFromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1315: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(name, "VarCyFromI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1318: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(name, "VarCyFromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1321: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(name, "VarCyFromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1324: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(name, "VarCyFromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1327: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(name, "VarCyFromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1330: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(name, "VarCyFromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1333: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(name, "VarCyFromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1336: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(name, "VarFormatNumber");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1339: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(name, "VarBstrFromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1342: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(name, "VarBstrFromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1345: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(name, "VarBstrFromI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1348: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(name, "VarBstrFromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1351: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(name, "VarBstrFromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1354: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(name, "VarBstrFromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1357: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(name, "VarBstrFromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1360: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(name, "VarBstrFromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1363: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(name, "VarBstrFromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1366: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(name, "VarFormatPercent");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1369: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(name, "VarBoolFromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1372: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(name, "VarBoolFromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1375: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(name, "VarBoolFromI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1378: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(name, "VarBoolFromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1381: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(name, "VarBoolFromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1384: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(name, "VarBoolFromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1387: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(name, "VarBoolFromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1390: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(name, "VarBoolFromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1393: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(name, "VarBoolFromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1396: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(name, "VarFormatCurrency");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1399: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(name, "VarWeekdayName");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1402: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(name, "VarMonthName");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1405: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(name, "VarUI1FromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1408: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(name, "VarUI1FromI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1411: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(name, "VarUI1FromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1414: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(name, "VarUI1FromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1417: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(name, "VarUI1FromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1420: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(name, "VarUI1FromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1423: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(name, "VarUI1FromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1426: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(name, "VarUI1FromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1429: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(name, "VarUI1FromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1432: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(name, "VarFormatFromTokens");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1435: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(name, "VarTokenizeFormatString");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1438: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(name, "VarAdd");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1441: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(name, "VarAnd");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1444: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(name, "VarDiv");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1447: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(name, "DllCanUnloadNow");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1450: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(name, "DllGetClassObject");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1453: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(name, "DispCallFunc");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1456: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(name, "VariantChangeTypeEx");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1459: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(name, "SafeArrayPtrOfIndex");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1462: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(name, "SysStringByteLen");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1465: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(name, "SysAllocStringByteLen");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1468: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(name, "DllRegisterServer");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1471: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(name, "VarEqv");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1474: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(name, "VarIdiv");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1477: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(name, "VarImp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1480: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(name, "VarMod");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1483: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(name, "VarMul");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1486: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(name, "VarOr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1489: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(name, "VarPow");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1492: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(name, "VarSub");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1495: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(name, "CreateTypeLib");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1498: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(name, "LoadTypeLib");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1501: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(name, "LoadRegTypeLib");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1504: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(name, "RegisterTypeLib");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1507: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(name, "QueryPathOfRegTypeLib");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1510: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(name, "LHashValOfNameSys");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1513: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(name, "LHashValOfNameSysA");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1516: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(name, "VarXor");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1519: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(name, "VarAbs");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1522: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(name, "VarFix");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1525: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(name, "OaBuildVersion");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1528: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(name, "ClearCustData");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1531: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(name, "VarInt");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1534: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(name, "VarNeg");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1537: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(name, "VarNot");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1540: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(name, "VarRound");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1543: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(name, "VarCmp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1546: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(name, "VarDecAdd");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1549: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(name, "VarDecDiv");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1552: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(name, "VarDecMul");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1555: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(name, "CreateTypeLib2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1558: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(name, "VarDecSub");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1561: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(name, "VarDecAbs");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1564: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(name, "LoadTypeLibEx");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1567: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(name, "SystemTimeToVariantTime");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1570: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(name, "VariantTimeToSystemTime");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1573: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(name, "UnRegisterTypeLib");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1576: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(name, "VarDecFix");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1579: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(name, "VarDecInt");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1582: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(name, "VarDecNeg");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1585: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(name, "VarDecFromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1588: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(name, "VarDecFromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1591: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(name, "VarDecFromI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1594: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(name, "VarDecFromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1597: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(name, "VarDecFromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1600: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(name, "VarDecFromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1603: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(name, "VarDecFromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1606: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(name, "VarDecFromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1609: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(name, "VarDecFromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1612: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(name, "VarDecFromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1615: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(name, "GetErrorInfo");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1618: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(name, "SetErrorInfo");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1621: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(name, "CreateErrorInfo");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1624: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(name, "VarDecRound");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1627: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(name, "VarDecCmp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1630: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(name, "VarI2FromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1633: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(name, "VarI2FromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1636: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(name, "VarI2FromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1639: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(name, "VarI2FromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1642: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(name, "VarI4FromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1645: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(name, "VarI4FromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1648: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(name, "VarI4FromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1651: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(name, "VarI4FromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1654: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(name, "VarR4FromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1657: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(name, "VarR4FromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1660: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(name, "VarR4FromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1663: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(name, "VarR4FromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1666: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(name, "VarR8FromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1669: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(name, "VarR8FromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1672: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(name, "VarR8FromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1675: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(name, "VarR8FromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1678: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(name, "VarDateFromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1681: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(name, "VarDateFromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1684: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(name, "VarDateFromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1687: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(name, "VarDateFromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1690: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(name, "VarCyFromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1693: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(name, "VarCyFromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1696: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(name, "VarCyFromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1699: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(name, "VarCyFromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1702: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(name, "VarBstrFromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1705: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(name, "VarBstrFromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1708: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(name, "VarBstrFromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1711: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(name, "VarBstrFromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1714: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(name, "VarBoolFromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1717: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(name, "VarBoolFromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1720: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(name, "VarBoolFromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1723: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(name, "VarBoolFromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1726: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(name, "VarUI1FromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1729: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(name, "VarUI1FromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1732: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(name, "VarUI1FromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1735: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(name, "VarUI1FromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1738: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(name, "VarDecFromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1741: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(name, "VarDecFromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1744: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(name, "VarDecFromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1747: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(name, "VarI1FromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1750: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(name, "VarI1FromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1753: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(name, "VarI1FromI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1756: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(name, "VarI1FromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1759: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(name, "VarI1FromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1762: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(name, "VarI1FromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1765: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(name, "VarI1FromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1768: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(name, "VarI1FromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1771: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(name, "VarI1FromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1774: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(name, "VarI1FromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1777: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(name, "VarI1FromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1780: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(name, "VarI1FromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1783: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(name, "VarI1FromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1786: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(name, "VarUI2FromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1789: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(name, "VarUI2FromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1792: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(name, "VarUI2FromI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1795: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(name, "VarUI2FromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1798: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(name, "VarUI2FromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1801: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(name, "VarUI2FromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1804: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(name, "VarUI2FromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1807: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(name, "VarUI2FromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1810: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(name, "VarUI2FromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1813: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(name, "VarUI2FromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1816: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(name, "VarUI2FromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1819: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(name, "VarUI2FromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1822: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(name, "VarUI2FromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1825: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(name, "VarUI4FromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1828: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(name, "VarUI4FromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1831: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(name, "VarUI4FromI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1834: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(name, "VarUI4FromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1837: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(name, "VarUI4FromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1840: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(name, "VarUI4FromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1843: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(name, "VarUI4FromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1846: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(name, "VarUI4FromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1849: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(name, "VarUI4FromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1852: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(name, "VarUI4FromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1855: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(name, "VarUI4FromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1858: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(name, "VarUI4FromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1861: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(name, "VarUI4FromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1864: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(name, "BSTR_UserSize");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1867: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(name, "BSTR_UserMarshal");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1870: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(name, "BSTR_UserUnmarshal");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1873: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(name, "BSTR_UserFree");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1876: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(name, "VARIANT_UserSize");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1879: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(name, "VARIANT_UserMarshal");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1882: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(name, "VARIANT_UserUnmarshal");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1885: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(name, "VARIANT_UserFree");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1888: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(name, "LPSAFEARRAY_UserSize");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1891: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(name, "LPSAFEARRAY_UserMarshal");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1894: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(name, "LPSAFEARRAY_UserUnmarshal");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1897: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(name, "LPSAFEARRAY_UserFree");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1900: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(name, "LPSAFEARRAY_Size");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1903: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(name, "LPSAFEARRAY_Marshal");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1906: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(name, "LPSAFEARRAY_Unmarshal");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1909: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(name, "VarDecCmpR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1912: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(name, "VarCyAdd");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1915: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(name, "DllUnregisterServer");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1918: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(name, "OACreateTypeLib2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1921: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(name, "VarCyMul");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1924: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(name, "VarCyMulI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1927: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(name, "VarCySub");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1930: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(name, "VarCyAbs");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1933: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(name, "VarCyFix");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1936: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(name, "VarCyInt");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1939: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(name, "VarCyNeg");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1942: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(name, "VarCyRound");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1945: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(name, "VarCyCmp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1948: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(name, "VarCyCmpR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1951: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(name, "VarBstrCat");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1954: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(name, "VarBstrCmp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1957: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(name, "VarR8Pow");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1960: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(name, "VarR4CmpR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1963: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(name, "VarR8Round");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1966: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(name, "VarCat");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1969: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(name, "VarDateFromUdateEx");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1972: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(name, "GetRecordInfoFromGuids");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1975: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(name, "GetRecordInfoFromTypeInfo");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1978: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(name, "SetVarConversionLocaleSetting");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1981: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(name, "GetVarConversionLocaleSetting");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1984: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(name, "SetOaNoCache");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1987: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(name, "VarCyMulI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1990: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(name, "VarDateFromUdate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1993: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(name, "VarUdateFromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1996: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(name, "GetAltMonthNames");
data/clamav-0.103.0+dfsg/libclamav/pe.c:1999: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(name, "VarI8FromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2002: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(name, "VarI8FromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2005: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(name, "VarI8FromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2008: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(name, "VarI8FromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2011: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(name, "VarI8FromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2014: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(name, "VarI8FromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2017: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(name, "VarI8FromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2020: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(name, "VarI8FromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2023: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(name, "VarI8FromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2026: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(name, "VarI8FromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2029: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(name, "VarI8FromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2032: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(name, "VarI8FromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2035: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(name, "VarI8FromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2038: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(name, "VarI2FromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2041: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(name, "VarI2FromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2044: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(name, "VarI4FromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2047: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(name, "VarI4FromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2050: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(name, "VarR4FromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2053: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(name, "VarR4FromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2056: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(name, "VarR8FromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2059: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(name, "VarR8FromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2062: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(name, "VarDateFromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2065: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(name, "VarDateFromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2068: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(name, "VarCyFromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2071: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(name, "VarCyFromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2074: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(name, "VarBstrFromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2077: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(name, "VarBstrFromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2080: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(name, "VarBoolFromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2083: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(name, "VarBoolFromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2086: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(name, "VarUI1FromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2089: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(name, "VarUI1FromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2092: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(name, "VarDecFromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2095: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(name, "VarDecFromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2098: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(name, "VarI1FromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2101: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(name, "VarI1FromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2104: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(name, "VarUI2FromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2107: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(name, "VarUI2FromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2110: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(name, "OleLoadPictureEx");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2113: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(name, "OleLoadPictureFileEx");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2116: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(name, "SafeArrayCreateVector");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2119: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(name, "SafeArrayCopyData");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2122: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(name, "VectorFromBstr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2125: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(name, "BstrFromVector");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2128: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(name, "OleIconToCursor");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2131: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(name, "OleCreatePropertyFrameIndirect");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2134: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(name, "OleCreatePropertyFrame");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2137: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(name, "OleLoadPicture");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2140: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(name, "OleCreatePictureIndirect");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2143: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(name, "OleCreateFontIndirect");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2146: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(name, "OleTranslateColor");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2149: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(name, "OleLoadPictureFile");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2152: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(name, "OleSavePictureFile");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2155: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(name, "OleLoadPicturePath");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2158: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(name, "VarUI4FromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2161: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(name, "VarUI4FromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2164: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(name, "VarI8FromUI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2167: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(name, "VarUI8FromI8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2170: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(name, "VarUI8FromUI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2173: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(name, "VarUI8FromI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2176: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(name, "VarUI8FromR4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2179: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(name, "VarUI8FromR8");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2182: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(name, "VarUI8FromCy");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2185: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(name, "VarUI8FromDate");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2188: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(name, "VarUI8FromStr");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2191: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(name, "VarUI8FromDisp");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2194: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(name, "VarUI8FromBool");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2197: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(name, "VarUI8FromI1");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2200: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(name, "VarUI8FromUI2");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2203: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(name, "VarUI8FromUI4");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2206: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(name, "VarUI8FromDec");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2209: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(name, "RegisterTypeLibForUser");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2212: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(name, "UnRegisterTypeLibForUser");
data/clamav-0.103.0+dfsg/libclamav/pe.c:2220: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(name, "ord%u", ord);
data/clamav-0.103.0+dfsg/libclamav/pe.c:2539: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 *hashset[CLI_HASH_AVAIL_TYPES];
data/clamav-0.103.0+dfsg/libclamav/pe.c:2592:35:  [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 *dstr = cli_str2hex((char *)hashset[CLI_HASH_MD5], hashlen[CLI_HASH_MD5]);
data/clamav-0.103.0+dfsg/libclamav/pe.c:2696: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 address[16];
data/clamav-0.103.0+dfsg/libclamav/pe.c:2745: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 epbuff[4096], *tempfile;
data/clamav-0.103.0+dfsg/libclamav/pe.c:2898: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(&pedata.file_hdr, &(peinfo->file_hdr), sizeof(peinfo->file_hdr));
data/clamav-0.103.0+dfsg/libclamav/pe.c:2900: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(&pedata.opt32, &(peinfo->pe_opt.opt32), sizeof(peinfo->pe_opt.opt32));
data/clamav-0.103.0+dfsg/libclamav/pe.c:2901: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(&pedata.opt64, &(peinfo->pe_opt.opt64), sizeof(peinfo->pe_opt.opt64));
data/clamav-0.103.0+dfsg/libclamav/pe.c:2902: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(&pedata.dirs, &(peinfo->dirs), sizeof(peinfo->dirs));
data/clamav-0.103.0+dfsg/libclamav/pe.c:2904: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(&pedata.opt32_dirs, &(peinfo->dirs), sizeof(peinfo->dirs));
data/clamav-0.103.0+dfsg/libclamav/pe.c:2905: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(&pedata.opt64_dirs, &(peinfo->dirs), sizeof(peinfo->dirs));
data/clamav-0.103.0+dfsg/libclamav/pe.c:4524: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 timestr[32];
data/clamav-0.103.0+dfsg/libclamav/pe.c:4546: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 jsonbuf[128];
data/clamav-0.103.0+dfsg/libclamav/pe.c:5135: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 sname[9];
data/clamav-0.103.0+dfsg/libclamav/pe.c:5161:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(&(peinfo->sections[j]), &(peinfo->sections[j + 1]), sizeof(struct cli_exe_section));
data/clamav-0.103.0+dfsg/libclamav/pe.c:5164:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(&section_hdrs[j], &section_hdrs[j + 1], sizeof(struct pe_image_section_hdr));
data/clamav-0.103.0+dfsg/libclamav/pe.c:5791: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 *hash, *hashset[CLI_HASH_AVAIL_TYPES];
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:768:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(f = fopen(fname, "wb"))) {
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1270: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 mstr[ICOSIGSZ + 1], *ptr = mstr;
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1272: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(ptr, "%02x", side);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1275:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%03x", res->color_avg[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1277:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->color_x[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1279:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->color_y[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1283:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%03x", res->gray_avg[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1285:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->gray_x[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1287:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->gray_y[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1291:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->bright_avg[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1293:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->bright_x[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1295:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->bright_y[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1299:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->dark_avg[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1301:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->dark_x[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1303:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->dark_y[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1307:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->edge_avg[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1309:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->edge_x[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1311:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->edge_y[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1315:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->noedge_avg[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1317:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->noedge_x[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1319:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(ptr, "%02x", res->noedge_y[i]);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1322: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(ptr, "%02x", res->rsum);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1324: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(ptr, "%02x", res->gsum);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1326: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(ptr, "%02x", res->bsum);
data/clamav-0.103.0+dfsg/libclamav/pe_icons.c:1328: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(ptr, "%02x", res->ccount);
data/clamav-0.103.0+dfsg/libclamav/perflogging.c:66:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *perf_log_names_sum[__LAST_SUMABLE] = {
data/clamav-0.103.0+dfsg/libclamav/perflogging.c:72:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *perf_log_names_cnt[__LAST_COUNTABLE] = {
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:1159: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 s[1024];
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:1175:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char h[65];
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:1176:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char sha256_dig[32];
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:1349: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 urlbuff[URL_MAX_LEN + 3]; /* htmlnorm truncates at 1024 bytes + terminating null + slash + host end null */
data/clamav-0.103.0+dfsg/libclamav/png.c:46: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 chunkid[5] = {'\0', '\0', '\0', '\0', '\0'};
data/clamav-0.103.0+dfsg/libclamav/readdb.c:96:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char DATABASE_DIRECTORY[MAX_PATH] = "";
data/clamav-0.103.0+dfsg/libclamav/readdb.c:429:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(hexcpy, "??");
data/clamav-0.103.0+dfsg/libclamav/readdb.c:524:63:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                if (!cli_isnumber(pt) || (mindist = maxdist = atoi(pt)) < 0) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:530:56:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    if (!cli_isnumber(n) || (mindist = atoi(n)) < 0) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:540:56:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    if (!cli_isnumber(n) || (maxdist = atoi(n)) < 0) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:818: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_signame, signame, nsz - pad);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:832: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 digest[16];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:861: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 cat[32], *pt;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:897: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 buffer[FILEBUFF], *buffer_cpy = NULL, *pt, *start;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:973:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *tokens[ICO_TOKENS + 1];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:974: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 buffer[FILEBUFF], *buffer_cpy = NULL;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1246:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *tokens[NDB_TOKENS + 1];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1247: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 buffer[FILEBUFF], *buffer_cpy = NULL;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1306:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if ((unsigned int)atoi(pt) > cl_retflevel()) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1307:93:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                cli_dbgmsg("Signature for %s not loaded (required f-level: %d)\n", virname, atoi(pt));
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1318:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                if ((unsigned int)atoi(pt) < cl_retflevel()) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1328:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        target = (unsigned short)atoi(pt);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1412: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 *tokens[ATTRIB_TOKENS], *pt, *pt2;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1461:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                tdb->val[cnt] = atoi(pt);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1481:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char *ftypes[EXPR_TOKEN_MAX];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1527:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                tdb->range[cnt]     = atoi(pt);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1528:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                tdb->range[cnt + 1] = atoi(pt2);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1563: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(&tdb->str[cnt], pt, strlen(pt));
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1705: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 *tokens[LDB_TOKENS + 1], *subtokens[SUB_TOKENS + 1];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1892: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(&lsig->tdb, &tdb, sizeof(tdb));
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1898: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 buffer[CLI_DEFAULT_LSIG_BUFSIZE + 1], *buffer_cpy = NULL;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1951: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[4096];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2088:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *tokens[FTM_TOKENS + 1], *pt;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2089: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 buffer[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2127:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if ((unsigned int)atoi(pt) > cl_retflevel()) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2128:118:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                cli_dbgmsg("cli_loadftm: File type signature for %s not loaded (required f-level: %u)\n", tokens[3], atoi(pt));
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2137:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                if ((unsigned int)atoi(pt) < cl_retflevel())
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2155: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).
        magictype = atoi(tokens[0]);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2172: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).
            new->offset = atoi(tokens[1]);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2197:62:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            cli_dbgmsg("cli_loadftm: Unsupported mode %u\n", atoi(tokens[0]));
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2222:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *tokens[INFO_TOKENS + 1];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2223: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 buffer[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2225: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 hash[32];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2312: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).
        new->size = atoi(tokens[1]);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2341:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *tokens[IGN_MAX_TOKENS + 1], *signame, *hash = NULL;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2342: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 buffer[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2448:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *tokens[MD5_TOKENS + 1];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2449: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 buffer[FILEBUFF], *buffer_cpy = NULL;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2504:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            req_fl = atoi(tokens[MD5_TOKENS - 2]);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2514:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int max_fl = atoi(tokens[MD5_TOKENS - 1]);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2599:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *tokens[MD_TOKENS + 1];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2600: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 buffer[FILEBUFF], *buffer_cpy = NULL;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2686:51:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        new->encrypted = strcmp(tokens[1], "*") ? atoi(tokens[1]) : 2;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2700:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            new->fsizer[0] = new->fsizer[1] = atoi(tokens[3]);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2705:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            new->fsizec[0] = new->fsizec[1] = atoi(tokens[4]);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2721:84:  [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).
        new->filepos[0] = new->filepos[1] = strcmp(tokens[7], "*") ? (unsigned int)atoi(tokens[7]) : (unsigned int)CLI_OFF_ANY;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2755:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *tokens[CDB_TOKENS + 1];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2756: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 buffer[FILEBUFF], *buffer_cpy = NULL;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2787:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if ((unsigned int)atoi(tokens[10]) > cl_retflevel()) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2788:118:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                cli_dbgmsg("cli_loadcdb: Container signature for %s not loaded (required f-level: %u)\n", tokens[0], atoi(tokens[10]));
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2796:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                if ((unsigned int)atoi(tokens[11]) < cl_retflevel())
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2858:51:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                dest[0] = dest[1] = (unsigned int)atoi(token_str);            \
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2938: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 buffer[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2939: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 *tokens[CRT_TOKENS + 1];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2982:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if ((unsigned int)atoi(tokens[CRT_TOKENS - 2]) > cl_retflevel()) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2994:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                if ((unsigned int)atoi(tokens[CRT_TOKENS - 1]) < cl_retflevel()) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:3044: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.
        if (mp_read_unsigned_bin(&(ca.n), (const unsigned char *)pubkey, strlen(tokens[4]) / 2) || mp_read_unsigned_bin(&(ca.e), exp, sizeof(exp) - 1)) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:3095: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).
            ca.not_before = atoi(tokens[8]);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:3941: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(&lsig->tdb, &tdb, sizeof(tdb));
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4154:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *tokens[PWDB_TOKENS + 1], *passname;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4156: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 buffer[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4256:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        pwstype = atoi(tokens[2]);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4325:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4332:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!dbio && (fs = fopen(filename, "rb")) == NULL) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4809: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 path[MAX_PATH] = "";
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4817: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(DATABASE_DIRECTORY, path, sizof);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:5345: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 buffer[CLI_DEFAULT_LSIG_BUFSIZE + 1];
data/clamav-0.103.0+dfsg/libclamav/readdb.c:5349: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).
    fs = fopen(dbname, "r");
data/clamav-0.103.0+dfsg/libclamav/readdb.c:5410: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 fname[1024];
data/clamav-0.103.0+dfsg/libclamav/rebuildpe.c:153: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(pefile, HEADERS, 0x148);
data/clamav-0.103.0+dfsg/libclamav/rebuildpe.c:195: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(pefile + rawbase, buffer + sections[i].raw, sections[i].rsz);
data/clamav-0.103.0+dfsg/libclamav/regex/engine.c:1002: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.
	static char pbuf[10];
data/clamav-0.103.0+dfsg/libclamav/regex/regcomp.c:111:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char nuls[10];		/* place to point scanner in event of error */
data/clamav-0.103.0+dfsg/libclamav/regex/regcomp.c:901: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 bracket[3];
data/clamav-0.103.0+dfsg/libclamav/regex/regcomp.c:943: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 bracket[4];
data/clamav-0.103.0+dfsg/libclamav/regex/regerror.c:89: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 convbuf[50];
data/clamav-0.103.0+dfsg/libclamav/regex/utils.h:62:26:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	memmove(d, s, c)	bcopy(s, d, c)
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:348: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).
        min       = atoi(ptmin);
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:352:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            max = atoi(ptmax);
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:425: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 buffer[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/regex_pcre.c:346: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 outstr[2 * MATCH_MAXLEN + 1];
data/clamav-0.103.0+dfsg/libclamav/regex_pcre.c:408: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 outstr[2 * MATCH_MAXLEN + 1];
data/clamav-0.103.0+dfsg/libclamav/regex_suffix.c:121: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(d->u.leaf_class_bitmap, p->u.leaf_class_bitmap, 32);
data/clamav-0.103.0+dfsg/libclamav/rijndael.h:5:75:  [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.
void rijndaelDecrypt(const unsigned long *rk, int nrounds, const unsigned char ciphertext[16], unsigned char plaintext[16]);
data/clamav-0.103.0+dfsg/libclamav/rijndael.h:5:105:  [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.
void rijndaelDecrypt(const unsigned long *rk, int nrounds, const unsigned char ciphertext[16], unsigned char plaintext[16]);
data/clamav-0.103.0+dfsg/libclamav/rijndael.h:8:75:  [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.
void rijndaelEncrypt(const unsigned long *rk, int nrounds, const unsigned char plaintext[16], unsigned char ciphertext[16]);
data/clamav-0.103.0+dfsg/libclamav/rijndael.h:8:104:  [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.
void rijndaelEncrypt(const unsigned long *rk, int nrounds, const unsigned char plaintext[16], unsigned char ciphertext[16]);
data/clamav-0.103.0+dfsg/libclamav/rtf.c: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 controlword[33];
data/clamav-0.103.0+dfsg/libclamav/rtf.c:268: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 outdata[BUFF_SIZE];
data/clamav-0.103.0+dfsg/libclamav/rtf.c:410: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.
                        char out[4];
data/clamav-0.103.0+dfsg/libclamav/scanners.c:286:26:  [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).
            comment_fd = open(comment_fullpath, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0600);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:662:30:  [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).
                comment_fd = open(comment_fullpath, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0600);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:831:40:  [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).
                        extracted_fd = open(extract_fullpath, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0600);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1126: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 buff[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1248: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[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1525: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 fullname[PATH_MAX];
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1553:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                memcpy(result, dir, len);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1578: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 path[PATH_MAX];
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1579: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 filename[PATH_MAX];
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1679: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 *fullname, vbaname[1024];
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1704:22:  [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(vbaname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1775:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fd = open(vbaname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1813:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fd = open(vbaname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1871:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fd = open(vbaname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1892:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fd = open(vbaname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1920:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(vbaname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:2044: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 *tempname, fullname[1024];
data/clamav-0.103.0+dfsg/libclamav/scanners.c:2072:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(fullname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:2088:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fd = open(fullname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:2099:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(fullname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:2334:15:  [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 ((fd = open(tempname, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) < 0) {
data/clamav-0.103.0+dfsg/libclamav/scanners.c:2598:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((ndesc = open(tempfile, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) < 0) {
data/clamav-0.103.0+dfsg/libclamav/scanners.c:2755: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[8192];
data/clamav-0.103.0+dfsg/libclamav/scanners.c:2857:15:  [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 ((fd = open(tmpname, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) < 0) {
data/clamav-0.103.0+dfsg/libclamav/scanners.c:3010: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 timestr[512];
data/clamav-0.103.0+dfsg/libclamav/scanners.c:3800: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 hashstr[33];
data/clamav-0.103.0+dfsg/libclamav/scanners.c:4740: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(ctx.options, scanoptions, sizeof(struct cl_scan_options));
data/clamav-0.103.0+dfsg/libclamav/scanners.c:4782:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[64];
data/clamav-0.103.0+dfsg/libclamav/sis.c:139: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(buff, buff + smax - sleft, sleft);                        \
data/clamav-0.103.0+dfsg/libclamav/sis.c:437:21:  [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 ofn[1024];
data/clamav-0.103.0+dfsg/libclamav/sis.c:484:35:  [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 ((fd = open(ofn, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0600)) == -1) {
data/clamav-0.103.0+dfsg/libclamav/sis.c:615:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(s->buff, s->buff + s->smax - s->sleft, s->sleft);
data/clamav-0.103.0+dfsg/libclamav/sis.c:735: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.
                        char tempf[1024];
data/clamav-0.103.0+dfsg/libclamav/sis.c:797:39:  [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 ((fd = open(tempf, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0600)) == -1) {
data/clamav-0.103.0+dfsg/libclamav/special.c:355: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 stri[4096];
data/clamav-0.103.0+dfsg/libclamav/spin.c:172:21:  [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.
    if ((spinned = (char *)cli_malloc(sections[sectcnt].rsz)) == NULL) {
data/clamav-0.103.0+dfsg/libclamav/spin.c:177: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(spinned, src + sections[sectcnt].raw, sections[sectcnt].rsz);
data/clamav-0.103.0+dfsg/libclamav/spin.c:257:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(src + sections[sectcnt].raw, spinned, sections[sectcnt].rsz);
data/clamav-0.103.0+dfsg/libclamav/spin.c:403:30:  [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.
            if ((sects[j] = (char *)cli_malloc(sections[j].vsz)) == NULL) {
data/clamav-0.103.0+dfsg/libclamav/spin.c:448:26:  [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.
            if ((curr = (char *)cli_malloc(sections[j].vsz)) != NULL) {
data/clamav-0.103.0+dfsg/libclamav/spin.c:449: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(curr, src + sections[j].raw, key32 - sections[j].rva);                           /* Uncompressed part */
data/clamav-0.103.0+dfsg/libclamav/spin.c:486: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(to, sects[j], rebhlp[j].rsz);
data/clamav-0.103.0+dfsg/libclamav/stats.c:79: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(hash + (i * 2), "%02x", md5[i]);
data/clamav-0.103.0+dfsg/libclamav/stats.c:265:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(sample->sections->sections, sections->sections, sections->nsections * sizeof(struct cli_section_hash));
data/clamav-0.103.0+dfsg/libclamav/stats.c:382: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(&myintel, intel, sizeof(cli_intel_t));
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:59: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(p + (i * 2), "%02x", t);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:104: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(buf + strlen(buf), "\t\"samples\": [\n");
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:173:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(md5 + (j * 2), "%02x", sample->sections->sections[i].md5[j]);
data/clamav-0.103.0+dfsg/libclamav/str.c:436: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 f[3];
data/clamav-0.103.0+dfsg/libclamav/str.c:464:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(alloc, s, len);
data/clamav-0.103.0+dfsg/libclamav/swf.c:117: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 signature[3];
data/clamav-0.103.0+dfsg/libclamav/swf.c:125:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char inbuff[FILEBUFF], outbuff[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/swf.c:305: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 inbuff[FILEBUFF], outbuff[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/textdet.c:58:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char text_chars[256] = {
data/clamav-0.103.0+dfsg/libclamav/tiff.c:41: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 magic[4];
data/clamav-0.103.0+dfsg/libclamav/tnef.c:163:21:  [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[BUFSIZ];
data/clamav-0.103.0+dfsg/libclamav/tnef.c:166:32:  [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).
                        fout = open(filename, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC | O_BINARY, 0600);
data/clamav-0.103.0+dfsg/libclamav/tnef.c:327:26:  [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[BUFSIZ];
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/misc/fp_ident.c:14:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char buf[1024];
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_12.c:9:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 12 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_12.c:10:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+12, B->dp, 12 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_17.c:9:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 17 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_17.c:10:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+17, B->dp, 17 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_20.c:9:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 20 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_20.c:10:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+20, B->dp, 20 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_24.c:9:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 24 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_24.c:10:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+24, B->dp, 24 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_28.c:9:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 28 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_28.c:10:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+28, B->dp, 28 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_3.c:9:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 3 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_3.c:10:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+3, B->dp, 3 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_32.c:11:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 32 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_32.c:12:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+32, B->dp, 32 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_4.c:9:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 4 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_4.c:10:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+4, B->dp, 4 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_48.c:9:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 48 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_48.c:10:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+48, B->dp, 48 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_6.c:9:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 6 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_6.c:10:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+6, B->dp, 6 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_64.c:9:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 64 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_64.c:10:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+64, B->dp, 64 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_7.c:9:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 7 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_7.c:10:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+7, B->dp, 7 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_8.c:9:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 8 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_8.c:10:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+8, B->dp, 8 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_9.c:9:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at, A->dp, 9 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_9.c:10:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(at+9, B->dp, 9 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:11: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(at, A->dp, 1 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:12: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(at+1, B->dp, 1 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:27: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(at, A->dp, 2 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:28: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(at+2, B->dp, 2 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:51: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(at, A->dp, 3 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:52: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(at+3, B->dp, 3 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:83: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(at, A->dp, 4 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:84: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(at+4, B->dp, 4 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:123: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(at, A->dp, 5 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:124: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(at+5, B->dp, 5 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:171: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(at, A->dp, 6 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:172: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(at+6, B->dp, 6 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:227: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(at, A->dp, 7 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:228: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(at+7, B->dp, 7 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:291: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(at, A->dp, 8 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:292: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(at+8, B->dp, 8 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:363: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(at, A->dp, 9 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:364: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(at+9, B->dp, 9 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:443: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(at, A->dp, 10 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:444: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(at+10, B->dp, 10 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:531: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(at, A->dp, 11 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:532: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(at+11, B->dp, 11 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:627: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(at, A->dp, 12 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:628: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(at+12, B->dp, 12 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:731: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(at, A->dp, 13 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:732: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(at+13, B->dp, 13 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:843: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(at, A->dp, 14 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:844: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(at+14, B->dp, 14 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:963: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(at, A->dp, 15 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:964: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(at+15, B->dp, 15 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:1091: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(at, A->dp, 16 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/mul/fp_mul_comba_small_set.c:1092: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(at+16, B->dp, 16 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_12.c:136:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 24 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_17.c:186:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 34 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_20.c:216:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 40 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_24.c:256:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 48 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_28.c:296:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 56 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_3.c:46:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 6 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_32.c:336:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 64 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_4.c:56:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 8 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_48.c:496:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 96 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_6.c:76:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 12 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_64.c:656:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 128 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_7.c:86:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 14 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_8.c:96:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 16 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_9.c:106:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(B->dp, b, 18 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:27: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(B->dp, b, 2 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:56: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(B->dp, b, 4 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:95: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(B->dp, b, 6 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:144: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(B->dp, b, 8 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:203: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(B->dp, b, 10 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:272: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(B->dp, b, 12 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:351: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(B->dp, b, 14 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:440: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(B->dp, b, 16 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:539: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(B->dp, b, 18 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:648: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(B->dp, b, 20 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:767: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(B->dp, b, 22 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:896: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(B->dp, b, 24 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:1035: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(B->dp, b, 26 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:1184: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(B->dp, b, 28 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:1343: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(B->dp, b, 30 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/sqr/fp_sqr_comba_small_set.c:1512: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(B->dp, b, 32 * sizeof(fp_digit));
data/clamav-0.103.0+dfsg/libclamav/unarj.c:156:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char c_len[NC];
data/clamav-0.103.0+dfsg/libclamav/unarj.c:158: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 pt_len[NPT];
data/clamav-0.103.0+dfsg/libclamav/unarj.c:819:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char header_id[2] = {0x60, 0xea};
data/clamav-0.103.0+dfsg/libclamav/unarj.c:1176: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 filename[1024];
data/clamav-0.103.0+dfsg/libclamav/unarj.c:1192: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).
    metadata->ofd = open(filename, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0600);
data/clamav-0.103.0+dfsg/libclamav/uniq.h:89:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[33];        /**< Ascii md5 hash of the item. */
data/clamav-0.103.0+dfsg/libclamav/untar.c:78: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 ochecksum[TARCHECKSUMLEN + 1];
data/clamav-0.103.0+dfsg/libclamav/untar.c:136: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 fullname[PATH_MAX + 1];
data/clamav-0.103.0+dfsg/libclamav/untar.c:137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[101];
data/clamav-0.103.0+dfsg/libclamav/untar.c:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char zero[BLOCKSIZE];
data/clamav-0.103.0+dfsg/libclamav/untar.c:171:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char magic[7], osize[TARSIZELEN + 1];
data/clamav-0.103.0+dfsg/libclamav/untar.c:314:46:  [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).
            fout                           = open(fullname, O_RDWR | O_CREAT | O_EXCL | O_TRUNC | O_BINARY, 0600);
data/clamav-0.103.0+dfsg/libclamav/untar.c:317:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char err[128];
data/clamav-0.103.0+dfsg/libclamav/untar.c:328:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char err[128];
data/clamav-0.103.0+dfsg/libclamav/unzip.c:116: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 obuf[BUFSIZ];
data/clamav-0.103.0+dfsg/libclamav/unzip.c:135: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).
    if ((out_file = open(tempfile, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) == -1) {
data/clamav-0.103.0+dfsg/libclamav/unzip.c:372: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 tmp[1];
data/clamav-0.103.0+dfsg/libclamav/unzip.c:400:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static inline unsigned char zdecryptbyte(uint32_t key[3])
data/clamav-0.103.0+dfsg/libclamav/unzip.c:458: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(encryption_header, src, SIZEOF_ENCRYPTION_HEADER);
data/clamav-0.103.0+dfsg/libclamav/unzip.c:493:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char name[1024], obuf[BUFSIZ];
data/clamav-0.103.0+dfsg/libclamav/unzip.c:509:29:  [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 ((out_file = open(tempfile, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) == -1) {
data/clamav-0.103.0+dfsg/libclamav/unzip.c:614:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[256];
data/clamav-0.103.0+dfsg/libclamav/unzip.c:645: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(name, zip, nsize);
data/clamav-0.103.0+dfsg/libclamav/unzip.c:806:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[256];
data/clamav-0.103.0+dfsg/libclamav/unzip.c:831: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(name, src, size);
data/clamav-0.103.0+dfsg/libclamav/unzip.h:36:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *names[MAX_ZIP_REQUESTS];
data/clamav-0.103.0+dfsg/libclamav/upx.c:194: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(newbuf, HEADERS, 0xd0);
data/clamav-0.103.0+dfsg/libclamav/upx.c:195: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(newbuf + 0xd0, FAKEPE, 0x120);
data/clamav-0.103.0+dfsg/libclamav/upx.c:196: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(newbuf + 0x200, dst, dend);
data/clamav-0.103.0+dfsg/libclamav/upx.c:197: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, newbuf, dend + 0x200);
data/clamav-0.103.0+dfsg/libclamav/upx.c:242: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(newbuf, HEADERS, 0xd0);
data/clamav-0.103.0+dfsg/libclamav/upx.c:243: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(newbuf + 0xd0, pehdr, 0xf8 + 0x28 * sectcnt);
data/clamav-0.103.0+dfsg/libclamav/upx.c:259: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(newbuf + offset1, dst + offset3 - upx0, offset2);
data/clamav-0.103.0+dfsg/libclamav/upx.c:271: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, newbuf, foffset);
data/clamav-0.103.0+dfsg/libclamav/upx.c:584: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 fake_lzmahdr[5];
data/clamav-0.103.0+dfsg/libclamav/uuencode.c:51: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 buffer[RFC2821LENGTH + 1];
data/clamav-0.103.0+dfsg/libclamav/uuencode.c:88: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 buffer[RFC2821LENGTH + 1];
data/clamav-0.103.0+dfsg/libclamav/uuencode.c:105:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char data[1024];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:67: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 magic[2];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:68: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 version[4];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:69: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 ignore[28];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:159: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 test_middle[MIDDLE_SIZE];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:364: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 fullname[1024];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:386:38:  [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(fullname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:421:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[4];                                                                   \
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:516: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.
                        char str_sys_kind[22];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:536:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:553:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:570:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:689:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:706:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:733:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:750:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:767:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[64];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1034:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buffer[64];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1240:21:  [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 module_filename[PATH_MAX];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1244:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                    int module_fd = open(module_filename, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1346: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 fullname[1024], *hash;
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1367:38:  [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(fullname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1569: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[VBA_COMPRESSION_WINDOW];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1607:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&buffer[winpos], &buffer[srcpos],
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1652: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 data[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1716:11:  [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).
    ofd = open(fullname, O_RDWR | O_CREAT | O_TRUNC | O_BINARY | O_EXCL,
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1779: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 inbuff[PPT_LZW_BUFFSIZE], outbuff[PPT_LZW_BUFFSIZE];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1780: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 fullname[PATH_MAX + 1];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1785:11:  [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).
    ofd = open(fullname, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY | O_EXCL,
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1911: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 unused[12];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1961:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char ignore[10];
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:2307: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 smallbuf[128];
data/clamav-0.103.0+dfsg/libclamav/wwunpack.c:103: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(compd, unpd, szd);
data/clamav-0.103.0+dfsg/libclamav/www.c:184:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buf + j, "%%%02x", postdata[i]);
data/clamav-0.103.0+dfsg/libclamav/www.c:199: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 chunkedlen[21];
data/clamav-0.103.0+dfsg/libclamav/xar.c:440: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 e_hash_result[SHA1_HASH_SIZE];
data/clamav-0.103.0+dfsg/libclamav/xar.c:441: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 a_hash_result[SHA1_HASH_SIZE];
data/clamav-0.103.0+dfsg/libclamav/xar.c:615: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 char buff[FILEBUFF];
data/clamav-0.103.0+dfsg/libclamav/xar.c:679:21:  [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 errbuff[128];
data/clamav-0.103.0+dfsg/libclamav/xar.c:716: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.
                        char errbuff[128];
data/clamav-0.103.0+dfsg/libclamav/xar.c:789: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.
                        char errbuff[128];
data/clamav-0.103.0+dfsg/libclamav/xlm_extract.c:4091: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 fullname[PATH_MAX];
data/clamav-0.103.0+dfsg/libclamav/xlm_extract.c:4111:38:  [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).
    in_fd                          = open(fullname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/libclamav/yara_arena.c:50: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      magic[4];
data/clamav-0.103.0+dfsg/libclamav/yara_arena.c:432: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(page->new_address, page->address, page->used);
data/clamav-0.103.0+dfsg/libclamav/yara_arena.c:717: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(output, data, size);
data/clamav-0.103.0+dfsg/libclamav/yara_arena.c:827: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(new_page->address, page->address, page->size);
data/clamav-0.103.0+dfsg/libclamav/yara_arena.c:908:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fh = fopen(filename, "wb");
data/clamav-0.103.0+dfsg/libclamav/yara_arena.c:1002:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fh = fopen(filename, "rb");
data/clamav-0.103.0+dfsg/libclamav/yara_clam.h:245: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 c_string[1];
data/clamav-0.103.0+dfsg/libclamav/yara_compiler.h:88: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              last_error_extra_info[MAX_COMPILER_ERROR_EXTRA_INFO];
data/clamav-0.103.0+dfsg/libclamav/yara_compiler.h:90: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              lex_buf[LEX_BUF_SIZE];
data/clamav-0.103.0+dfsg/libclamav/yara_compiler.h:94: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              include_base_dir[MAX_PATH];
data/clamav-0.103.0+dfsg/libclamav/yara_exec.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(&r1, ip + 1, sizeof(uint64_t));
data/clamav-0.103.0+dfsg/libclamav/yara_exec.c:197: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(&r1, ip + 1, sizeof(uint64_t));
data/clamav-0.103.0+dfsg/libclamav/yara_exec.c:203: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(&r1, ip + 1, sizeof(uint64_t));
data/clamav-0.103.0+dfsg/libclamav/yara_exec.c:210: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(&r1, ip + 1, sizeof(uint64_t));
data/clamav-0.103.0+dfsg/libclamav/yara_exec.c:216: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(&r1, ip + 1, sizeof(uint64_t));
data/clamav-0.103.0+dfsg/libclamav/yara_exec.c:222: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(&r1, ip + 1, sizeof(uint64_t));
data/clamav-0.103.0+dfsg/libclamav/yara_exec.c:228: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(&r1, ip + 1, sizeof(uint64_t));
data/clamav-0.103.0+dfsg/libclamav/yara_exec.c:543: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(&r1, ip + 1, sizeof(uint64_t));
data/clamav-0.103.0+dfsg/libclamav/yara_exec.c:857: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(&r1, ip + 1, sizeof(uint64_t));
data/clamav-0.103.0+dfsg/libclamav/yara_grammar.c:1248: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/clamav-0.103.0+dfsg/libclamav/yara_grammar.c:1501: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 yymsgbuf[128];
data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:1313: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            buffer[1024];
data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:1352:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fh = fopen(buffer, "r");
data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:1363:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fh = fopen(yyextra->lex_buf, "r");
data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:1371:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fh = fopen(yyextra->lex_buf, "r");
data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:1528:30:  [2] (integer) atol:
  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).
  yylval->integer = (size_t) atol(yytext);
data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:1570: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(s->c_string, yyextra->lex_buf, yyextra->lex_buf_len + 1);
data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:2981: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 message[512] = {'\0'};
data/clamav-0.103.0+dfsg/libclamav/yara_parser.c:191: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 message[MAX_COMPILER_ERROR_EXTRA_INFO];
data/clamav-0.103.0+dfsg/libclamav/yara_parser.c:473: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 message[512];
data/clamav-0.103.0+dfsg/libclamunrar_iface/unrar_iface.cpp:191: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(alloc, s, len);
data/clamav-0.103.0+dfsg/libclamunrar_iface/unrar_iface.cpp:309:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t RedirName[1024];
data/clamav-0.103.0+dfsg/libclamunrar_iface/unrar_iface.cpp:459: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(UserBuffer, (char*)P1, P2);
data/clamav-0.103.0+dfsg/libfreshclam/dns.c:48: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 answer[PACKETSZ], *answend, *pt;
data/clamav-0.103.0+dfsg/libfreshclam/dns.c:49: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 *txt, host[128];
data/clamav-0.103.0+dfsg/libfreshclam/dns.c:145: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(txt, pt + 1, txtlen);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:458: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 version_string[32];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:492:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    recordTime = atoi(reply_token);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:315: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 userAgent[128];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:490:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&(receivedData->buffer[receivedData->size]), contents, real_size);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:549: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 head[CVD_HEADER_SIZE + 1];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:558: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 errbuf[CURL_ERROR_SIZE];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:833: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 errbuf[CURL_ERROR_SIZE];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:946:38:  [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 (-1 == (receivedFile.handle = open(destfile, O_WRONLY | O_CREAT | O_EXCL | O_BINARY, 0644))) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:947: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 currdir[PATH_MAX];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1051:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    const char *tmpfile,
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1065:39:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((NULL == cvdfile) || (NULL == tmpfile) || (NULL == server)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1074:48:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (FC_SUCCESS != (ret = downloadFile(url, tmpfile, 1, logerr, 0))) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1081:37:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    tmpfile_with_extension = strdup(tmpfile);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1088:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (rename(tmpfile, tmpfile_with_extension) == -1) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1089:54:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        logg("!getcvd: Can't rename %s to %s: %s\n", tmpfile, tmpfile_with_extension, strerror(errno));
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1107:40:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (rename(tmpfile_with_extension, tmpfile) == -1) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1108:78:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        logg("!getcvd: Can't rename %s to %s: %s\n", tmpfile_with_extension, tmpfile, strerror(errno));
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1148:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        if (NULL != tmpfile) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1149:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            unlink(tmpfile);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1169: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 cvdfile[DB_FILENAME_MAX];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1244: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 patch[DB_FILENAME_MAX];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1245: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 olddir[PATH_MAX];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1290: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).
    if (-1 == (fd = open(tempname, O_RDONLY | O_BINARY))) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1338: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 filename[DB_FILENAME_MAX];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1381: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 olddir[PATH_MAX] = {0};
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1382: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 info[DB_FILENAME_MAX];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1383:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[CVD_HEADER_SIZE + 1];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1410: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).
    if (-1 == (fd = open(info, O_RDONLY | O_BINARY))) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1433: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).
    if (-1 == (fd = open(newfile, O_WRONLY | O_CREAT | O_EXCL | O_BINARY, 0644))) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1549: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 cvdfile[DB_FILENAME_MAX];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1550: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 cldfile[DB_FILENAME_MAX];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1587:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            newVersion = atoi(verStrDnsPrimary);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1614:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    recordTime = atoi(recordTimeStr);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1623:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                            newVersion = atoi(verStrDnsExtra);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1908:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (!tmpfile) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1917:38:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        ret = getcvd(remoteFilename, tmpfile, server, remoteVersion, logerr);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1983:42:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            ret = getcvd(remoteFilename, tmpfile, server, remoteVersion, logerr);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1995:58:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            if (FC_SUCCESS != buildcld(tmpdir, database, tmpfile, g_bCompressLocalDatabase)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2013:52:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        size_t tmpfile_with_extension_len = strlen(tmpfile) + 1 + strlen(newLocalFilename);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2021:83:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        snprintf(tmpfile_with_extension, tmpfile_with_extension_len + 1, "%s-%s", tmpfile, newLocalFilename);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2022:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        if (rename(tmpfile, tmpfile_with_extension) == -1) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2023:60:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            logg("!updatedb: Can't rename %s to %s: %s\n", tmpfile, tmpfile_with_extension, strerror(errno));
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2028:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        free(tmpfile);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2034:57:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        if (FC_SUCCESS != (ret = g_cb_download_complete(tmpfile, context))) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2051:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (rename(tmpfile, newLocalFilename) == -1) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2052:56:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        logg("!updatedb: Can't rename %s to %s: %s\n", tmpfile, newLocalFilename, strerror(errno));
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2108:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (NULL != tmpfile) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2109:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        unlink(tmpfile);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2110:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        free(tmpfile);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2147:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (!tmpfile) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2184:39:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        if (-1 == cli_filecopy(rpath, tmpfile)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2204:33:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        ret = downloadFile(url, tmpfile, 1, logerr, dbtime);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2221:52:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        size_t tmpfile_with_extension_len = strlen(tmpfile) + 1 + strlen(databaseName);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2229:83:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        snprintf(tmpfile_with_extension, tmpfile_with_extension_len + 1, "%s-%s", tmpfile, databaseName);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2230:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        if (rename(tmpfile, tmpfile_with_extension) == -1) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2231:66:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            logg("!updatecustomdb: Can't rename %s to %s: %s\n", tmpfile, tmpfile_with_extension, strerror(errno));
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2236:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        free(tmpfile);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2242:57:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        if (FC_SUCCESS != (ret = g_cb_download_complete(tmpfile, context))) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2259:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (rename(tmpfile, databaseName) == -1) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2260:62:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        logg("!updatecustomdb: Can't rename %s to %s: %s\n", tmpfile, databaseName, strerror(errno));
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2311:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (NULL != tmpfile) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2312:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        unlink(tmpfile);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2313:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        free(tmpfile);
data/clamav-0.103.0+dfsg/libltdl/libltdl/lt__dirent.h:65: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 d_name[LT_FILENAME_MAX];
data/clamav-0.103.0+dfsg/libltdl/loaders/dyld.c:326: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 saveError[256] = "Symbol not found";
data/clamav-0.103.0+dfsg/libltdl/loaders/loadlibrary.c:139: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		wpath[MAX_PATH];
data/clamav-0.103.0+dfsg/libltdl/lt__alloc.c:87:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return memcpy (newmem, mem, n);
data/clamav-0.103.0+dfsg/libltdl/lt__argz.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 (argz + *pargz_len, buf, buf_len);
data/clamav-0.103.0+dfsg/libltdl/lt__argz.c:166: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  (before, entry, entry_len);
data/clamav-0.103.0+dfsg/libltdl/lt__dirent.c:51: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 file_spec[LT_FILENAME_MAX];
data/clamav-0.103.0+dfsg/libltdl/lt_error.c:36:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char	error_strings[LT_ERROR_MAX][LT_ERROR_LEN_MAX + 1] =
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:756:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((*pfile = fopen (filename, LT_READTEXT_MODE)))
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1023:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp, &str[1], (end - str) - 1);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1383:11:  [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 = fopen (attempt, LT_READTEXT_MODE);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:2016: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	lsym[LT_SYMBOL_LENGTH];
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:2071:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(sym, "_LTX_");
data/clamav-0.103.0+dfsg/shared/actions.c:82:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(*newname, O_WRONLY | O_CREAT | O_EXCL, 0600);
data/clamav-0.103.0+dfsg/shared/actions.c:154:28:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    cchNextDirectoryName = MultiByteToWideChar(CP_UTF8, 0, filename, -1, NULL, 0);
data/clamav-0.103.0+dfsg/shared/actions.c:160:14:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    if (0 == MultiByteToWideChar(CP_UTF8, 0, filename, -1, filenameW, cchNextDirectoryName)) {
data/clamav-0.103.0+dfsg/shared/actions.c:245:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *tokens[PATH_MAX / 2];
data/clamav-0.103.0+dfsg/shared/actions.c:307:22:  [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).
    current_handle = open("/", O_RDONLY | O_NOFOLLOW);
data/clamav-0.103.0+dfsg/shared/actions.c:462:23:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    cchDestFilepath = MultiByteToWideChar(CP_UTF8, 0, destination, strlen(destination), NULL, 0);
data/clamav-0.103.0+dfsg/shared/actions.c:468:14:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    if (0 == MultiByteToWideChar(CP_UTF8, 0, destination, strlen(destination), destFilepathW, cchDestFilepath)) {
data/clamav-0.103.0+dfsg/shared/actions.c:481:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(fileInfo->FileName, destFilepathW, cchDestFilepath * sizeof(WCHAR));
data/clamav-0.103.0+dfsg/shared/cdiff.c:249:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    lineno = (unsigned int)atoi(arg);
data/clamav-0.103.0+dfsg/shared/cdiff.c:308:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    lineno = (unsigned int)atoi(arg);
data/clamav-0.103.0+dfsg/shared/cdiff.c:362:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!(fh = fopen(ctx->open_db, "rb"))) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:373:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!(tmpfh = fopen(tmp, "wb"))) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:457:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!(fh = fopen(ctx->open_db, "ab"))) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:494:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    start_line = atoi(arg);
data/clamav-0.103.0+dfsg/shared/cdiff.c:501:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    end_line = atoi(arg);
data/clamav-0.103.0+dfsg/shared/cdiff.c:527:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(src = fopen(srcdb, "rb"))) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:544:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(dst = fopen(dstdb, "ab"))) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:565:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(tmp = fopen(tmpdb, "wb"))) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:768: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, *lbuf, buff[FILEBUFF], *dsig = NULL;
data/clamav-0.103.0+dfsg/shared/cdiff.c:775: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 digest[32];
data/clamav-0.103.0+dfsg/shared/cert_util.c:78:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*data, pem_data, pem_len);
data/clamav-0.103.0+dfsg/shared/cert_util.c:152: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(&((*cert_data)[current_len]), pem_data, pem_data_len);
data/clamav-0.103.0+dfsg/shared/cert_util.c:298: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(cert_name, biomem->data, biomem->length);
data/clamav-0.103.0+dfsg/shared/clamdcom.h:36: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[PATH_MAX + 1024]; /* FIXME must match that in clamd - bb1349 */
data/clamav-0.103.0+dfsg/shared/hostid.c:28:1:  [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 hostid[37];
data/clamav-0.103.0+dfsg/shared/hostid.h:24:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char hostid[37];
data/clamav-0.103.0+dfsg/shared/misc.c:197:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buff[1025];
data/clamav-0.103.0+dfsg/shared/misc.c:205:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fs = fopen(opt->strarg, "r");
data/clamav-0.103.0+dfsg/shared/misc.c:266: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).
    fds[0] = open("/dev/null", O_RDONLY);
data/clamav-0.103.0+dfsg/shared/misc.c:267: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).
    fds[1] = open("/dev/null", O_WRONLY);
data/clamav-0.103.0+dfsg/shared/misc.c:268: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).
    fds[2] = open("/dev/null", O_WRONLY);
data/clamav-0.103.0+dfsg/shared/misc.c:442: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 fname[513];
data/clamav-0.103.0+dfsg/shared/misc.c:475:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[1024];
data/clamav-0.103.0+dfsg/shared/misc.c:478:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fh = fopen(filename, "r")) == NULL)
data/clamav-0.103.0+dfsg/shared/optparser.c:81:1:  [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 _DATADIR[MAX_PATH]           = BACKUP_DATADIR;
data/clamav-0.103.0+dfsg/shared/optparser.c:82:1:  [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 _CONFDIR[MAX_PATH]           = BACKUP_CONFDIR;
data/clamav-0.103.0+dfsg/shared/optparser.c:83:1:  [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 _CONFDIR_CLAMD[MAX_PATH]     = BACKUP_CONFDIR "\\clamd.conf";
data/clamav-0.103.0+dfsg/shared/optparser.c:84:1:  [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 _CONFDIR_FRESHCLAM[MAX_PATH] = BACKUP_CONFDIR "\\freshclam.conf";
data/clamav-0.103.0+dfsg/shared/optparser.c:85:1:  [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 _CONFDIR_MILTER[MAX_PATH]    = BACKUP_CONFDIR "\\clamav-milter.conf";
data/clamav-0.103.0+dfsg/shared/optparser.c:643: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 path[MAX_PATH] = "";
data/clamav-0.103.0+dfsg/shared/optparser.c:651: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(_DATADIR, path, sizof);
data/clamav-0.103.0+dfsg/shared/optparser.c:656: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(_CONFDIR, path, sizof);
data/clamav-0.103.0+dfsg/shared/optparser.c:895: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 buffer[512], *buff;
data/clamav-0.103.0+dfsg/shared/optparser.c:897: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 shortopts[MAXCMDOPTS];
data/clamav-0.103.0+dfsg/shared/optparser.c:958:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((fs = fopen(cfgfile, "r")) == NULL) {
data/clamav-0.103.0+dfsg/shared/optparser.c:1173:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    numarg = atoi(arg);
data/clamav-0.103.0+dfsg/shared/optparser.c:1386:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    numarg = atoi(arg);
data/clamav-0.103.0+dfsg/shared/optparser.h:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char _DATADIR[MAX_PATH];
data/clamav-0.103.0+dfsg/shared/optparser.h:46:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char _CONFDIR[MAX_PATH];
data/clamav-0.103.0+dfsg/shared/optparser.h:47:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char _CONFDIR_CLAMD[MAX_PATH];
data/clamav-0.103.0+dfsg/shared/optparser.h:48:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char _CONFDIR_FRESHCLAM[MAX_PATH];
data/clamav-0.103.0+dfsg/shared/optparser.h:49:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char _CONFDIR_MILTER[MAX_PATH];
data/clamav-0.103.0+dfsg/shared/output.c:130: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 buffer[512], *abuffer = NULL, *buff;
data/clamav-0.103.0+dfsg/shared/output.c:323: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 buffer[1025], *abuffer = NULL, *buff;
data/clamav-0.103.0+dfsg/shared/output.c:361:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((logg_fp = fopen(logg_file, "at")) == NULL) {
data/clamav-0.103.0+dfsg/shared/output.c:403:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char timestr[32];
data/clamav-0.103.0+dfsg/shared/output.c:432:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char timestr[32];
data/clamav-0.103.0+dfsg/shared/output.c:474: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 buffer[512], *abuffer = NULL, *buff;
data/clamav-0.103.0+dfsg/shared/output.c:522:14:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        if (!MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, buff, -1, tmpw, tmplen)) {
data/clamav-0.103.0+dfsg/shared/tar.c:43:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[100];  /* File name */
data/clamav-0.103.0+dfsg/shared/tar.c:44: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 mode[8];    /* File mode */
data/clamav-0.103.0+dfsg/shared/tar.c:45: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 uid[8];     /* UID */
data/clamav-0.103.0+dfsg/shared/tar.c:46: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 gid[8];     /* GID */
data/clamav-0.103.0+dfsg/shared/tar.c:47: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 size[12];   /* File size (octal) */
data/clamav-0.103.0+dfsg/shared/tar.c:48: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 mtime[12];  /* Last modification */
data/clamav-0.103.0+dfsg/shared/tar.c:49: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 chksum[8];  /* Header checksum */
data/clamav-0.103.0+dfsg/shared/tar.c:50: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 type[1];    /* File type */
data/clamav-0.103.0+dfsg/shared/tar.c:51: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 lname[100]; /* Linked file name */
data/clamav-0.103.0+dfsg/shared/tar.c:52: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 pad[255];
data/clamav-0.103.0+dfsg/shared/tar.c:61: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 buff[FILEBUFF], *pt;
data/clamav-0.103.0+dfsg/shared/tar.c:64: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).
    if ((s = open(file, O_RDONLY | O_BINARY)) == -1)
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:154:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[FILEBUFF], *pt;
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:228:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(filename, O_RDONLY);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:354:15:  [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 ((fd = open(optget(opts, "html-normalise")->strarg, O_RDONLY)) == -1) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:380:13:  [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(fname, O_RDONLY);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:408:11:  [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).
    ofd = open("./normalised_text", O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:446: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 *newname, buff[512], *decoded;
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:450: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).
    if ((fd1 = open(fname, O_RDONLY)) == -1) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:463: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).
    if ((fd2 = open(newname, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)) < 0) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:495:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[512], cmd[128], pass[30], *pt;
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:569: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(pt, data, datalen);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:611: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 digest[32], buffer[FILEBUFF];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:619:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fh = fopen(file, "rb"))) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:638: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(sha + i * 2, "%02x", digest[i]);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:648:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[32], *pt, dbfile[32];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:649: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 digest[32], buffer[FILEBUFF];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:660:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fh = fopen(file, "wb+"))) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:734: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 *cdiff, *pt, buffer[FILEBUFF];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:735: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 digest[32];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:760:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(pt, ".cdiff");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:774:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(cdiffh = fopen(cdiff, "wb"))) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:788:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(scripth = fopen(script, "rb"))) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:816:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(cdiffh = fopen(cdiff, "rb"))) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:844:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(cdiffh = fopen(cdiff, "ab"))) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:871: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[FILEBUFF];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:872: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 *tarfile, header[513], smbuff[32], builder[32], *pt, olddb[512];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:873: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 patch[32], broken[32], dbname[32], dbfile[32];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1043:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(header, "ClamAV-VDB:");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1053: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(header + strlen(header), ":%u:", version);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1056: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(header + strlen(header), "%u:", sigs);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1060: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(header + strlen(header), "%u:", fl);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1065:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(header, "X:X:");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1083: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(header + strlen(header), ":%u", (unsigned int)timet);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1151:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fh = fopen(tarfile, "rb"))) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1180: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(header + strlen(header), "X:");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1187: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(header + strlen(header), ":%u", (unsigned int)timet);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1195:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(cvd = fopen(newcvd, "wb"))) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1328:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[512], *dbdir;
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1476:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fh = fopen(filename, "rb")) == NULL) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1739:15:  [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 ((fd = open(pt, O_RDONLY | O_BINARY)) == -1) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1780: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 info[32], buff[FILEBUFF], *sha, *pt, *name;
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1781:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *tokens[3];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1804:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fh = fopen(info, "rb"))) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1859:15:  [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 ((fd = open(diff, O_RDONLY | O_BINARY)) == -1) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1876:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[512];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1878:15:  [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 ((fd = open(file, O_RDONLY)) == -1) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1956:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(new = fopen(newpath, "rb"))) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1963:11:  [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).
    old = fopen(oldpath, "rb");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2081: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 spath[512], dpath[512];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2118: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 *tempdir, cwd[512];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2166:15:  [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 ((fd = open(diff, O_RDONLY | O_BINARY)) == -1) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2324:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    p += sprintf(decoded + p, "{WILDCARD_IGNORE}");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2328:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    p += sprintf(decoded + p, "{WILDCARD_NIBBLE_HIGH:0x%x}", str16[i] & 0x00f0);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2332:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    p += sprintf(decoded + p, "{WILDCARD_NIBBLE_LOW:0x%x}", str16[i] & 0x000f);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2420: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(&buff[len], decoded, hlen);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2442:32:  [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.
                        len += sprintf(buff + len, "{NOT_BOUNDARY_RIGHT}");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2444:32:  [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.
                        len += sprintf(buff + len, "{BOUNDARY_RIGHT}");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2448:32:  [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.
                        len += sprintf(buff + len, "{NOT_BOUNDARY_LEFT}");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2450:32:  [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.
                        len += sprintf(buff + len, "{BOUNDARY_LEFT}");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2456:32:  [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.
                        len += sprintf(buff + len, "{NOT_LINE_MARKER_RIGHT}");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2458:32:  [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.
                        len += sprintf(buff + len, "{LINE_MARKER_RIGHT}");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2462:32:  [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.
                        len += sprintf(buff + len, "{NOT_LINE_MARKER_LEFT}");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2464:32:  [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.
                        len += sprintf(buff + len, "{LINE_MARKER_LEFT}");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2470:32:  [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.
                        len += sprintf(buff + len, "{NOT_WORD_MARKER_RIGHT}");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2472:32:  [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.
                        len += sprintf(buff + len, "{WORD_MARKER_RIGHT}");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2476:32:  [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.
                        len += sprintf(buff + len, "{NOT_WORD_MARKER_LEFT}");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2478:32:  [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.
                        len += sprintf(buff + len, "{WORD_MARKER_LEFT}");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2491:28:  [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.
                    len += sprintf(buff + len, "{EXCLUDING_STRING_ALTERNATIVE:");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2493:28:  [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.
                    len += sprintf(buff + len, "{STRING_ALTERNATIVE:");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2517:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&buff[len], c, strlen(h) / 2);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2533:40:  [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.
                                len += sprintf(buff + len, "{EXCLUDING_STRING_ALTERNATIVE:");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2535:40:  [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.
                                len += sprintf(buff + len, "{STRING_ALTERNATIVE:");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2558: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(&buff[len], c, strlen(h) / 2);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2579: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(&buff[len], decoded, hlen);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2738:63:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                if (!cli_isnumber(pt) || (mindist = maxdist = atoi(pt)) < 0) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2744:56:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    if (!cli_isnumber(n) || (mindist = atoi(n)) < 0) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2753:56:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    if (!cli_isnumber(n) || (maxdist = atoi(n)) < 0) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2844: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 *range[2];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2922:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        mprintf("%s\n", (atoi(tokens[6]) ? "YES" : "NO"));
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2985: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 *tokens[68], *subtokens[4], *subhex;
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3087:17:  [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).
        switch (atoi(tokens[1])) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3157: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 buffer[32769];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3172: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 buffer[32769];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3181:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sigs = fopen(optget(opts, "test-sigs")->strarg, "rb");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3187:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(opts->filename[0], O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3214: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 cwd[512], path[1024];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3221:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(diff = fopen(patch, "wb"))) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3285: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 *odir, *ndir, name[32], broken[32], dbname[32];
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3450:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(filename, O_RDONLY);
data/clamav-0.103.0+dfsg/sigtool/vba.c:1013: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(tmp_buff, buff + i + 3, w_length * 2);
data/clamav-0.103.0+dfsg/sigtool/vba.c:1024: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(tmp_buff, buff + i + 2, s_length * 2);
data/clamav-0.103.0+dfsg/sigtool/vba.c:1143:45:  [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 ((desc = open(fname, O_RDONLY | O_BINARY)) == -1) {
data/clamav-0.103.0+dfsg/sigtool/vba.c:1199: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 *fullname, vbaname[1024], *hash;
data/clamav-0.103.0+dfsg/sigtool/vba.c:1220:22:  [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(vbaname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/sigtool/vba.c:1249:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(vbaname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/sigtool/vba.c:1272:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(vbaname, O_RDONLY | O_BINARY);
data/clamav-0.103.0+dfsg/unit_tests/check_bytecode.c:66: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 filestr[512];
data/clamav-0.103.0+dfsg/unit_tests/check_bytecode.c:120: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).
        fdin = open(filestr, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:170:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[256];
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[256];
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:223:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[256];
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:249:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[256];
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:276:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[256];
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:303:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[256];
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:331:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[256];
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:358:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[256];
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:521:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(file, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:539:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[256];
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:570:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[256];
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:604:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[256];
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:641:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[256];
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:716:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int timeout = atoi(user_timeout);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:744:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, le_data, sizeof(le_data));
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1255:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(str, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:132:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd               = open(NONEXISTENT, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:136:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(ACCDENIED, O_CREAT | O_WRONLY, S_IWUSR);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:261: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 nsend[BUFSIZ], nreply[BUFSIZ];
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:284: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 nsend[BUFSIZ], nreply[BUFSIZ];
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:356:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(SCANFILE, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.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(&buf[off], &chunk, sizeof(chunk));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:377: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[4096] = "nINSTREAM\n";
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:404: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 fdbuf[CMSG_SPACE(sizeof(int))];
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:405: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 dummy[BUFSIZ];
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:417: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(dummy, mesg, msg_len);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:494: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 nreply[BUFSIZ], nsend[BUFSIZ];
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:495: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).
    int fd        = open(SCANFILE, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:524:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(cmd->file, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:543:15:  [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).
    dummyfd = open(SCANFILE, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:571:15:  [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).
    dummyfd = open(SCANFILE, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:591: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[BUFSIZ];
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:690: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[BUFSIZ];
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:696:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    infd = open(SCANFILE, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:733: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[20480];
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:737:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *replies[2 + sizeof(basic_tests) / sizeof(basic_tests[0])];
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:762: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(p, INSTREAM_CMD, sizeof(INSTREAM_CMD));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:767: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(p, INSTREAM_CMD, sizeof(INSTREAM_CMD));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:770: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(p, &chunk, 4);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:782: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, END_CMD, sizeof(END_CMD));
data/clamav-0.103.0+dfsg/unit_tests/check_disasm.c:46:21:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    int fd        = mkstemp(file), ref;
data/clamav-0.103.0+dfsg/unit_tests/check_htmlnorm.c:71: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 filename[4096];
data/clamav-0.103.0+dfsg/unit_tests/check_htmlnorm.c:76:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(filename, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_htmlnorm.c:87:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(filename, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_htmlnorm.c:98:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(filename, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:182:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16384] = "</script>";
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:231: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 filename[1024];
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:247:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(filename, O_RDONLY);
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:422: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[24700] = "<%@ language='jscript.encode'>";
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:219:47:  [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.
        ret = cli_ac_scanbuff((const unsigned char *)ac_testdata[i].data, strlen(ac_testdata[i].data), &virname, NULL, NULL, root, &mdata, 0, 0, NULL, AC_SCAN_VIR, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:223:45:  [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.
        ret = cli_scan_buff((const unsigned char *)ac_testdata[i].data, strlen(ac_testdata[i].data), 0, &ctx, 0, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:262:47:  [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.
        ret = cli_ac_scanbuff((const unsigned char *)ac_testdata[i].data, strlen(ac_testdata[i].data), &virname, NULL, NULL, root, &mdata, 0, 0, NULL, AC_SCAN_VIR, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:266:45:  [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.
        ret = cli_scan_buff((const unsigned char *)ac_testdata[i].data, strlen(ac_testdata[i].data), 0, &ctx, 0, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:307:47:  [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.
        ret = cli_ac_scanbuff((const unsigned char *)ac_sigopts_testdata[i].data, ac_sigopts_testdata[i].dlength, &virname, NULL, NULL, root, &mdata, 0, 0, NULL, AC_SCAN_VIR, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:312:45:  [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.
        ret = cli_scan_buff((const unsigned char *)ac_sigopts_testdata[i].data, ac_sigopts_testdata[i].dlength, 0, &ctx, 0, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:350:47:  [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.
        ret = cli_ac_scanbuff((const unsigned char *)ac_sigopts_testdata[i].data, ac_sigopts_testdata[i].dlength, &virname, NULL, NULL, root, &mdata, 0, 0, NULL, AC_SCAN_VIR, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:355:45:  [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.
        ret = cli_scan_buff((const unsigned char *)ac_sigopts_testdata[i].data, ac_sigopts_testdata[i].dlength, 0, &ctx, 0, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:466:48:  [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.
        ret = cli_pcre_scanbuf((const unsigned char *)pcre_testdata[i].data, strlen(pcre_testdata[i].data), &virname, NULL, root, NULL, NULL, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:471:45:  [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.
        ret = cli_scan_buff((const unsigned char *)pcre_testdata[i].data, strlen(pcre_testdata[i].data), 0, &ctx, 0, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:520:48:  [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.
        ret = cli_pcre_scanbuf((const unsigned char *)pcre_testdata[i].data, strlen(pcre_testdata[i].data), &virname, NULL, root, NULL, NULL, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:525:45:  [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.
        ret = cli_scan_buff((const unsigned char *)pcre_testdata[i].data, strlen(pcre_testdata[i].data), 0, &ctx, 0, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_regex.c:584: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 urlbuff[1024 + 3];
data/clamav-0.103.0+dfsg/unit_tests/check_regex.c:622: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[4096];
data/clamav-0.103.0+dfsg/unit_tests/check_regex.c:643: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[4096];
data/clamav-0.103.0+dfsg/unit_tests/check_str.c:192: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 buf[1024];
data/clamav-0.103.0+dfsg/clamav-milter/clamav-milter.c:181:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
             strncpy(myname, opt->strarg, sizeof(myname))) ||
data/clamav-0.103.0+dfsg/clamav-milter/clamav-milter.c:223:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umsk = umask(0777); /* socket is created with 000 to avoid races */
data/clamav-0.103.0+dfsg/clamav-milter/clamav-milter.c:230:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(umsk); /* restore umask */
data/clamav-0.103.0+dfsg/clamav-milter/clamav-milter.c:421:28:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        mode_t old_umask = umask(0002);
data/clamav-0.103.0+dfsg/clamav-milter/clamav-milter.c:434:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(old_umask);
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:253:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((ret = sendchunk(cf, (unsigned char *)headerf, strlen(headerf), ctx)) != SMFIS_CONTINUE) {
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:261:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (headerv && (ret = sendchunk(cf, (unsigned char *)headerv, strlen(headerv), ctx)) != SMFIS_CONTINUE) {
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:358:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(reply);
data/clamav-0.103.0+dfsg/clamav-milter/clamfi.c:665: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).
                    rejectfmt = dst = malloc(strlen(src) * 4 + 1);
data/clamav-0.103.0+dfsg/clamav-milter/connpool.c:86:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(srv->sun_path, path, sizeof(srv->sun_path));
data/clamav-0.103.0+dfsg/clamav-milter/whitelist.c:91:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(ptr) - 1;
data/clamav-0.103.0+dfsg/clamav-milter/whitelist.c:152:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(buf) - 1;
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:149:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buffer, cpt->description, sizeof(buffer) - 1);
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:191:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(buffer, cpt->suggested, sizeof(buffer) - 1);
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:338:41:  [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).
                dbfile = (char *)malloc(strlen(dent->d_name) + strlen(dir) + 2);
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:338:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                dbfile = (char *)malloc(strlen(dent->d_name) + strlen(dir) + 2);
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:418:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for (j = 0; j < strlen(cfgfile[i].name) + 13; j++)
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:427:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dbdir, opt->strarg, sizeof(dbdir));
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:431:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(clamd_dbdir, opt->strarg, sizeof(clamd_dbdir));
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:489:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strlen(dbdir)) {
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:492:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dbdir, pt, sizeof(dbdir));
data/clamav-0.103.0+dfsg/clamconf/clamconf.c:495:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dbdir, DATADIR, sizeof(dbdir));
data/clamav-0.103.0+dfsg/clamd/clamd.c:304:21:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        old_umask = umask(0002);
data/clamav-0.103.0+dfsg/clamd/clamd.c:318:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(old_umask);
data/clamav-0.103.0+dfsg/clamd/clamd.c:459:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (!(pua_cats = realloc(pua_cats, i + strlen(opt->strarg) + 3))) {
data/clamav-0.103.0+dfsg/clamd/clamd.c:469:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    i += strlen(opt->strarg) + 1;
data/clamav-0.103.0+dfsg/clamd/clamd.c:494:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (!(pua_cats = realloc(pua_cats, i + strlen(opt->strarg) + 3))) {
data/clamav-0.103.0+dfsg/clamd/clamd.c:503:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    i += strlen(opt->strarg) + 1;
data/clamav-0.103.0+dfsg/clamd/clamd.c:692:38:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
            mode_t sock_mode, umsk = umask(0777); /* socket is created with 000 to avoid races */
data/clamav-0.103.0+dfsg/clamd/clamd.c:703:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                umask(umsk);
data/clamav-0.103.0+dfsg/clamd/clamd.c:706:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
            umask(umsk); /* restore umask */
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:122:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (char *)malloc(strlen(VE_FILENAME) + strlen(filename) + 2);
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:122: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).
        (char *)malloc(strlen(VE_FILENAME) + strlen(filename) + 2);
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:129:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (char *)malloc(strlen(VE_VIRUSNAME) + strlen(virname) + 2);
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:129:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (char *)malloc(strlen(VE_VIRUSNAME) + strlen(virname) + 2);
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:141:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(opt->strarg);
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:143: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).
        (char *)calloc(len + v * strlen(virname) + 1, sizeof(char));
data/clamav-0.103.0+dfsg/clamd/clamd_others.c:155:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            j += strlen(virname);
data/clamav-0.103.0+dfsg/clamd/localserver.c:99:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(server.sun_path, optget(opts, "LocalSocket")->strarg, sizeof(server.sun_path));
data/clamav-0.103.0+dfsg/clamd/localserver.c:106:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pos     = server.sun_path + strlen(server.sun_path);
data/clamav-0.103.0+dfsg/clamd/localserver.c:109:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                sockdir = CLI_STRNDUP(server.sun_path, strlen(server.sun_path) - cnt);
data/clamav-0.103.0+dfsg/clamd/localserver.c:134:29:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                old_umask = umask(0011); /* allow mode 777 for socket directory */
data/clamav-0.103.0+dfsg/clamd/localserver.c:143:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                umask(old_umask); /* restore umask */
data/clamav-0.103.0+dfsg/clamd/scanner.c:105:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(c->virhash, (const char *)md5, 32);
data/clamav-0.103.0+dfsg/clamd/scanner.c:389:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(fdstr, "instream(local)", sizeof(fdstr));
data/clamav-0.103.0+dfsg/clamd/server-th.c:546:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (read(buf->fd, buff, sizeof(buff)) < 0) {
data/clamav-0.103.0+dfsg/clamd/server-th.c:686:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (buf->buffer + buf->off <= cmd + strlen("FILDES\n")) {
data/clamav-0.103.0+dfsg/clamd/server-th.c:1558:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (read(buf->fd, buff, sizeof(buff)) < 0) {
data/clamav-0.103.0+dfsg/clamd/session.c:499: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).
        timestr[strlen(tstr) - 1] = '\0';
data/clamav-0.103.0+dfsg/clamd/tcpserver.c:160:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(host, ipaddr, sizeof(host));
data/clamav-0.103.0+dfsg/clamdscan/client.c:93:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(nixsock.sun_path, opt->strarg, sizeof(nixsock.sun_path));
data/clamav-0.103.0+dfsg/clamdscan/client.c:199: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).
                interval = cli_strntoul(interval_str, strlen(interval_str), &errchk, 10);
data/clamav-0.103.0+dfsg/clamdscan/client.c:200:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (interval_str + strlen(interval_str) > errchk) {
data/clamav-0.103.0+dfsg/clamdscan/client.c:208:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            attempts = cli_strntoul(attempt_str, strlen(attempt_str), &errchk, 10);
data/clamav-0.103.0+dfsg/clamdscan/client.c:209:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (attempt_str + strlen(attempt_str) > errchk) {
data/clamav-0.103.0+dfsg/clamdscan/client.c:283:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            namelen = strlen(ret);
data/clamav-0.103.0+dfsg/clamdscan/client.c:286:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ret, basepath, PATH_MAX);
data/clamav-0.103.0+dfsg/clamdscan/proto.c:165:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((len = read(fd, &buf[1], sizeof(buf) - sizeof(uint32_t))) > 0) {
data/clamav-0.103.0+dfsg/clamdscan/proto.c:286:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(filename) + strlen(scancmd[scantype]) + 3;
data/clamav-0.103.0+dfsg/clamdscan/proto.c:286:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(filename) + strlen(scancmd[scantype]) + 3;
data/clamav-0.103.0+dfsg/clamdscan/proto.c:356:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(last_filename, filename, PATH_MAX);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:221:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(queue_header, CMDHEAD, maxx);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:222:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(clamd_header, SUMHEAD, maxx);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:225:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p                  = queue_header + strlen(queue_header);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:228:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p = clamd_header + strlen(clamd_header);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:236:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(multi_queue_header, CMDHEAD2, maxx);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:238:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        p                        = multi_queue_header + strlen(multi_queue_header);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:385:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        x += strlen(s) + 1;
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:538:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buf[strlen(buf)] = ' ';
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:613: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).
    p = (char *)ip + strlen(dupip) + offset;
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:634:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(host) + strlen(port);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:634:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(host) + strlen(port);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:678:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(addr.sun_path, soname, sizeof(addr.sun_path));
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:816: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).
    return send(conn->sd, cmd, strlen(cmd), 0);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:923:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(cmd, filtered_tasks[i].line, sizeof(cmd) - 1);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1056:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(mem, "N/A", sizeof(mem));
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1082:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(timbuf, "N/A", sizeof(timbuf));
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1105:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = ' ';
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1124:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        line[strlen(line)] = ' ';
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1229:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            p = pstart + strlen(pstart);
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1239: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).
    if (maxx > 61 && strlen(stats->db_version) > (maxx - 61)) {
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1271:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for (j = 1; j < strlen(buf); j++)
data/clamav-0.103.0+dfsg/clamdtop/clamdtop.c:1325:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = 0; i < strlen(conn->version); i++)
data/clamav-0.103.0+dfsg/clamonacc/client/client.c:215: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).
                interval = cli_strntoul(interval_str, strlen(interval_str), &errchk, 10);
data/clamav-0.103.0+dfsg/clamonacc/client/client.c:216:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (interval_str + strlen(interval_str) > errchk) {
data/clamav-0.103.0+dfsg/clamonacc/client/client.c:224:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            attempts = cli_strntoul(attempt_str, strlen(attempt_str), &errchk, 10);
data/clamav-0.103.0+dfsg/clamonacc/client/client.c:225:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (attempt_str + strlen(attempt_str) > errchk) {
data/clamav-0.103.0+dfsg/clamonacc/client/protocol.c:99:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((len = read(fd, &buf[1], sizeof(buf) - sizeof(uint32_t))) > 0) {
data/clamav-0.103.0+dfsg/clamonacc/client/protocol.c:213:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(filename) + strlen(scancmd[scantype]) + 3;
data/clamav-0.103.0+dfsg/clamonacc/client/protocol.c:213:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(filename) + strlen(scancmd[scantype]) + 3;
data/clamav-0.103.0+dfsg/clamonacc/client/protocol.c:305:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(last_filename, filename, PATH_MAX);
data/clamav-0.103.0+dfsg/clamonacc/fanotif/fanotif.c:156:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (((bread = read((*ctx)->fan_fd, buf, sizeof(buf))) > 0) || (errno == EOVERFLOW || errno == EMFILE || errno == EACCES)) {
data/clamav-0.103.0+dfsg/clamonacc/inotif/hash.c:510:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t n       = strlen(dirname);
data/clamav-0.103.0+dfsg/clamonacc/inotif/hash.c:544:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t n                = strlen(dirname);
data/clamav-0.103.0+dfsg/clamonacc/inotif/hash.c:680:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(pathname);
data/clamav-0.103.0+dfsg/clamonacc/inotif/hash.c:682:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (prnt) onas_ht_add_child(ht, prnt, strlen(prnt), pathname, len);
data/clamav-0.103.0+dfsg/clamonacc/inotif/hash.c:710:43:  [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).
                    hnode->prnt_pathlen = strlen(hnode->prnt_pathname);
data/clamav-0.103.0+dfsg/clamonacc/inotif/hash.c:776:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        prntlen = strlen(prntname);
data/clamav-0.103.0+dfsg/clamonacc/inotif/hash.c:785: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).
        size_t size      = len + strlen(curr->dirname) + 2;
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:147:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(nwfd, nwatch_str, MAX_WATCH_LEN);
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:170:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(pathname);
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:232: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).
        size_t size      = len + strlen(curr->dirname) + 2;
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:241:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (onas_ddd_watch_hierarchy(child_path, strlen(child_path), fd, mask, type)) {
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:258:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(pathname);
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:315: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).
        size_t size      = len + strlen(curr->dirname) + 2;
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:324:48:  [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).
        onas_ddd_unwatch_hierarchy(child_path, strlen(child_path), fd, type);
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:421:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (onas_ht_get(ddd_ht, pt->strarg, strlen(pt->strarg), NULL) != CL_SUCCESS) {
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:447:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (onas_ht_get(ddd_ht, include_list[idx], strlen(include_list[idx]), NULL) != CL_SUCCESS) {
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:463:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t ptlen = strlen(pt->strarg);
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:489:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (onas_ht_get(ddd_ht, exclude_list[idx], strlen(exclude_list[idx]), NULL) == CL_SUCCESS) {
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:490: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).
                if (onas_ht_rm_hierarchy(ddd_ht, exclude_list[idx], strlen(exclude_list[idx]), 0)) {
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:506:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t ptlen = strlen(pt->strarg);
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:538:30:  [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).
            uint64_t ptlen = strlen(include_list[idx]);
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:579:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((bread = read(onas_in_fd, buf, sizeof(buf))) > 0) {
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:598:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                len              = strlen(path);
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:599:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t size      = strlen(child) + len + 2;
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:646: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).
    onas_ht_rm_hierarchy(ddd_ht, child_path, strlen(child_path), 0);
data/clamav-0.103.0+dfsg/clamonacc/inotif/inotif.c:661: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).
    onas_ht_rm_hierarchy(ddd_ht, child_path, strlen(child_path), 0);
data/clamav-0.103.0+dfsg/clamonacc/misc/fts.c:183:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen(*argv);
data/clamav-0.103.0+dfsg/clamonacc/misc/fts.c:268:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(++cp);
data/clamav-0.103.0+dfsg/clamonacc/misc/fts.c:1127:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((len = strlen(*argv)) > max)
data/clamav-0.103.0+dfsg/clamonacc/misc/utils.c:126:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (!strncmp(opt_uname->strarg, pwd->pw_name, strlen(opt_uname->strarg))) {
data/clamav-0.103.0+dfsg/clamonacc/misc/utils.c:180: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).
        opt_list[*num_entries][strlen(opt_list[*num_entries]) - 1] = '\0';
data/clamav-0.103.0+dfsg/clamscan/manager.c:162:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t n = strlen(c->chains[i]);
data/clamav-0.103.0+dfsg/clamscan/manager.c:231:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n    = strlen(type) + strlen(filename) + 2;
data/clamav-0.103.0+dfsg/clamscan/manager.c:231:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n    = strlen(type) + strlen(filename) + 2;
data/clamav-0.103.0+dfsg/clamscan/manager.c:506:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    fname = malloc(strlen(dirname) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/clamscan/manager.c:506:54:  [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).
                    fname = malloc(strlen(dirname) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/clamscan/manager.c:706:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (!(pua_cats = realloc(pua_cats, i + strlen(opt->strarg) + 3))) {
data/clamav-0.103.0+dfsg/clamscan/manager.c:714: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).
                i += strlen(opt->strarg) + 1;
data/clamav-0.103.0+dfsg/clamscan/manager.c:735:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (!(pua_cats = realloc(pua_cats, i + strlen(opt->strarg) + 3))) {
data/clamav-0.103.0+dfsg/clamscan/manager.c:742: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).
                i += strlen(opt->strarg) + 1;
data/clamav-0.103.0+dfsg/clamscan/manager.c:1223:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                for (i = strlen(file) - 1; i > 0; i--) {
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:80:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int clen               = strlen(set_cookie);
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:100: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).
        else if (!strncmp(mem, "_clamav-net_session", strlen("_clamav-net_session")))
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:235:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(filename) == 1 && filename[0] == '-') {
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:324:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(hd_malware.cfduid) + strlen(hd_malware.session) + 3;
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:324:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(hd_malware.cfduid) + strlen(hd_malware.session) + 3;
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:337:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(authenticity_token) + 15;
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:506:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len   = strlen(hd_malware.cfduid) + strlen(hd_malware.session) + 3;
data/clamav-0.103.0+dfsg/clamsubmit/clamsubmit.c:506:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len   = strlen(hd_malware.cfduid) + strlen(hd_malware.session) + 3;
data/clamav-0.103.0+dfsg/cmake/CheckFDPassing.c:66:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(desc, buf, sizeof(buf)) != sizeof(TEST)) {
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/embedpe_sample.c:19:47:  [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).
    int32_t type, obj, objarr, objit, arrlen, strlen;
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/embedpe_sample.c:54:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen > STR_MAXLEN)
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/embedpe_sample.c:57:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (json_get_string(str, strlen, obj)) {
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/embedpe_sample.c:59:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                debug_print_str(str, strlen);
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/ftype_sample.c:20:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int32_t objid, type, strlen;
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/ftype_sample.c:42:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen > STR_MAXLEN)
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/ftype_sample.c:46:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (json_get_string(str, strlen, objid)) {
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/ftype_sample.c:48:30:  [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).
        debug_print_str(str, strlen);
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/notpdf_sample.c:18:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int32_t type, obj, strlen;
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/notpdf_sample.c:36:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen > STR_MAXLEN)
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/notpdf_sample.c:39: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).
        if (json_get_string(str, strlen, obj)) {
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/notpdf_sample.c:41: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).
            debug_print_str(str, strlen);
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/embedpe_sample.c:30:47:  [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).
    int32_t type, obj, objarr, objit, arrlen, strlen;
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/embedpe_sample.c:65:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen > STR_MAXLEN)
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/embedpe_sample.c:68:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (json_get_string(str, strlen, obj)) {
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/embedpe_sample.c:70:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                debug_print_str(str, strlen);
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/ftype_sample.c:31:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int32_t objid, type, strlen;
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/ftype_sample.c:53:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen > STR_MAXLEN)
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/ftype_sample.c:57:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (json_get_string(str, strlen, objid)) {
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/ftype_sample.c:59:30:  [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).
        debug_print_str(str, strlen);
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/onlype_sample.c:33:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int32_t type, obj, strlen, objarr, objit, arrlen;
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/onlype_sample.c:51:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen > STR_MAXLEN)
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/onlype_sample.c:54: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).
        if (json_get_string(str, strlen, obj)) {
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/onlype_sample.c:56: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).
            debug_print_str(str, strlen);
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/onlype_sample.c:102:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen > STR_MAXLEN)
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/onlype_sample.c:105:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (json_get_string(str, strlen, obj)) {
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/old/onlype_sample.c:107:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                debug_print_str(str, strlen);
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/onlype_sample.c:19:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int32_t type, obj, strlen, objarr, objit, arrlen;
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/onlype_sample.c:37:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen > STR_MAXLEN)
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/onlype_sample.c:40: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).
        if (json_get_string(str, strlen, obj)) {
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/onlype_sample.c:42: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).
            debug_print_str(str, strlen);
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/onlype_sample.c:88:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen > STR_MAXLEN)
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/onlype_sample.c:91:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (json_get_string(str, strlen, obj)) {
data/clamav-0.103.0+dfsg/examples/fileprop_analysis/onlype_sample.c:93:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                debug_print_str(str, strlen);
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:129:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    old_umask = umask(0002);
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:137:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(old_umask);
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:449:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        urlLen = strlen(defaultProtocol) + strlen("://") + strlen(server);
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:449:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        urlLen = strlen(defaultProtocol) + strlen("://") + strlen(server);
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:449:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        urlLen = strlen(defaultProtocol) + strlen("://") + strlen(server);
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:458:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        urlLen = strlen(server);
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:872:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(g_freshclamTempDirectory, fcConfig.tempDirectory, sizeof(g_freshclamTempDirectory));
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:902:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncasecmp(fcConfig.proxyServer, "http://", strlen("http://")) == 0)
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:903:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            fcConfig.proxyServer += strlen("http://");
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:1322:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        modifiedCommand = (char *)malloc(strlen(command) + strlen(version) + 10);
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:1322:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        modifiedCommand = (char *)malloc(strlen(command) + strlen(version) + 10);
data/clamav-0.103.0+dfsg/freshclam/freshclam.c:1330:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(modifiedCommand, command, replace_version - command);
data/clamav-0.103.0+dfsg/freshclam/notify.c:69:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(server.sun_path, opt->strarg, sizeof(server.sun_path));
data/clamav-0.103.0+dfsg/fuzz/standalone_fuzz_target_runner.cpp:29:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read(bytes.data(), bytes.size());
data/clamav-0.103.0+dfsg/libclamav/arc4.c:95:49:  [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).
	arc4_init(&a, (const uint8_t*)testdata[i].key, strlen(testdata[i].key));
data/clamav-0.103.0+dfsg/libclamav/arc4.c:96:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(testdata[i].plaintext);
data/clamav-0.103.0+dfsg/libclamav/autoit.c:1194:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        keyword_len = strlen(autoit_keywords[keyword_id]);
data/clamav-0.103.0+dfsg/libclamav/autoit.c:1205:89:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            if (0 == memcmp(autoit_keywords[keyword_id], "UNKNOWN", MIN(strlen("UNKNOWN"), keyword_len))) {
data/clamav-0.103.0+dfsg/libclamav/autoit.c:1228:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        function_len = strlen(autoit_functions[function_id]);
data/clamav-0.103.0+dfsg/libclamav/autoit.c:1239:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            if (0 == memcmp(autoit_functions[function_id], "UNKNOWN", MIN(strlen("UNKNOWN"), function_len))) {
data/clamav-0.103.0+dfsg/libclamav/autoit.c:1322:43:  [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).
                        UNP.cur_output += strlen((char *)&buf[UNP.cur_output]);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:599: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).
    len                      = strlen((const char *)buffer);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:747:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned i, offset = 1, len = strlen((const char *)buffer);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:880:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned i, offset = 1, len = strlen((const char *)buffer), maxapi, calls;
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:1009:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned i, offset = 1, len = strlen((const char *)buffer), numglobals;
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:1059: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).
    unsigned offset = 1, len = strlen((const char *)buffer);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:1120:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len  = strlen((const char *)buffer);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:1229:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen((const char *)buffer);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:1491:29:  [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).
            name_len = (int)strlen(name);
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:1504:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (max_name_len < (int)strlen("Bytecode name"))
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:1505:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        max_name_len = (int)strlen("Bytecode name");
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:2574:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        dbio.bufsize          = strlen(builtin_cbc) + 1;
data/clamav-0.103.0+dfsg/libclamav/bytecode.c:3076:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            unsigned len = strlen(cli_apicalls[i].name);
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.c:156:47:  [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).
    cli_event_fastdata(EV, BCEV_DBG_STR, str, strlen((const char *)str));
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.c:2060:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(namep, (char *)name, name_len);
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.c:2241:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len  = strlen(jstr);
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.c:2278:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len  = strlen(jstr);
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.c:2282:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy((char *)str, jstr, str_len - 1);
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.c:2287:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy((char *)str, jstr, len);
data/clamav-0.103.0+dfsg/libclamav/bytecode_api.h:363:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int32_t read(uint8_t* data, int32_t size);
data/clamav-0.103.0+dfsg/libclamav/bytecode_detect.h:152:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy((char *)(field), (value), sizeof(field) - 1); \
data/clamav-0.103.0+dfsg/libclamav/c++/ClamBCRTChecks.cpp:852:61:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      bool checkCond(Instruction *ICI, Instruction *I, bool equal)
data/clamav-0.103.0+dfsg/libclamav/c++/ClamBCRTChecks.cpp:865:52:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                  BasicBlock *S = BI->getSuccessor(equal);
data/clamav-0.103.0+dfsg/libclamav/c++/ClamBCRTChecks.cpp:871:40:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                      checkCond(BI, I, equal))
data/clamav-0.103.0+dfsg/libclamav/c++/ClamBCRTChecks.cpp:874:41:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                      checkCond(BI, I, !equal))
data/clamav-0.103.0+dfsg/libclamav/conv.c:161:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sha_plaintext = sha256(plaintext, strlen(plaintext), NULL, NULL);
data/clamav-0.103.0+dfsg/libclamav/conv.c:167:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    encoded = base64_encode(plaintext, strlen(plaintext));
data/clamav-0.103.0+dfsg/libclamav/conv.c:174:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    decoded = base64_decode(encoded, strlen(encoded), NULL, &len);
data/clamav-0.103.0+dfsg/libclamav/cpio.c:214:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buff, hdr_odc.namesize, 6);
data/clamav-0.103.0+dfsg/libclamav/cpio.c:239:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buff, hdr_odc.filesize, 11);
data/clamav-0.103.0+dfsg/libclamav/cpio.c:302:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buff, hdr_newc.namesize, 8);
data/clamav-0.103.0+dfsg/libclamav/cpio.c:332:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buff, hdr_newc.filesize, 8);
data/clamav-0.103.0+dfsg/libclamav/crypto.c:330:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((nread = read(fd, buf, blocksize)) > 0) {
data/clamav-0.103.0+dfsg/libclamav/crypto.c:775: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).
        siglen = (unsigned int)strlen((const char *)newsig);
data/clamav-0.103.0+dfsg/libclamav/crypto.c:870: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).
        authorities[nauths] = (char *)malloc(strlen(tsdir) + strlen(dirent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/crypto.c:870:62:  [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).
        authorities[nauths] = (char *)malloc(strlen(tsdir) + strlen(dirent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/crypto.c:1068:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(str) < 12)
data/clamav-0.103.0+dfsg/libclamav/cvd.c:71: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).
    unsigned int size, pathlen = strlen(destdir) + 100 + 5;
data/clamav-0.103.0+dfsg/libclamav/cvd.c:114:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(name, block, 100);
data/clamav-0.103.0+dfsg/libclamav/cvd.c:157:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(osize, block + 124, 12);
data/clamav-0.103.0+dfsg/libclamav/cvd.c:290:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(name, block, 100);
data/clamav-0.103.0+dfsg/libclamav/cvd.c:315:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(osize, block + 124, 12);
data/clamav-0.103.0+dfsg/libclamav/cvd.c:630: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).
        dupname[strlen(dupname) - 2] = (dbtype == 1 ? 'v' : 'l');
data/clamav-0.103.0+dfsg/libclamav/disasm.c:1200:11:  [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).
    hr += strlen(hr);
data/clamav-0.103.0+dfsg/libclamav/dlp.c:318:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(numbuf, (const char *)buffer, minlength);
data/clamav-0.103.0+dfsg/libclamav/dmg.c:482:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    base64_len = strlen((const char *)mish_base64);
data/clamav-0.103.0+dfsg/libclamav/dmg.c:1110:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    namelen = strlen(dir) + 1 + 7 + 1;
data/clamav-0.103.0+dfsg/libclamav/dsig.c:67:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int i, slen = strlen(sig), dec;
data/clamav-0.103.0+dfsg/libclamav/dsig.c:111:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(md5) != 32 || !isalnum(md5[0])) {
data/clamav-0.103.0+dfsg/libclamav/entconv.c:113:85:  [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).
    struct cli_element* e = cli_hashtab_find(&entities_htable, (const char*)entity, strlen((const char*)entity));
data/clamav-0.103.0+dfsg/libclamav/entconv.c:128:73:  [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).
    struct cli_element* e = cli_hashtab_find(&aliases_htable, fromcode, strlen(fromcode));
data/clamav-0.103.0+dfsg/libclamav/entconv.c:489:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen((const char*)enc);
data/clamav-0.103.0+dfsg/libclamav/entconv.c:629:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t fromcode_len = strlen((const char*)fromcode);
data/clamav-0.103.0+dfsg/libclamav/fmap.c:965:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (CL_SUCCESS != cli_basename(filepath, strlen(filepath), &filebase)) {
data/clamav-0.103.0+dfsg/libclamav/fmap.c:970:35:  [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).
            uint32_t prefix_len = strlen(filebase) + 1 + SIZE_T_CHARLEN + 1 + SIZE_T_CHARLEN + 1;
data/clamav-0.103.0+dfsg/libclamav/hashtab.c:458:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(thekey, key, len + 1);
data/clamav-0.103.0+dfsg/libclamav/hashtab.c:638:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        sscanf(line, "%d %1023s", &val, l);
data/clamav-0.103.0+dfsg/libclamav/hashtab.c:639: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).
        cli_hashtab_insert(s, l, strlen(l), val);
data/clamav-0.103.0+dfsg/libclamav/hostid_internal.c:169:47:  [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).
                    snprintf(devices[i].mac + strlen(devices[i].mac), sizeof(devices[i].mac) - strlen(devices[i].mac) - 1, "%02x:", mac[j]);
data/clamav-0.103.0+dfsg/libclamav/hostid_internal.c:169:96:  [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).
                    snprintf(devices[i].mac + strlen(devices[i].mac), sizeof(devices[i].mac) - strlen(devices[i].mac) - 1, "%02x:", mac[j]);
data/clamav-0.103.0+dfsg/libclamav/hostid_internal.c:208:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            snprintf(devices[i].mac + strlen(devices[i].mac), sizeof(devices[i].mac) - strlen(devices[i].mac) - 1, "%02x:", mac[j]);
data/clamav-0.103.0+dfsg/libclamav/hostid_internal.c:208:88:  [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).
            snprintf(devices[i].mac + strlen(devices[i].mac), sizeof(devices[i].mac) - strlen(devices[i].mac) - 1, "%02x:", mac[j]);
data/clamav-0.103.0+dfsg/libclamav/hostid_internal.c:284:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen(printable_md5);
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:387:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len                          = strlen((const char *)value + 1);
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:433:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    html_output_str(fbuff, (const unsigned char *)tag, strlen(tag));
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:436: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).
        html_output_str(fbuff, tags->tag[i], strlen((const char *)tags->tag[i]));
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:439:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen((const char *)tags->value[i]);
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:593:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen((const char *)ptr) >= 12) {
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:616:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        remaining = strlen((const char *)ptr) + 1;
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1229: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).
                            if (arg_value && strlen((const char *)arg_value) > 0) {
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1245:101:  [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 unsigned char *)arg_value + strlen(arg_value));
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1253:83:  [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).
                                                                 in_form_action + strlen((const char *)in_form_action));
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1273: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).
                            if (arg_value && strlen(arg_value) > 0) {
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1283:79:  [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).
                                                             in_form_action + strlen((const char *)in_form_action));
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1288: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).
                            if (arg_value && strlen(arg_value) > 0) {
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1298:79:  [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).
                                                             in_form_action + strlen((const char *)in_form_action));
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1304: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).
                            if (arg_value && strlen(arg_value) > 0) {
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1314:79:  [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).
                                                             in_form_action + strlen((const char *)in_form_action));
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1320: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).
                            if (arg_value && strlen(arg_value) > 0) {
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1330:79:  [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).
                                                             in_form_action + strlen((const char *)in_form_action));
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1340:95:  [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).
                            html_output_str(file_buff_text, (const unsigned char *)arg_value, strlen((const char *)arg_value));
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1347:95:  [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).
                            html_output_str(file_buff_text, (const unsigned char *)arg_value, strlen((const char *)arg_value));
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1381:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            for (i = 0; i < strlen(normalized); i++) {
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1515:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (strlen((const char *)ptr) < 8) {
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1817:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            for (i = 0; i < strlen(normalized); i++)
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1954:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cli_writen(ofd, "<script>", strlen("<script>"));
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1957:30:  [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).
        cli_writen(ofd, ptr, strlen((const char *)ptr));
data/clamav-0.103.0+dfsg/libclamav/htmlnorm.c:1964: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).
    cli_writen(ofd, "</script>", strlen("</script>"));
data/clamav-0.103.0+dfsg/libclamav/hwp.c:631:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t b64len = strlen(hwp3_docsummary_fields[i].name) + 8;
data/clamav-0.103.0+dfsg/libclamav/ishield.c:237:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        keylen = strlen((const char *)key);
data/clamav-0.103.0+dfsg/libclamav/ishield.c:372: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).
        coff += strlen(fname) + 1;
data/clamav-0.103.0+dfsg/libclamav/ishield.c:376: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).
        coff += strlen(path) + 1;
data/clamav-0.103.0+dfsg/libclamav/ishield.c:380: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).
        coff += strlen(version) + 1;
data/clamav-0.103.0+dfsg/libclamav/ishield.c:384: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).
        coff += strlen(strsz) + 1;
data/clamav-0.103.0+dfsg/libclamav/ishield.c:386:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        data = &strsz[strlen(strsz) + 1];
data/clamav-0.103.0+dfsg/libclamav/ishield.c:648:85:  [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).
                                            fmap_unneed_ptr(map, (void *)file_name, strlen(file_name) + 1);
data/clamav-0.103.0+dfsg/libclamav/ishield.c:650:84:  [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).
                                            fmap_unneed_ptr(map, (void *)dir_name, strlen(dir_name) + 1);
data/clamav-0.103.0+dfsg/libclamav/ishield.c:668:77:  [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).
                                    fmap_unneed_ptr(map, (void *)file_name, strlen(file_name) + 1);
data/clamav-0.103.0+dfsg/libclamav/ishield.c:670:76:  [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).
                                    fmap_unneed_ptr(map, (void *)dir_name, strlen(dir_name) + 1);
data/clamav-0.103.0+dfsg/libclamav/ishield.c:682:57:  [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).
                fmap_unneed_ptr(map, (void *)file_name, strlen(file_name) + 1);
data/clamav-0.103.0+dfsg/libclamav/ishield.c:684:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                fmap_unneed_ptr(map, (void *)dir_name, strlen(dir_name) + 1);
data/clamav-0.103.0+dfsg/libclamav/iso9660.c:110:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(iso->buf, uutf8, sizeof(iso->buf));
data/clamav-0.103.0+dfsg/libclamav/json_api.c:495:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(sp, s, len);
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:384:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                long id = scope_lookup(scope, s, strlen(s));
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:400:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                const size_t len = strlen(s);
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:731:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str);
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:738:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s1_len       = strlen(s1);
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:747:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    res->txtbuf.pos  = strlen(R);
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:756:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        res->txtbuf.pos = strlen(res->txtbuf.data);
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:1133:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        size_t str_len = strlen(str);
data/clamav-0.103.0+dfsg/libclamav/jsparse/js-norm.c:1144:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(str + str_len, text, leng);
data/clamav-0.103.0+dfsg/libclamav/jsparse/textbuf.h:55:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(s);
data/clamav-0.103.0+dfsg/libclamav/libmspack.c:283:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(buff, "LibClamAV debug: ", len);
data/clamav-0.103.0+dfsg/libclamav/libmspack.c:290:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buff[strlen(buff)]     = '\n';
data/clamav-0.103.0+dfsg/libclamav/libmspack.c:291:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buff[strlen(buff) + 1] = '\0';
data/clamav-0.103.0+dfsg/libclamav/line.c:72:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t size = strlen(data);
data/clamav-0.103.0+dfsg/libclamav/macho.c:352:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(name, segment_cmd64.segname, sizeof(name));
data/clamav-0.103.0+dfsg/libclamav/macho.c:362:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(name, segment_cmd.segname, sizeof(name));
data/clamav-0.103.0+dfsg/libclamav/macho.c:398:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(name, section64.sectname, sizeof(name));
data/clamav-0.103.0+dfsg/libclamav/macho.c:417:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(name, section.sectname, sizeof(name));
data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c:2031:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = 0; i < strlen(hexstr); i++) {
data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c:2058:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = 0; i < strlen(hexstr); i++) {
data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c:2232:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    newnode->len    = (uint16_t)strlen(subexpr) / 2;
data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c:2281:29:  [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).
    fp          = subexpr + strlen(subexpr);
data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c:2400:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(hexpr);
data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c:2498:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(hexsig) / 2 < root->ac_mindepth) {
data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c:2559:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(hex) == 2) {
data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c:2579:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            } else if (strlen(pt2) == 2) {
data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c:2626:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        hexnewsz = strlen(hexsig) + 1;
data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c:2663:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (!strlen(pt)) {
data/clamav-0.103.0+dfsg/libclamav/matcher-ac.c:2773: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).
    new->length[0] = (uint16_t)strlen(hex ? hex : hexsig) / 2;
data/clamav-0.103.0+dfsg/libclamav/matcher-byte-comp.c:491:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (cli_ac_chklsig(subsigid, subsigid + strlen(subsigid),
data/clamav-0.103.0+dfsg/libclamav/matcher-hash.c:46:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    hlen = strlen(strhash);
data/clamav-0.103.0+dfsg/libclamav/matcher-pcre.c:89:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        namelen = strlen(virname) + strlen(pm->pdata.expression) + 3;
data/clamav-0.103.0+dfsg/libclamav/matcher-pcre.c:89:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        namelen = strlen(virname) + strlen(pm->pdata.expression) + 3;
data/clamav-0.103.0+dfsg/libclamav/matcher-pcre.c:156:29:  [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).
            name_len = (int)strlen(name);
data/clamav-0.103.0+dfsg/libclamav/matcher-pcre.c:169:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (max_name_len < (int)strlen("PCRE Expression"))
data/clamav-0.103.0+dfsg/libclamav/matcher-pcre.c:170:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        max_name_len = (int)strlen("PCRE Expression");
data/clamav-0.103.0+dfsg/libclamav/matcher-pcre.c:234: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).
        rssigs = cli_ac_chklsig(trigger, trigger + strlen(trigger), NULL, NULL, NULL, 1);
data/clamav-0.103.0+dfsg/libclamav/matcher-pcre.c:622:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (cli_ac_chklsig(pm->trigger, pm->trigger + strlen(pm->trigger), mdata->lsigcnt[pm->lsigid[1]], &evalcnt, &evalids, 0) != 1)
data/clamav-0.103.0+dfsg/libclamav/matcher.c:347:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(offstr) > 64) {
data/clamav-0.103.0+dfsg/libclamav/matcher.c:814:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *exp_end               = exp + strlen(exp);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:200:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define GETC(fp) getc(fp)
data/clamav-0.103.0+dfsg/libclamav/mbox.c:666:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(buffer) > spaceLeft) {
data/clamav-0.103.0+dfsg/libclamav/mbox.c:669:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(&(rs->buffer[rs->bufferLen]), buffer, part);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:676:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        next->bufferLen = strlen(&(buffer[part]));
data/clamav-0.103.0+dfsg/libclamav/mbox.c:681:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        rs->bufferLen += strlen(buffer);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:753:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for (; i < strlen(line); i++) {
data/clamav-0.103.0+dfsg/libclamav/mbox.c:895:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, firstLine, sizeof(buffer) - 1);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:1046:41:  [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).
                    totalHeaderBytes += strlen(line);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:1073:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    needContinue = (header[strlen(header) - 1] == ';');
data/clamav-0.103.0+dfsg/libclamav/mbox.c:1275:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    fulllinelength = strlen(line) + 1;
data/clamav-0.103.0+dfsg/libclamav/mbox.c:1277:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    fulllinelength += strlen(line) + 1;
data/clamav-0.103.0+dfsg/libclamav/mbox.c:1940:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            (strlen(lineGetData(t_line->t_line)) > 0))
data/clamav-0.103.0+dfsg/libclamav/mbox.c:2087:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            assert(strlen(line) <= RFC2821LENGTH);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:2123:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                datasz = strlen(fullline) + strlen(data) + 1;
data/clamav-0.103.0+dfsg/libclamav/mbox.c:2123:61:  [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).
                                datasz = strlen(fullline) + strlen(data) + 1;
data/clamav-0.103.0+dfsg/libclamav/mbox.c:2715:67:  [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).
                    fileblobAddData(fb, (const unsigned char *)s, strlen(s));
data/clamav-0.103.0+dfsg/libclamav/mbox.c:2854:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (newline != line && strlen(line)) {
data/clamav-0.103.0+dfsg/libclamav/mbox.c:2857:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        p = newline + strlen(line) - 1;
data/clamav-0.103.0+dfsg/libclamav/mbox.c:2879:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(newline) <= sizeof(buf)) {
data/clamav-0.103.0+dfsg/libclamav/mbox.c:2978:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (newline != line && strlen(line)) {
data/clamav-0.103.0+dfsg/libclamav/mbox.c:2980:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        p2 = newline + strlen(line) - 1;
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3000:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(boundary);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3011:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(p) < (len + 2)) {
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3123:9:  [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).
    i = strlen(buf);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3154: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).
    return (strip(s, strlen(s) + 1));
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3220: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).
                buf = cli_malloc(strlen(ptr) + 1);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3222:114:  [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).
                    cli_errmsg("parseMimeHeader: Unable to allocate memory for buf %llu\n", (long long unsigned)(strlen(ptr) + 1));
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3333:30:  [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).
            buf = cli_malloc(strlen(ptr) + 1);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3335:110:  [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).
                cli_errmsg("parseMimeHeader: Unable to allocate memory for buf %llu\n", (long long unsigned)(strlen(ptr) + 1));
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3411:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        out = cli_malloc(strlen(in) + 1);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3413:105:  [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).
            cli_errmsg("rfc822comments: Unable to allocate memory for out %llu\n", (long long unsigned)(strlen(in) + 1));
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3479: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).
    out = cli_malloc(strlen(in) + 1);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3482:94:  [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).
        cli_errmsg("rfc2047: Unable to allocate memory for out %llu\n", (long long unsigned)(strlen(in) + 1));
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3644:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    arg = cli_malloc(10 + strlen(id) + strlen(number));
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3644:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    arg = cli_malloc(10 + strlen(id) + strlen(number));
data/clamav-0.103.0+dfsg/libclamav/mbox.c:3657:29:  [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).
    cl_hash_data("md5", id, strlen(id), md5_val, NULL);
data/clamav-0.103.0+dfsg/libclamav/mbox.c:4102:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(line);
data/clamav-0.103.0+dfsg/libclamav/message.c:440:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(p) > 8) {
data/clamav-0.103.0+dfsg/libclamav/message.c:598: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).
            datasz = strlen(kcopy) + strlen(data) + 2;
data/clamav-0.103.0+dfsg/libclamav/message.c:598:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            datasz = strlen(kcopy) + strlen(data) + 2;
data/clamav-0.103.0+dfsg/libclamav/message.c:599:41:  [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).
            field  = cli_realloc(kcopy, strlen(kcopy) + strlen(data) + 2);
data/clamav-0.103.0+dfsg/libclamav/message.c:599:57:  [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).
            field  = cli_realloc(kcopy, strlen(kcopy) + strlen(data) + 2);
data/clamav-0.103.0+dfsg/libclamav/message.c:660:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(variable);
data/clamav-0.103.0+dfsg/libclamav/message.c:681:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ((strlen(ptr) > 1) && (*ptr == '"') && (strchr(&ptr[1], '"') != NULL)) {
data/clamav-0.103.0+dfsg/libclamav/message.c:699:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    ret[strlen(ret) - 1] = '\0';
data/clamav-0.103.0+dfsg/libclamav/message.c:731:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(variable);
data/clamav-0.103.0+dfsg/libclamav/message.c:1136:65:  [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).
             (cli_compare_ftm_file((const unsigned char *)line, strlen(line), m->ctx->engine) == CL_TYPE_MAIL))
data/clamav-0.103.0+dfsg/libclamav/message.c:1361:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            datasize = (line) ? strlen(line) + 2 : 0;
data/clamav-0.103.0+dfsg/libclamav/message.c:1628:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            assert((line == NULL) || (strlen(line) <= sizeof(data)));
data/clamav-0.103.0+dfsg/libclamav/message.c:1658:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            else if (line && (strncmp((const char *)data, line, strlen(line)) == 0)) {
data/clamav-0.103.0+dfsg/libclamav/message.c:1735:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(cli_compare_ftm_file(t_line->t_text, strlen(t_line->t_text)) == CL_TYPE_MAIL)
data/clamav-0.103.0+dfsg/libclamav/message.c:1767:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen("Content-Transfer-Encoding")) == 0)
data/clamav-0.103.0+dfsg/libclamav/message.c:1869:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(line) < sizeof(base64buf)) {
data/clamav-0.103.0+dfsg/libclamav/message.c:1887:66:  [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).
            buf = decode(m, copy, buf, base64, (p2 == NULL) && ((strlen(copy) & 3) == 0));
data/clamav-0.103.0+dfsg/libclamav/message.c:1915:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(line);
data/clamav-0.103.0+dfsg/libclamav/message.c:2234:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(d1) < 8)
data/clamav-0.103.0+dfsg/libclamav/message.c:2264:30:  [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).
                    saved += strlen(d1) + 1;
data/clamav-0.103.0+dfsg/libclamav/message.c:2300:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        p = ret = cli_malloc(strlen(in) + 16);
data/clamav-0.103.0+dfsg/libclamav/message.c:2323:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    p += strlen("=rfc2231failure");
data/clamav-0.103.0+dfsg/libclamav/message.c:2356: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).
    ret = cli_malloc(strlen(in) + 1);
data/clamav-0.103.0+dfsg/libclamav/message.c:2498:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len1 = strlen(ls1);
data/clamav-0.103.0+dfsg/libclamav/message.c:2499:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len2 = strlen(ls2);
data/clamav-0.103.0+dfsg/libclamav/message.c:2507:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len1 = strlen(rs1);
data/clamav-0.103.0+dfsg/libclamav/message.c:2508:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len2 = strlen(rs2);
data/clamav-0.103.0+dfsg/libclamav/message.c:2532:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    end1   = ls1 + strlen(ls1);
data/clamav-0.103.0+dfsg/libclamav/message.c:2533:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    end2   = ls2 + strlen(ls2);
data/clamav-0.103.0+dfsg/libclamav/message.c:2624:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(line) < 10)
data/clamav-0.103.0+dfsg/libclamav/mpool.c:766:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen((const char *)hex);
data/clamav-0.103.0+dfsg/libclamav/mpool.c:796:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strsz = strlen(s) + 1;
data/clamav-0.103.0+dfsg/libclamav/mpool.c:855:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    newname = (char *)mpool_malloc(mp, strlen(virname) + 11 + 1);
data/clamav-0.103.0+dfsg/libclamav/mpool.c:869:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(hex);
data/clamav-0.103.0+dfsg/libclamav/msdoc.c:424:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(outstr, (const char *)(databuf + offset), strsize);
data/clamav-0.103.0+dfsg/libclamav/msxml_parser.c:85:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (keylen == strlen(ictx->keys[i].key) && !strncasecmp((char *)key, ictx->keys[i].key, keylen)) {
data/clamav-0.103.0+dfsg/libclamav/msxml_parser.c:399:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            size_t vlen = strlen((const char *)node_value);
data/clamav-0.103.0+dfsg/libclamav/msxml_parser.c:439:84:  [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).
                            decoded = (char *)cl_base64_decode((char *)node_value, strlen((const char *)node_value), NULL, &decodedlen, 0);
data/clamav-0.103.0+dfsg/libclamav/nsis/infblock.c:44:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define WAVAIL (uInt)(q<s->read?s->read-q-1:s->end-q)
data/clamav-0.103.0+dfsg/libclamav/nsis/infblock.c:46:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define WRAP {if(q==s->end&&s->read!=s->window){q=s->window;m=(uInt)WAVAIL;}}
data/clamav-0.103.0+dfsg/libclamav/nsis/infblock.c:103:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  q = s->read;
data/clamav-0.103.0+dfsg/libclamav/nsis/infblock.c:682:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (s->write != s->read)
data/clamav-0.103.0+dfsg/libclamav/nsis/infblock.c:687:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               z->total_out + (q >= s->read ? q - s->read :
data/clamav-0.103.0+dfsg/libclamav/nsis/infblock.c:687:54:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               z->total_out + (q >= s->read ? q - s->read :
data/clamav-0.103.0+dfsg/libclamav/nsis/infblock.c:688:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               (s->end - s->read) + (q - s->window))));
data/clamav-0.103.0+dfsg/libclamav/nsis/nsis_zlib.h:153:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Bytef *read;          /* window read pointer */
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:269:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(newname) == 0) {
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:327:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(spam, " [file] ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:327:58:  [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).
            strncat(spam, " [file] ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:330:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(spam, " [dir ] ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:330:58:  [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).
            strncat(spam, " [dir ] ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:333:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(spam, " [root] ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:333:58:  [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).
            strncat(spam, " [root] ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:336:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(spam, " [unkn] ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:336:58:  [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).
            strncat(spam, " [unkn] ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:341:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(spam, " r  ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:341:54:  [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).
            strncat(spam, " r  ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:344:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(spam, " b  ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:344:54:  [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).
            strncat(spam, " b  ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:347:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(spam, " u  ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:347:54:  [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).
            strncat(spam, " u  ", sizeof(spam) - 1 - strlen(spam));
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:738:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    dirname = (char *)cli_malloc(strlen(dir) + 8);
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:744:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    snprintf(dirname, strlen(dir) + 8, "%s" PATHSEP "%.6d", dir, curindex);
data/clamav-0.103.0+dfsg/libclamav/ole2_extract.c:819:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (CL_SUCCESS != uniq_add(hdr->U, name, strlen(name), &hash, &cnt)) {
data/clamav-0.103.0+dfsg/libclamav/openioc.c:228:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ioclen = (uint16_t)strlen(fname);
data/clamav-0.103.0+dfsg/libclamav/openioc.c:254:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        hashlen = strlen(hash);
data/clamav-0.103.0+dfsg/libclamav/others.c:1427:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        path = cli_malloc(strlen(name) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/others.c:1427:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        path = cli_malloc(strlen(name) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/others.c:1430:79:  [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).
            cli_errmsg("cli_rmdirs: Unable to allocate memory for path %u\n", strlen(name) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/others.c:1430:94:  [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).
            cli_errmsg("cli_rmdirs: Unable to allocate memory for path %u\n", strlen(name) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/others.c:1473:47:  [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).
                            path = cli_malloc(strlen(dirname) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/others.c:1473:65:  [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).
                            path = cli_malloc(strlen(dirname) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/others.c:1475:122:  [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).
                                cli_errmsg("cli_rmdirs: Unable to allocate memory for path %llu\n", (long long unsigned)(strlen(dirname) + strlen(dent->d_name) + 2));
data/clamav-0.103.0+dfsg/libclamav/others.c:1475:140:  [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).
                                cli_errmsg("cli_rmdirs: Unable to allocate memory for path %llu\n", (long long unsigned)(strlen(dirname) + strlen(dent->d_name) + 2));
data/clamav-0.103.0+dfsg/libclamav/others_common.c:143:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buff, x, len);                                \
data/clamav-0.103.0+dfsg/libclamav/others_common.c:279:87:  [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).
        cli_errmsg("cli_strdup(): Can't allocate memory (%u bytes).\n", (unsigned int)strlen(s));
data/clamav-0.103.0+dfsg/libclamav/others_common.c:297:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(buf, "invalid timestamp", bufsize - 1);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:315:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buf, ret, bufsize - 1);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:351:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        retval = read(fd, current, todo);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:626:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pathend = path + strlen(path);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:702:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            fname = (char *)cli_malloc(strlen(dirname) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:702:58:  [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).
            fname = (char *)cli_malloc(strlen(dirname) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:808:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, err, len);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:874:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (0 == strncmp(filepath + index, PATHSEP, strlen(PATHSEP))) {
data/clamav-0.103.0+dfsg/libclamav/others_common.c:879: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).
            index += strlen(PATHSEP);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:881:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (0 == strncmp(filepath + index, "." PATHSEP, strlen("." PATHSEP))) {
data/clamav-0.103.0+dfsg/libclamav/others_common.c:886: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).
            index += strlen("." PATHSEP);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:888:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (0 == strncmp(filepath + index, ".." PATHSEP, strlen(".." PATHSEP))) {
data/clamav-0.103.0+dfsg/libclamav/others_common.c:894:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                index += strlen(".." PATHSEP);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:898:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(sanitized_filepath + sanitized_index, filepath + index, strlen(".." PATHSEP));
data/clamav-0.103.0+dfsg/libclamav/others_common.c:898:81:  [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).
                strncpy(sanitized_filepath + sanitized_index, filepath + index, strlen(".." PATHSEP));
data/clamav-0.103.0+dfsg/libclamav/others_common.c:899:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                sanitized_index += strlen(".." PATHSEP);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:900:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                index += strlen(".." PATHSEP);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:908:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (0 == strncmp(filepath + index, "/", strlen("/"))) {
data/clamav-0.103.0+dfsg/libclamav/others_common.c:913: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).
            index += strlen("/");
data/clamav-0.103.0+dfsg/libclamav/others_common.c:915:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (0 == strncmp(filepath + index, "./", strlen("./"))) {
data/clamav-0.103.0+dfsg/libclamav/others_common.c:920: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).
            index += strlen("./");
data/clamav-0.103.0+dfsg/libclamav/others_common.c:922:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (0 == strncmp(filepath + index, "../", strlen("../"))) {
data/clamav-0.103.0+dfsg/libclamav/others_common.c:928:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                index += strlen("../");
data/clamav-0.103.0+dfsg/libclamav/others_common.c:932:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(sanitized_filepath + sanitized_index, filepath + index, strlen("../"));
data/clamav-0.103.0+dfsg/libclamav/others_common.c:932:81:  [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).
                strncpy(sanitized_filepath + sanitized_index, filepath + index, strlen("../"));
data/clamav-0.103.0+dfsg/libclamav/others_common.c:933:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                sanitized_index += strlen("../");
data/clamav-0.103.0+dfsg/libclamav/others_common.c:934:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                index += strlen("../");
data/clamav-0.103.0+dfsg/libclamav/others_common.c:963:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(sanitized_filepath + sanitized_index, filepath + index, filepath_len - index);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:971:29:  [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).
            next_pathsep += strlen(PATHSEP); /* Include the path separator in the copy */
data/clamav-0.103.0+dfsg/libclamav/others_common.c:974:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(sanitized_filepath + sanitized_index, filepath + index, next_pathsep - (filepath + index));
data/clamav-0.103.0+dfsg/libclamav/others_common.c:987:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((NULL != sanitized_filepath) && (0 == strlen(sanitized_filepath))) {
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1009:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (prefix && (strlen(prefix) > 0)) {
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1010:58:  [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).
        sanitized_prefix = cli_sanitize_filepath(prefix, strlen(prefix), &sanitized_prefix_base);
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1013:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(sanitized_prefix_base) + strlen(".") + SHORT_HASH_LENGTH + 1; /* {prefix}.{SHORT_HASH_LENGTH}\0 */
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1013:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(sanitized_prefix_base) + strlen(".") + SHORT_HASH_LENGTH + 1; /* {prefix}.{SHORT_HASH_LENGTH}\0 */
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1015:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen("clamav-") + 48 + strlen(".tmp") + 1; /* clamav-{48}.tmp\0 */
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1015:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen("clamav-") + 48 + strlen(".tmp") + 1; /* clamav-{48}.tmp\0 */
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1072:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len      = strlen(mdir) + strlen(PATHSEP) + strlen(fname) + 1; /* mdir/fname\0 */
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1072:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len      = strlen(mdir) + strlen(PATHSEP) + strlen(fname) + 1; /* mdir/fname\0 */
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1072:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len      = strlen(mdir) + strlen(PATHSEP) + strlen(fname) + 1; /* mdir/fname\0 */
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1120:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len      = strlen(mdir) + strlen(PATHSEP) + strlen(fname) + 1; /* mdir/fname\0 */
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1120:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len      = strlen(mdir) + strlen(PATHSEP) + strlen(fname) + 1; /* mdir/fname\0 */
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1120:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len      = strlen(mdir) + strlen(PATHSEP) + strlen(fname) + 1; /* mdir/fname\0 */
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1282:63:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (0 == wcsncmp(L"\\\\?\\UNC", long_evaluated_filepathW, wcslen(L"\\\\?\\UNC"))) {
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1285:14:  [1] (buffer) wcslen:
  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).
            (wcslen(long_evaluated_filepathW)) * sizeof(WCHAR),
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1296:40:  [1] (buffer) wcslen:
  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).
            long_evaluated_filepathW + wcslen(L"\\\\?\\"),
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1297:14:  [1] (buffer) wcslen:
  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).
            (wcslen(long_evaluated_filepathW) - wcslen(L"\\\\?\\")) * sizeof(WCHAR),
data/clamav-0.103.0+dfsg/libclamav/others_common.c:1297:49:  [1] (buffer) wcslen:
  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).
            (wcslen(long_evaluated_filepathW) - wcslen(L"\\\\?\\")) * sizeof(WCHAR),
data/clamav-0.103.0+dfsg/libclamav/pdf.c:138:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!memcmp(xref, "xref", strlen("xref"))) {
data/clamav-0.103.0+dfsg/libclamav/pdf.c:145:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!memcmp(q, "/XRef", strlen("/XRef"))) {
data/clamav-0.103.0+dfsg/libclamav/pdf.c:237:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((stream_begin = cli_memstr(start, bytesleft, "stream", strlen("stream")))) {
data/clamav-0.103.0+dfsg/libclamav/pdf.c:238:30:  [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).
        idx = stream_begin + strlen("stream");
data/clamav-0.103.0+dfsg/libclamav/pdf.c:260:67:  [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).
        endstream_begin = cli_memstr(idx, bytesleft, "endstream", strlen("endstream"));
data/clamav-0.103.0+dfsg/libclamav/pdf.c:571:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    while (bytesleft > 1 + strlen("obj")) {
data/clamav-0.103.0+dfsg/libclamav/pdf.c:573:53:  [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).
        idx = cli_memstr(idx, bytesleft - 1, "obj", strlen("obj"));
data/clamav-0.103.0+dfsg/libclamav/pdf.c:587:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            idx += 1 + strlen("obj");
data/clamav-0.103.0+dfsg/libclamav/pdf.c:588:30:  [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).
            bytesleft -= 1 + strlen("obj");
data/clamav-0.103.0+dfsg/libclamav/pdf.c:594:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        obj_end   = idx + 1 + strlen("obj");
data/clamav-0.103.0+dfsg/libclamav/pdf.c:640: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).
        if (objid_search_index - strlen("\%\%EO") > start) {
data/clamav-0.103.0+dfsg/libclamav/pdf.c:641:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            const char *lastfile = objid_search_index - strlen("\%\%EO");
data/clamav-0.103.0+dfsg/libclamav/pdf.c:694:82:  [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).
    endobj_begin = cli_memstr(obj_end, pdf->map + pdf->size - obj_end, "endobj", strlen("endobj"));
data/clamav-0.103.0+dfsg/libclamav/pdf.c:710:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    endobj_end = endobj_begin + strlen("endobj");
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1561:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (cli_memstr(start, dict_len, "/XRef", strlen("/XRef"))) {
data/clamav-0.103.0+dfsg/libclamav/pdf.c:1734:35:  [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).
                js_len          = strlen(js);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2531:35:  [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).
    q = cli_memstr(q0, *len, key, strlen(key));
data/clamav-0.103.0+dfsg/libclamav/pdf.c:2879:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            UE_len = UE ? strlen(UE) : 0;
data/clamav-0.103.0+dfsg/libclamav/pdf.c:3542:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(p1, begin, end - begin);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:4519:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                pdf->stats.author->meta.length  = strlen(out);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:4541: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).
                pdf->stats.creator->meta.length  = strlen(out);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:4563:53:  [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).
                pdf->stats.producer->meta.length  = strlen(out);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:4585:61:  [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).
                pdf->stats.modificationdate->meta.length  = strlen(out);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:4607:57:  [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).
                pdf->stats.creationdate->meta.length  = strlen(out);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:4629:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                pdf->stats.title->meta.length  = strlen(out);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:4651: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).
                pdf->stats.subject->meta.length  = strlen(out);
data/clamav-0.103.0+dfsg/libclamav/pdf.c:4673:53:  [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).
                pdf->stats.keywords->meta.length  = strlen(out);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:410:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        checklen = strlen(str);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:412:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (objsize < strlen(str) + 3)
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:501:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (read(fd, begin, sb.st_size) != sb.st_size) {
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:543:41:  [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).
                        meta->length  = strlen(res);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:587:29:  [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).
            meta->length  = strlen(res);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:644:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        meta->length  = strlen(res);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:786:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(key, begin, p1 - begin);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:855:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(val, begin, p1 - begin);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:905:29:  [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).
            node->valuesz = strlen(val);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:1032:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(val, begin, p1 - begin);
data/clamav-0.103.0+dfsg/libclamav/pdfng.c:1077:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            node->datasz = strlen(val);
data/clamav-0.103.0+dfsg/libclamav/pe.c:2298:30:  [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).
                    dlllen = strlen(dllname);                                       \
data/clamav-0.103.0+dfsg/libclamav/pe.c:2301:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            funclen = strlen(funcname);                                             \
data/clamav-0.103.0+dfsg/libclamav/pe.c:2329:54:  [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).
                cl_update_hash(hashctx[type], fname, strlen(fname));                \
data/clamav-0.103.0+dfsg/libclamav/pe.c:2330:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            *impsz += strlen(fname);                                                \
data/clamav-0.103.0+dfsg/libclamav/pe.c:4540:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t read;
data/clamav-0.103.0+dfsg/libclamav/pe.c:5064:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((read == (size_t)-1) || (read != data_dirs_size)) {
data/clamav-0.103.0+dfsg/libclamav/pe.c:5108:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((read == (size_t)-1) || (read != peinfo->nsections * sizeof(struct pe_image_section_hdr))) {
data/clamav-0.103.0+dfsg/libclamav/pe.c:5191:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(sname, (char *)section_hdr->Name, 8);
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:261:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t prefix_len = strlen(prefix);
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:267:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ret, prefix, prefix_len);
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:268:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ret + prefix_len, begin, end - begin);
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:283:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ret, start, end - start);
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:356:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            end   = URL + strlen(URL) + 1;
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:384:43:  [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).
            rc  = tld ? !!in_tld_set(tld, strlen(tld)) : 0;
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:398:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            end = start + strlen(start);
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:430:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (in_cctld_set(tld + 1, strlen(tld + 1))) {
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:455:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(host);
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:530:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(sbegin) < what_len)
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:641:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(begin);
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:1012:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        end = p + strlen(p);
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:1160:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(s, host, hlen);
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:1161:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(s+hlen, path, plen);
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:1234:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(urlbuff, inurl, dest_len);
data/clamav-0.103.0+dfsg/libclamav/phishcheck.c:1484:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                               strlen(urls->realLink.data),
data/clamav-0.103.0+dfsg/libclamav/readdb.c:117: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).
    newname = (char *)cli_malloc(strlen(virname) + 11 + 1);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:154:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t ovrlen = strlen(hexcpy) + 21;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:171:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t ovrlen = strlen(hexcpy) + 2;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:211:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t ovrlen = strlen(hexcpy) + 7;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:242:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t ovrlen = 2 * strlen(hexcpy) + 1;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:250:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for (i = 0; i < strlen(hexcpy); ++i) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:251:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t len = strlen(hexovr);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:259:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                while (i < strlen(hexcpy) && hexcpy[i] != ']')
data/clamav-0.103.0+dfsg/libclamav/readdb.c:264:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                while (i < strlen(hexcpy) && hexcpy[i] != '}')
data/clamav-0.103.0+dfsg/libclamav/readdb.c:321:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    hexlen = strlen(hexsig);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:427:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(hexcpy, hexsig, wild - hexsig);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:478:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                for (j = 0; j < strlen(start); j++) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:734:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(buff, dbio->bufpt, nl - dbio->bufpt);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:775:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        bs = strlen(buff);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:793:11:  [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).
    nsz = strlen(signame);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:842:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (cli_bm_scanbuff((const unsigned char *)signame, strlen(signame), &md5_expected, NULL, ignored, 0, NULL, NULL, NULL) == CL_VIRUS)
data/clamav-0.103.0+dfsg/libclamav/readdb.c:845:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                cl_hash_data("md5", entry, strlen(entry), digest, NULL);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:880:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cat, sig, pt - signame + 1);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1007:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(tokens[3]) != 124) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1557:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                tdb->cnt[CLI_TDB_STR] += strlen(pt) + 1;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1563:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                memcpy(&tdb->str[cnt], pt, strlen(pt));
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1740:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    subsigs = cli_ac_chklsig(logic, logic + strlen(logic), NULL, NULL, NULL, 1);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:1851: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).
            for (j = 0; j < (int)strlen(sigopts); j++)
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2104:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buffer, ftypes_int[line], sizeof(buffer));
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2180:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            new->length = (uint16_t)strlen(tokens[2]) / 2;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2250:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(buffer);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2261:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        cl_update_hash(ctx, buffer, strlen(buffer));
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2314:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(tokens[2]) != 64 || !(new->hash = CLI_MPOOL_HEX2STR(engine->mempool, tokens[2]))) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2382:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!(len = strlen(signame))) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2391:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(buffer, signame, len);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2412:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(hash) != 32 || !(new->virname = CLI_MPOOL_HEX2STR(engine->mempool, hash))) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:2966:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strlen(buffer))
data/clamav-0.103.0+dfsg/libclamav/readdb.c:3015:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(tokens[3])) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:3044:74:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (mp_read_unsigned_bin(&(ca.n), (const unsigned char *)pubkey, strlen(tokens[4]) / 2) || mp_read_unsigned_bin(&(ca.e), exp, sizeof(exp) - 1)) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:3089:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(tokens[0]))
data/clamav-0.103.0+dfsg/libclamav/readdb.c:3094:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(tokens[9]))
data/clamav-0.103.0+dfsg/libclamav/readdb.c:3434:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(hexstr) / 2 < CLI_DEFAULT_AC_MINDEPTH) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:3490:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    newident = cli_malloc(strlen(rule->identifier) + 5 + 1);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:3496:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    snprintf(newident, strlen(rule->identifier) + 5 + 1, "YARA.%s", rule->identifier);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:3648:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t length = strlen(PCRE_BYPASS) + string->length + 3;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:3692:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t len = strlen(substr);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:3832:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t len=strlen(logic);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4206:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t attlen = strlen(tokens[1]) + 10;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4274:41:  [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).
                new->length = (uint16_t)strlen(tokens[3]);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4277:41:  [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).
                new->length = (uint16_t)strlen(tokens[3]) / 2;
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4539:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    dirname_len = strlen(dirname);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4540:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (dirname_len >= strlen(PATHSEP)) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4541:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strcmp(dirname + dirname_len - strlen(PATHSEP), PATHSEP) == 0) {
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4561:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        dbfile = (char *)cli_malloc(strlen(dent->d_name) + dirname_len + 2);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4880:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                fname = cli_malloc(strlen(dirname) + strlen(dent->d_name) + 32);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4880:54:  [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).
                fname = cli_malloc(strlen(dirname) + strlen(dent->d_name) + 32);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4889:77:  [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).
                dbstat->statdname[dbstat->entries - 1] = (char *)cli_malloc(strlen(dent->d_name) + 1);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4932:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                fname = cli_malloc(strlen(dbstat->dir) + strlen(dent->d_name) + 32);
data/clamav-0.103.0+dfsg/libclamav/readdb.c:4932:58:  [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).
                fname = cli_malloc(strlen(dbstat->dir) + strlen(dent->d_name) + 32);
data/clamav-0.103.0+dfsg/libclamav/regex/engine.c:149:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		stop = start + strlen(start);
data/clamav-0.103.0+dfsg/libclamav/regex/regcomp.c:176:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen((const char *)pattern);
data/clamav-0.103.0+dfsg/libclamav/regex/regcomp.c:812:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (u = cp->multis; *u != '\0'; u += strlen(u) + 1)
data/clamav-0.103.0+dfsg/libclamav/regex/regcomp.c:1193: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).
	cs->smultis += strlen(cp) + 1;
data/clamav-0.103.0+dfsg/libclamav/regex/regerror.c:100:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				assert(strlen(r->name) < sizeof(convbuf));
data/clamav-0.103.0+dfsg/libclamav/regex/regerror.c:110:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(s) + 1;
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:84:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return (pos <= strlen(buffer)) ? buffer[pos > 0 ? pos - 1 : 0] : '\0';
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:107: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).
    match_len = strlen(regex->pattern);
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:124:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t orig_real_len = strlen(orig_real_url);
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:175:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    real_len    = strlen(real_url);
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:176:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    display_len = strlen(display_url);
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:188:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, real_url, real_len);
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:197:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer + real_len + 1, display_url, display_len);
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:344:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for (j = 0; j < strlen(ptmax); j++)
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:349:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(ptmax) == 0)
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:497:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pattern_len = strlen(pattern);
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:703:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(pattern);
data/clamav-0.103.0+dfsg/libclamav/regex_list.c:754:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(pattern);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:141:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    fname = cli_malloc(strlen(dirname) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:141:58:  [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).
                    fname = cli_malloc(strlen(dirname) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:405:59:  [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).
                    (void)cli_basename(metadata.filename, strlen(metadata.filename), &filename_base);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:649:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t prefixLen = strlen("comments_") + 5;
data/clamav-0.103.0+dfsg/libclamav/scanners.c:679: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).
            status = cli_magic_scan_buff(comments[i], strlen(comments[i]), ctx, NULL);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:815:63:  [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).
                        (void)cli_basename(metadata.filename, strlen(metadata.filename), &filename_base);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1552:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                len = min(strlen(dir) + 1, result_size);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1944:43:  [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).
                    fullname = cli_malloc(strlen(dirname) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:1944:61:  [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).
                    fullname = cli_malloc(strlen(dirname) + strlen(dent->d_name) + 2);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:3653:61:  [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).
            (CL_SUCCESS == cli_basename((*ctx->fmap)->name, strlen((*ctx->fmap)->name), &fmap_basename))) {
data/clamav-0.103.0+dfsg/libclamav/scanners.c:4812:58:  [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).
        (CL_SUCCESS == cli_basename(ctx.target_filepath, strlen(ctx.target_filepath), &target_basename))) {
data/clamav-0.103.0+dfsg/libclamav/scanners.c:4814:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        new_temp_prefix_len = strlen("YYYYMMDD_HHMMSS-") + strlen(target_basename);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:4814:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        new_temp_prefix_len = strlen("YYYYMMDD_HHMMSS-") + strlen(target_basename);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:4822: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).
        strcpy(new_temp_prefix + strlen("YYYYMMDD_HHMMSS-"), target_basename);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:4825:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        new_temp_prefix_len = strlen("YYYYMMDD_HHMMSS-scantemp");
data/clamav-0.103.0+dfsg/libclamav/scanners.c:4911: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).
                    rc = cli_magic_scan_buff(jstring, strlen(jstring), &ctx, NULL);
data/clamav-0.103.0+dfsg/libclamav/scanners.c:4930:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (cli_writen(fd, jstring, strlen(jstring)) == (size_t)-1)
data/clamav-0.103.0+dfsg/libclamav/scanners.c:5014:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (void)cli_basename(filename, strlen(filename), &filename_base);
data/clamav-0.103.0+dfsg/libclamav/stats.c:91:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sz += strlen(names[n]);
data/clamav-0.103.0+dfsg/libclamav/stats.c:98:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(ret + strlen(ret), "%s%s", (i == 0) ? "" : " ", names[i]);
data/clamav-0.103.0+dfsg/libclamav/stats.c:535:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                sz += strlen(sample->virus_name[i]);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:102:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(buf + strlen(buf), "\t\"host_info\": \"%s\",\n", intel->host_info);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:104:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), "\t\"samples\": [\n");
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:105:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    curused = strlen(buf);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:114: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).
        buf = ensure_bufsize(buf, &bufsz, curused, strlen(md5) + sizeof(SAMPLE_PREFIX) + 45);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:119:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        curused += strlen(buf + curused);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:121:88:  [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).
        buf = ensure_bufsize(buf, &bufsz, curused, sizeof("\t\t\t\"hash\": \"\",\n") + strlen(md5) + 1);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:126:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        curused += strlen(buf + curused);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:131: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).
        buf = ensure_bufsize(buf, &bufsz, curused, strlen(md5) + 20);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:136:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        curused += strlen(buf + curused);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:140: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).
        buf = ensure_bufsize(buf, &bufsz, curused, strlen(md5) + 20);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:145:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        curused += strlen(buf + curused);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:157:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            curused += strlen(buf + curused);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:165:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                curused += strlen(buf + curused);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:176:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                curused += strlen(buf + curused);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:183:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                curused += strlen(buf + curused);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:190:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                curused += strlen(buf + curused);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:198:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            curused += strlen(buf + curused);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:202:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        curused += strlen(buf + curused);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:205:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            buf = ensure_bufsize(buf, &bufsz, curused, strlen(sample->virus_name[i]) + 5);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:210:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            curused += strlen(buf + curused);
data/clamav-0.103.0+dfsg/libclamav/stats_json.c:218:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        curused += strlen(buf + curused);
data/clamav-0.103.0+dfsg/libclamav/str.c:129:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(hex);
data/clamav-0.103.0+dfsg/libclamav/str.c:153:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(hex);
data/clamav-0.103.0+dfsg/libclamav/str.c:200:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(hex);
data/clamav-0.103.0+dfsg/libclamav/str.c:222:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(hex);
data/clamav-0.103.0+dfsg/libclamav/str.c:263:9:  [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).
    i = strlen(haystack);
data/clamav-0.103.0+dfsg/libclamav/str.c:264:9:  [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).
    j = strlen(needle);
data/clamav-0.103.0+dfsg/libclamav/str.c:288:9:  [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).
    l = strlen(string);
data/clamav-0.103.0+dfsg/libclamav/str.c:340:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, line + i, j - i);
data/clamav-0.103.0+dfsg/libclamav/str.c:379:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(output, input + i, j - i);
data/clamav-0.103.0+dfsg/libclamav/str.c:437:29:  [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 size_t strlen_a = strlen(haystack);
data/clamav-0.103.0+dfsg/libclamav/str.c:438:29:  [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 size_t strlen_b = strlen(needle);
data/clamav-0.103.0+dfsg/libclamav/str.c:504:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(find);
data/clamav-0.103.0+dfsg/libclamav/str.c:930:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t len = strlen(str);
data/clamav-0.103.0+dfsg/libclamav/strlcat.c:55:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return (dlen + strlen(s));
data/clamav-0.103.0+dfsg/libclamav/text.c:397:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *length += strlen(lineGetData(line)) + 1;
data/clamav-0.103.0+dfsg/libclamav/text.c:410:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        blobAddData(b, (const unsigned char *)l, strlen(l));
data/clamav-0.103.0+dfsg/libclamav/text.c:423: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).
        fileblobAddData(fb, (const unsigned char *)l, strlen(l));
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/misc/fp_ident.c:76:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
      strncat(buf, "WARNING: sizeof(fp_digit) == sizeof(fp_word), this build is likely to not work properly.\n", 
data/clamav-0.103.0+dfsg/libclamav/tomsfastmath/misc/fp_ident.c:77:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              sizeof(buf)-strlen(buf)-1);
data/clamav-0.103.0+dfsg/libclamav/untar.c:81:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ochecksum, header + TARCHECKSUMOFFSET, TARCHECKSUMLEN);
data/clamav-0.103.0+dfsg/libclamav/untar.c:214:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(magic, block + 257, 5);
data/clamav-0.103.0+dfsg/libclamav/untar.c:266:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(osize, block + TARSIZEOFFSET, TARSIZELEN);
data/clamav-0.103.0+dfsg/libclamav/untar.c:303:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(name, block, 100);
data/clamav-0.103.0+dfsg/libclamav/unzip.c:727:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (CL_SUCCESS != cli_basename(original_filename, strlen(original_filename), &record->original_filename))) {
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1231:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (uniq_get(U, stream_name, (uint32_t)strlen(stream_name), &module_hash, &module_hashcnt) != CL_SUCCESS) {
data/clamav-0.103.0+dfsg/libclamav/vba_extract.c:1507:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (CL_SUCCESS != uniq_get(U, ptr, strlen(ptr), &hash, &hashcnt)) {
data/clamav-0.103.0+dfsg/libclamav/www.c:215:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bufsz = strlen(method);
data/clamav-0.103.0+dfsg/libclamav/www.c:217:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bufsz += strlen(url);
data/clamav-0.103.0+dfsg/libclamav/www.c:219:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bufsz += strlen(host);
data/clamav-0.103.0+dfsg/libclamav/www.c:227:57:  [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).
        snprintf(chunkedlen, sizeof(chunkedlen), "%zu", strlen(encoded));
data/clamav-0.103.0+dfsg/libclamav/www.c:230:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        bufsz += strlen(chunkedlen);
data/clamav-0.103.0+dfsg/libclamav/www.c:231:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        bufsz += strlen(encoded);
data/clamav-0.103.0+dfsg/libclamav/www.c:243:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    snprintf(buf + strlen(buf), bufsz - strlen(buf), "Host: %s\r\n", host);
data/clamav-0.103.0+dfsg/libclamav/www.c:243:41:  [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).
    snprintf(buf + strlen(buf), bufsz - strlen(buf), "Host: %s\r\n", host);
data/clamav-0.103.0+dfsg/libclamav/www.c:244:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    snprintf(buf + strlen(buf), bufsz - strlen(buf), "Connection: Close\r\n");
data/clamav-0.103.0+dfsg/libclamav/www.c:244:41:  [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).
    snprintf(buf + strlen(buf), bufsz - strlen(buf), "Connection: Close\r\n");
data/clamav-0.103.0+dfsg/libclamav/www.c:247:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        snprintf(buf + strlen(buf), bufsz - strlen(buf), "Content-Type: application/x-www-form-urlencoded\r\n");
data/clamav-0.103.0+dfsg/libclamav/www.c:247:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        snprintf(buf + strlen(buf), bufsz - strlen(buf), "Content-Type: application/x-www-form-urlencoded\r\n");
data/clamav-0.103.0+dfsg/libclamav/www.c:248:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        snprintf(buf + strlen(buf), bufsz - strlen(buf), "Content-Length: %s\r\n", chunkedlen);
data/clamav-0.103.0+dfsg/libclamav/www.c:248:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        snprintf(buf + strlen(buf), bufsz - strlen(buf), "Content-Length: %s\r\n", chunkedlen);
data/clamav-0.103.0+dfsg/libclamav/www.c:249:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        snprintf(buf + strlen(buf), bufsz - strlen(buf), "\r\n");
data/clamav-0.103.0+dfsg/libclamav/www.c:249:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        snprintf(buf + strlen(buf), bufsz - strlen(buf), "\r\n");
data/clamav-0.103.0+dfsg/libclamav/www.c:250:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        snprintf(buf + strlen(buf), bufsz - strlen(buf), "%s", encoded);
data/clamav-0.103.0+dfsg/libclamav/www.c:250:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        snprintf(buf + strlen(buf), bufsz - strlen(buf), "%s", encoded);
data/clamav-0.103.0+dfsg/libclamav/www.c:265:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((size_t)send(sockfd, buf, strlen(buf), 0) != (size_t)strlen(buf)) {
data/clamav-0.103.0+dfsg/libclamav/www.c:265:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((size_t)send(sockfd, buf, strlen(buf), 0) != (size_t)strlen(buf)) {
data/clamav-0.103.0+dfsg/libclamav/xdp.c:135:59:  [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).
                decoded = cl_base64_decode((char *)value, strlen((const char *)value), NULL, &decodedlen, 0);
data/clamav-0.103.0+dfsg/libclamav/yara_arena.c:749:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strlen(string) + 1,
data/clamav-0.103.0+dfsg/libclamav/yara_exec.c:365:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          push(strlen(UINT64_TO_PTR(char*, r1)) > 0);
data/clamav-0.103.0+dfsg/libclamav/yara_exec.c:871: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).
        count = strlen(UINT64_TO_PTR(char*, r1));
data/clamav-0.103.0+dfsg/libclamav/yara_grammar.c:1146:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
data/clamav-0.103.0+dfsg/libclamav/yara_grammar.c:1889:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t tag_length = tag_name != NULL ? strlen(tag_name) : 0;
data/clamav-0.103.0+dfsg/libclamav/yara_grammar.c:1905:43:  [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).
          tag_length = tag_name != NULL ? strlen(tag_name) : 0;
data/clamav-0.103.0+dfsg/libclamav/yara_grammar.c:2293:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            args_count = strlen((yyvsp[-1].c_string));
data/clamav-0.103.0+dfsg/libclamav/yara_grammar.c:2357:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen((yyvsp[-2].c_string)) == MAX_FUNCTION_ARGS)
data/clamav-0.103.0+dfsg/libclamav/yara_hash.c:157:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  bucket_index = hash(0, (uint8_t*) key, strlen(key));
data/clamav-0.103.0+dfsg/libclamav/yara_hash.c:160:54:  [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).
    bucket_index = hash(bucket_index, (uint8_t*) ns, strlen(ns));
data/clamav-0.103.0+dfsg/libclamav/yara_hash.c:221:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  bucket_index = hash(0, (uint8_t*) key, strlen(key));
data/clamav-0.103.0+dfsg/libclamav/yara_hash.c:224:54:  [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).
    bucket_index = hash(bucket_index, (uint8_t*) ns, strlen(ns));
data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:693:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(data) + current_size >= max_length - 1) \
data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:883:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:1508:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(yytext) > 128)
data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:1748:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(yytext);
data/clamav-0.103.0+dfsg/libclamav/yara_lexer.c:2527:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:214:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((fcConfig->databaseDirectory[strlen(fcConfig->databaseDirectory) - 1] != '/') &&
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:215:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ((fcConfig->databaseDirectory[strlen(fcConfig->databaseDirectory) - 1] != '\\'))) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:217:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (fcConfig->databaseDirectory[strlen(fcConfig->databaseDirectory) - 1] != '/') {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:219:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        g_databaseDirectory = cli_malloc(strlen(fcConfig->databaseDirectory) + strlen(PATHSEP) + 1);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:219:80:  [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).
        g_databaseDirectory = cli_malloc(strlen(fcConfig->databaseDirectory) + strlen(PATHSEP) + 1);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:222:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen(fcConfig->databaseDirectory) + strlen(PATHSEP) + 1,
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:222:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen(fcConfig->databaseDirectory) + strlen(PATHSEP) + 1,
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:530:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(version_string, get_version(), sizeof(version_string));
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:540:110:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ((suffix && (0 > version_string_compare(version_string, suffix - version_string, reply_token, strlen(reply_token)))) ||
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:541:73:  [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).
                (!suffix && (0 > version_string_compare(version_string, strlen(version_string), reply_token, strlen(reply_token))))) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam.c:541:110:  [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).
                (!suffix && (0 > version_string_compare(version_string, strlen(version_string), reply_token, strlen(reply_token))))) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:332:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(userAgent, g_userAgent, sizeof(userAgent));
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:571:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (0 == strncasecmp(server, "http", strlen("http"))) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:580:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    urlLen = strlen(server) + strlen("/") + strlen(cvdfile);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:580:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    urlLen = strlen(server) + strlen("/") + strlen(cvdfile);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:580:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    urlLen = strlen(server) + strlen("/") + strlen(cvdfile);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:713:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen(errbuf);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:848:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (0 == strncasecmp(url, "http", strlen("http"))) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:981:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen(errbuf);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1070:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    urlLen = strlen(server) + strlen("/") + strlen(cvdfile);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1070:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    urlLen = strlen(server) + strlen("/") + strlen(cvdfile);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1070:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    urlLen = strlen(server) + strlen("/") + strlen(cvdfile);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1087:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmpfile_with_extension + strlen(tmpfile_with_extension) - 4, cvdfile + strlen(cvdfile) - 4, 4);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1087:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncpy(tmpfile_with_extension + strlen(tmpfile_with_extension) - 4, cvdfile + strlen(cvdfile) - 4, 4);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1087:84:  [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).
    strncpy(tmpfile_with_extension + strlen(tmpfile_with_extension) - 4, cvdfile + strlen(cvdfile) - 4, 4);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1276:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    urlLen = strlen(server) + strlen("/") + strlen(patch);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1276:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    urlLen = strlen(server) + strlen("/") + strlen(patch);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1276:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    urlLen = strlen(server) + strlen("/") + strlen(patch);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1416:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (-1 == read(fd, buff, CVD_HEADER_SIZE)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1598:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t dnqueryDomainLen = strlen(database) + strlen(".cvd.clamav.net");
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:1598:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t dnqueryDomainLen = strlen(database) + strlen(".cvd.clamav.net");
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2001:35:  [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).
            newLocalFilenameLen = strlen(database) + strlen(".cld");
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2001:54:  [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).
            newLocalFilenameLen = strlen(database) + strlen(".cld");
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2013:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t tmpfile_with_extension_len = strlen(tmpfile) + 1 + strlen(newLocalFilename);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2013:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t tmpfile_with_extension_len = strlen(tmpfile) + 1 + strlen(newLocalFilename);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2152:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncasecmp(url, "file://", strlen("file://"))) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2159: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).
        rpath = &url[strlen("file://")];
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2165:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((NULL == databaseName) || strlen(databaseName++) < strlen(".ext") + 1) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2165:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((NULL == databaseName) || strlen(databaseName++) < strlen(".ext") + 1) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2196:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((NULL == databaseName) || (strlen(databaseName++) < 5)) {
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2221:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t tmpfile_with_extension_len = strlen(tmpfile) + 1 + strlen(databaseName);
data/clamav-0.103.0+dfsg/libfreshclam/libfreshclam_internal.c:2221:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t tmpfile_with_extension_len = strlen(tmpfile) + 1 + strlen(databaseName);
data/clamav-0.103.0+dfsg/libltdl/libltdl/lt__dirent.h:46:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define D_NAMLEN(dirent) (strlen((dirent)->d_name))
data/clamav-0.103.0+dfsg/libltdl/libltdl/lt__dirent.h:54:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define D_NAMLEN(dirent)	(strlen((dirent)->d_name))
data/clamav-0.103.0+dfsg/libltdl/loaders/dlopen.c:222:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *attempt = MALLOC (char, len + strlen (member) + 1);
data/clamav-0.103.0+dfsg/libltdl/loaders/loadlibrary.c:179:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = strlen (wpath);
data/clamav-0.103.0+dfsg/libltdl/lt__alloc.c:95:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return (char *) lt__memdup (string, strlen (string) +1);
data/clamav-0.103.0+dfsg/libltdl/lt__argz.c:91: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).
  argz_len = 1+ strlen (str);
data/clamav-0.103.0+dfsg/libltdl/lt__argz.c:141:53:  [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).
    return argz_append (pargz, pargz_len, entry, 1+ strlen (entry));
data/clamav-0.103.0+dfsg/libltdl/lt__argz.c:150:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t entry_len	= 1+ strlen (entry);
data/clamav-0.103.0+dfsg/libltdl/lt__dirent.c:101:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  entry->file_info.d_namlen = strlen (entry->file_info.d_name);
data/clamav-0.103.0+dfsg/libltdl/lt__strl.c:61:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  length=strlen(dst);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1293:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  archive_name = MALLOC (char, strlen (libprefix) + LT_STRLEN (name) + strlen (libext) + 2);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1293:73:  [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).
	  archive_name = MALLOC (char, strlen (libprefix) + LT_STRLEN (name) + strlen (libext) + 2);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1731: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).
    error = argz_append (pargz, pargz_len, entry, 1 + strlen (entry));
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1821:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat  (buf, "/");
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:1822:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat (buf, dp->d_name, end_offset);
data/clamav-0.103.0+dfsg/libltdl/ltdl.c:2166:48:  [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).
      assert ((int) (before - *ppath) <= (int) strlen (*ppath));
data/clamav-0.103.0+dfsg/libltdl/ltdl.h:44:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define LT_STRLEN(s)	(((s) && (s)[0]) ? strlen (s) : 0)
data/clamav-0.103.0+dfsg/shared/actions.c:76:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!(*newname = (char *)malloc(targlen + strlen(filename) + 6))) {
data/clamav-0.103.0+dfsg/shared/actions.c:324:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (0 == strlen(tokens[i])) {
data/clamav-0.103.0+dfsg/shared/actions.c:349:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t driveroot_len = strlen("\\??\\\\") + strlen(tokens[0]) + 1;
data/clamav-0.103.0+dfsg/shared/actions.c:349:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t driveroot_len = strlen("\\??\\\\") + strlen(tokens[0]) + 1;
data/clamav-0.103.0+dfsg/shared/actions.c:450: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).
    ret = cli_basename(source, strlen(source), &source_basename);
data/clamav-0.103.0+dfsg/shared/actions.c:462:68:  [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).
    cchDestFilepath = MultiByteToWideChar(CP_UTF8, 0, destination, strlen(destination), NULL, 0);
data/clamav-0.103.0+dfsg/shared/actions.c:468:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (0 == MultiByteToWideChar(CP_UTF8, 0, destination, strlen(destination), destFilepathW, cchDestFilepath)) {
data/clamav-0.103.0+dfsg/shared/actions.c:562: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).
    ret = cli_basename(target, strlen(target), &target_basename);
data/clamav-0.103.0+dfsg/shared/actions.c:713:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        targlen = strlen(actarget);
data/clamav-0.103.0+dfsg/shared/cdiff.c:168:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, line + i, j - i);
data/clamav-0.103.0+dfsg/shared/cdiff.c:193:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = 0; i < strlen(db); i++) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:384:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strncmp(lbuf, del->str, strlen(del->str))) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:397: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).
                if (strncmp(lbuf, xchg->str, strlen(xchg->str))) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:581:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strncmp(lbuf, start_str, strlen(start_str))) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:616:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strncmp(lbuf, end_str, strlen(end_str))) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:703:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = 0; i < strlen(db); i++) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:810:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(desc, line, DSIGBUFF) != DSIGBUFF) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:868:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((bread = read(desc, buff, FILEBUFF)) > 0) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:898:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (n < FILEBUFF - 1 && read(desc, &buff[n], 1) > 0) {
data/clamav-0.103.0+dfsg/shared/cdiff.c:933:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            diffremain -= strlen(line);
data/clamav-0.103.0+dfsg/shared/cdiff.c:937:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (!strlen(line))
data/clamav-0.103.0+dfsg/shared/cdiff.c:998:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (!strlen(line))
data/clamav-0.103.0+dfsg/shared/getopt.c:232:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ((strlen(longopts[ind].name) == (size_t)(charind - offset)) &&
data/clamav-0.103.0+dfsg/shared/hostid.c:34:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(hostid) != 36)
data/clamav-0.103.0+dfsg/shared/misc.c:89: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).
                char *daily = (char *)malloc(strlen(opt->strarg) + strlen(dbdir) + 30);
data/clamav-0.103.0+dfsg/shared/misc.c:89:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                char *daily = (char *)malloc(strlen(opt->strarg) + strlen(dbdir) + 30);
data/clamav-0.103.0+dfsg/shared/misc.c:146:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!(path = malloc(strlen(pt) + 11))) {
data/clamav-0.103.0+dfsg/shared/misc.c:216:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len        = strlen(buff);
data/clamav-0.103.0+dfsg/shared/misc.c:449:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (pattern[strlen(pattern) - 1] == *PATHSEP) {
data/clamav-0.103.0+dfsg/shared/misc.c:453:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(fname, filename, 513);
data/clamav-0.103.0+dfsg/shared/misc.c:465:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(path);
data/clamav-0.103.0+dfsg/shared/optparser.c:667:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(_CONFDIR, dir, sizeof(_CONFDIR));
data/clamav-0.103.0+dfsg/shared/optparser.c:982: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).
            for (i = 0; i < (int)strlen(buff) - 1 && (buff[i] == ' ' || buff[i] == '\t'); i++)
data/clamav-0.103.0+dfsg/shared/optparser.c:986:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(buff) <= 2 || buff[0] == '#')
data/clamav-0.103.0+dfsg/shared/optparser.c:1004: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).
            for (i = 0; i < (int)strlen(pt) - 1 && (pt[i] == ' ' || pt[i] == '\t'); i++)
data/clamav-0.103.0+dfsg/shared/optparser.c:1007: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).
            for (i = strlen(pt); i >= 1 && (pt[i - 1] == ' ' || pt[i - 1] == '\t' || pt[i - 1] == '\n'); i--)
data/clamav-0.103.0+dfsg/shared/optparser.c:1028: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).
                if (!strlen(arg)) {
data/clamav-0.103.0+dfsg/shared/optparser.c:1161: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).
                if (!cfgfile && !strlen(arg)) {
data/clamav-0.103.0+dfsg/shared/output.c:99:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(str);                         \
data/clamav-0.103.0+dfsg/shared/output.c:106:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            arglen += strlen(pt);  \
data/clamav-0.103.0+dfsg/shared/output.c:223:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    rotate_file_len = strlen(logg_file) + strlen("-YYYY-MM-DD_HH:MM:SS.log");
data/clamav-0.103.0+dfsg/shared/output.c:223:43:  [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).
    rotate_file_len = strlen(logg_file) + strlen("-YYYY-MM-DD_HH:MM:SS.log");
data/clamav-0.103.0+dfsg/shared/output.c:247:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strftime(rotate_file + strlen(rotate_file) - strlen(".log"), rotate_file_len - strlen(rotate_file), "-%Y%m%d_%H%M%S.log", &tmp);
data/clamav-0.103.0+dfsg/shared/output.c:247:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strftime(rotate_file + strlen(rotate_file) - strlen(".log"), rotate_file_len - strlen(rotate_file), "-%Y%m%d_%H%M%S.log", &tmp);
data/clamav-0.103.0+dfsg/shared/output.c:247:84:  [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).
    strftime(rotate_file + strlen(rotate_file) - strlen(".log"), rotate_file_len - strlen(rotate_file), "-%Y%m%d_%H%M%S.log", &tmp);
data/clamav-0.103.0+dfsg/shared/output.c:360:21:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        old_umask = umask(0037);
data/clamav-0.103.0+dfsg/shared/output.c:362:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
            umask(old_umask);
data/clamav-0.103.0+dfsg/shared/output.c:371:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
            umask(old_umask);
data/clamav-0.103.0+dfsg/shared/output.c:407:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            timestr[strlen(timestr) - 1] = '\0';
data/clamav-0.103.0+dfsg/shared/output.c:436:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                timestr[strlen(timestr) - 1] = '\0';
data/clamav-0.103.0+dfsg/shared/tar.c:73:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(hdr.name, file, 100);
data/clamav-0.103.0+dfsg/shared/tar.c:93:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((bytes = read(s, buff, FILEBUFF)) > 0) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:134:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(str);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:140:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(dst, str, MIN(dstlen - 1, len));
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:146:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(dst, str, len - 4);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:157:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((bytes = read(0, buffer, FILEBUFF)) > 0) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:455: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).
    newname = malloc(strlen(fname) + 7);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:470:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((bytes = read(fd1, buff, sizeof(buff))) > 0) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:473:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (write(fd2, decoded, strlen(decoded)) == -1) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:505:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(pass, pt, sizeof(pass));
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:522:13:  [1] (buffer) scanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        if (scanf("%30s", pass) == EOF) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:567:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(cmd);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:592:75:  [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).
            mprintf("Signature received (length = %lu)\n", (unsigned long)strlen(buff) - 10);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1001:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(olddb, opts->filename[0], sizeof(olddb));
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1053: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).
    sprintf(header + strlen(header), ":%u:", version);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1056: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).
    sprintf(header + strlen(header), "%u:", sigs);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1060: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).
    sprintf(header + strlen(header), "%u:", fl);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1062:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    real_header = strlen(header);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1068:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(builder, pt, sizeof(builder));
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1072:13:  [1] (buffer) scanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        if (scanf("%32s", builder) == EOF) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1083: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).
    sprintf(header + strlen(header), ":%u", (unsigned int)timet);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1166: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).
    sprintf(header + strlen(header), "%s:", pt);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1177:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(header + strlen(header), "%s:", pt);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1180:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(header + strlen(header), "X:");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1187: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).
    sprintf(header + strlen(header), ":%u", (unsigned int)timet);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1190:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    while (strlen(header) < sizeof(header) - 1)
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1191:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(header, " ");
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1268:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(olddb, pt, sizeof(olddb));
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1348:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(name, optget(opts, "unpack")->strarg, sizeof(name));
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1446:41:  [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).
                dbfile = (char *)malloc(strlen(dent->d_name) + strlen(dirname) + 2);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1446:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                dbfile = (char *)malloc(strlen(dent->d_name) + strlen(dirname) + 2);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1883:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((bytes = read(fd, buff, 512)) > 0) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:1966:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        i = strlen(nbuff);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2005:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(tbuff, obuff, l1);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2303:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned int i, p = 0, wildcard = 0, len = strlen(hex) / 2;
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2392:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buff = calloc(strlen(hex) + 512, sizeof(char));
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2432:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (!strlen(pt)) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2482: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).
                if (!strlen(pt)) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2503:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (op != '(' && lop != ')' && !strlen(h)) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2517:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    memcpy(&buff[len], c, strlen(h) / 2);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2518:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    len += strlen(h) / 2;
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2558:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                memcpy(&buff[len], c, strlen(h) / 2);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2559:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                len += strlen(h) / 2;
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2597:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    hexlen = strlen(hexsig);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2623:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(trigger, hexsig, tlen);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2633:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(regex, hexsig + tlen + 1, rlen);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2645:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(cflags, hexsig + tlen + rlen + 2, clen);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2680:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                for (j = 0; j < strlen(start); j++) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:2815:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = 0; i < strlen(sigmod); i++) {
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3003:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(tokens[0]) && strstr(tokens[0], ".{") && tokens[0][strlen(tokens[0]) - 1] == '}')
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3003:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(tokens[0]) && strstr(tokens[0], ".{") && tokens[0][strlen(tokens[0]) - 1] == '}')
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3007:57:  [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).
        subsigs = cli_ac_chklsig(tokens[2], tokens[2] + strlen(tokens[2]), NULL, NULL, NULL, 1);
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3162:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strlen(buffer))
data/clamav-0.103.0+dfsg/sigtool/sigtool.c:3196:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strlen(buffer))
data/clamav-0.103.0+dfsg/sigtool/vba.c:939:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy((char *)tmp_buff, (char *)(buff + i + 2), s_length);
data/clamav-0.103.0+dfsg/sigtool/vba.c:950:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy((char *)tmp_buff, (char *)(buff + i + 2), s_length);
data/clamav-0.103.0+dfsg/sigtool/vba.c:959:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy((char *)tmp_buff, (char *)(buff + i + 2), s_length);
data/clamav-0.103.0+dfsg/sigtool/vba.c:968:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy((char *)tmp_buff, (char *)(buff + i + 2), s_length);
data/clamav-0.103.0+dfsg/sigtool/vba.c:977:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy((char *)tmp_buff, (char *)(buff + i + 2), s_length);
data/clamav-0.103.0+dfsg/sigtool/vba.c:986:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy((char *)tmp_buff, (char *)(buff + i + 2), s_length);
data/clamav-0.103.0+dfsg/sigtool/vba.c:995:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy((char *)tmp_buff, (char *)(buff + i + 2), s_length);
data/clamav-0.103.0+dfsg/sigtool/vba.c:1004:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy((char *)tmp_buff, (char *)(buff + i + 2), s_length);
data/clamav-0.103.0+dfsg/sigtool/vba.c:1106:48:  [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).
                    fname = (char *)cli_calloc(strlen(dirname) + strlen(dent->d_name) + 2, sizeof(char));
data/clamav-0.103.0+dfsg/sigtool/vba.c:1106:66:  [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).
                    fname = (char *)cli_calloc(strlen(dirname) + strlen(dent->d_name) + 2, sizeof(char));
data/clamav-0.103.0+dfsg/sigtool/vba.c:1306:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    fullname = calloc(strlen(dirname) + strlen(dent->d_name) + 2, sizeof(char));
data/clamav-0.103.0+dfsg/sigtool/vba.c:1306:57:  [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).
                    fullname = calloc(strlen(dirname) + strlen(dent->d_name) + 2, sizeof(char));
data/clamav-0.103.0+dfsg/unit_tests/check_bytecode.c:494: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).
    str = cli_malloc(strlen(dbname) + strlen(srcdir) + 2);
data/clamav-0.103.0+dfsg/unit_tests/check_bytecode.c:494:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    str = cli_malloc(strlen(dbname) + strlen(srcdir) + 2);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:90:47:  [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).
    ck_assert_msg(strcspn(ver, "012345789") < strlen(ver),
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:904:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:908:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:940:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:944:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:949:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:953:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:958:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:962:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:968:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:976:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sanitized     = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:985:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:993:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sanitized     = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1002:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1010:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sanitized     = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1019:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1028:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sanitized     = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1041: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).
    sanitized = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1053:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sanitized     = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1062:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1070:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sanitized     = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1079:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1087:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sanitized     = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1096:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1104:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sanitized     = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1113:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1121:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sanitized     = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1130:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1138:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sanitized     = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1147:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1155:54:  [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).
    sanitized   = cli_sanitize_filepath(unsanitized, strlen(unsanitized), &sanitized_base);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1251: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).
    str = cli_malloc(strlen(name) + strlen(srcdir) + 2);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1251:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    str = cli_malloc(strlen(name) + strlen(srcdir) + 2);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1268:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    p = read(fd, buf, len);
data/clamav-0.103.0+dfsg/unit_tests/check_clamav.c:1298:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nread = read(ref_fd, ref, siz);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:69:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(nixsock.sun_path, SOCKET, sizeof(nixsock.sun_path));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:143:47:  [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).
    ck_assert_msg((size_t)write(fd, nonempty, strlen(nonempty)) == strlen(nonempty),
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:143:68:  [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).
    ck_assert_msg((size_t)write(fd, nonempty, strlen(nonempty)) == strlen(nonempty),
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:244:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        rc = send(sockd, extra, strlen(extra), 0);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:245:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ck_assert_msg((size_t)rc == strlen(extra), "Unable to send() extra for %s: %s\n", cmd, strerror(errno));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:269:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    test_command(nsend, strlen(nsend), test->extra, nreply, strlen(nreply));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:269:61:  [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).
    test_command(nsend, strlen(nsend), test->extra, nreply, strlen(nreply));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:275:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    test_command(nsend, strlen(nsend) + 1, test->extra, test->reply, strlen(test->reply) + 1);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:275:70:  [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).
    test_command(nsend, strlen(nsend) + 1, test->extra, test->reply, strlen(test->reply) + 1);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:298:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        test_command(test->command, strlen(test->command), test->extra, nreply, strlen(nreply));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:298:81:  [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).
        test_command(test->command, strlen(test->command), test->extra, nreply, strlen(nreply));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:305:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    test_command(nsend, strlen(nsend), test->extra, nreply, strlen(nreply));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:305:61:  [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).
    test_command(nsend, strlen(nsend), test->extra, nreply, strlen(nreply));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:314:29:  [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).
        test_command(nsend, strlen(nsend), test->extra, nreply, strlen(nreply));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:314:65:  [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).
        test_command(nsend, strlen(nsend), test->extra, nreply, strlen(nreply));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:327:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen("nSTATS\n");
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:336:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ck_assert_msg(len > strlen(STATS_REPLY), "Reply has wrong size: %lu, minimum %lu, reply: %s\n",
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:337:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  len, strlen(STATS_REPLY), recvdata);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:339:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (len > strlen(STATS_REPLY))
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:340:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(STATS_REPLY);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:362:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nread = read(fd, &buf[off], buflen - off - 4);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:378:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t off     = strlen(buf);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:388:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    expect_len = strlen(EXPECT_INSTREAM);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:575:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ck_assert_msg(sendmsg_fd(sockd, "zIDSESSION", strlen("zIDSESSION"), dummyfd, 1) != -1,
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:711:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nread = read(infd, buf, sizeof(buf));
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:745:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ck_assert_msg(p + strlen(test->command) + 2 < buf + sizeof(buf), "Buffer too small");
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:748:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            p += strlen(test->command);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:751:35:  [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).
                ck_assert_msg(p + strlen(test->extra) < buf + sizeof(buf), "Buffer too small");
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:753: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).
                p += strlen(test->extra);
data/clamav-0.103.0+dfsg/unit_tests/check_clamd.c:811:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            p = q + strlen(q) + 1;
data/clamav-0.103.0+dfsg/unit_tests/check_disasm.c:225:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ck_assert_msg(read(ref, d, size) == size, "disasm reference read failed");
data/clamav-0.103.0+dfsg/unit_tests/check_disasm.c:226:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ck_assert_msg(read(fd, d + size, size) == size, "disasm read failed");
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:68:61:  [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 struct keyword *kw = in_word_set(kw_test[_i].str, strlen(kw_test[_i].str));
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:79:59:  [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 struct operator*op = in_op_set(op_test[_i].str, strlen(op_test[_i].str));
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:173:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cli_js_process_buffer(state, buf, strlen(buf));
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:174:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cli_js_process_buffer(state, buf, strlen(buf));
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:185:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (p = strlen(buf); p < 8191; p++) {
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:189:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(buf + 8192, " stuff stuff <script language='javascript'> function () {}", 8192);
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:233:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ssize_t len  = strlen(expected);
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:234:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t inlen = strlen(in);
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:407:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tst, s, strlen(s));
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:407:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncpy(tst, s, strlen(s));
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:408:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tst + len - sizeof(e), e, sizeof(e));
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:410:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(exp, s_exp, len);
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:411:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(exp + sizeof(s_exp) - 1, tst, len - 1);
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:412:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(exp + sizeof(s_exp) + len - 2, e_exp, sizeof(e_exp));
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:426:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (p = strlen(buf); p < 16384; p++) {
data/clamav-0.103.0+dfsg/unit_tests/check_jsnorm.c:432:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(buf + 24626, "#@~^ ", 10);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:219:75:  [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).
        ret = cli_ac_scanbuff((const unsigned char *)ac_testdata[i].data, strlen(ac_testdata[i].data), &virname, NULL, NULL, root, &mdata, 0, 0, NULL, AC_SCAN_VIR, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:221:65:  [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).
        ck_assert_msg(!strncmp(virname, ac_testdata[i].virname, strlen(ac_testdata[i].virname)), "Dataset %u matched with %s", i, virname);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:223:73:  [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).
        ret = cli_scan_buff((const unsigned char *)ac_testdata[i].data, strlen(ac_testdata[i].data), 0, &ctx, 0, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:225:65:  [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).
        ck_assert_msg(!strncmp(virname, ac_testdata[i].virname, strlen(ac_testdata[i].virname)), "Dataset %u matched with %s", i, virname);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:262:75:  [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).
        ret = cli_ac_scanbuff((const unsigned char *)ac_testdata[i].data, strlen(ac_testdata[i].data), &virname, NULL, NULL, root, &mdata, 0, 0, NULL, AC_SCAN_VIR, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:264:65:  [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).
        ck_assert_msg(!strncmp(virname, ac_testdata[i].virname, strlen(ac_testdata[i].virname)), "Dataset %u matched with %s", i, virname);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:266:73:  [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).
        ret = cli_scan_buff((const unsigned char *)ac_testdata[i].data, strlen(ac_testdata[i].data), 0, &ctx, 0, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:268:65:  [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).
        ck_assert_msg(!strncmp(virname, ac_testdata[i].virname, strlen(ac_testdata[i].virname)), "Dataset %u matched with %s", i, virname);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:310:77:  [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).
            ck_assert_msg(!strncmp(virname, ac_sigopts_testdata[i].virname, strlen(ac_sigopts_testdata[i].virname)), "[ac_ex] Dataset %u matched with %s", i, virname);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:353:77:  [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).
            ck_assert_msg(!strncmp(virname, ac_sigopts_testdata[i].virname, strlen(ac_sigopts_testdata[i].virname)), "[ac_ex] Dataset %u matched with %s", i, virname);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:443:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        hexlen = strlen(PCRE_BYPASS) + strlen(pcre_testdata[i].hexsig) + 1;
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:443:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        hexlen = strlen(PCRE_BYPASS) + strlen(pcre_testdata[i].hexsig) + 1;
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:448:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(hexsig, PCRE_BYPASS, hexlen);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:449:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(hexsig, pcre_testdata[i].hexsig, hexlen);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:466:78:  [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).
        ret = cli_pcre_scanbuf((const unsigned char *)pcre_testdata[i].data, strlen(pcre_testdata[i].data), &virname, NULL, root, NULL, NULL, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:469:71:  [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).
            ck_assert_msg(!strncmp(virname, pcre_testdata[i].virname, strlen(pcre_testdata[i].virname)), "[pcre] Dataset %u matched with %s", i, virname);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:471:75:  [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).
        ret = cli_scan_buff((const unsigned char *)pcre_testdata[i].data, strlen(pcre_testdata[i].data), 0, &ctx, 0, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:497:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        hexlen = strlen(PCRE_BYPASS) + strlen(pcre_testdata[i].hexsig) + 1;
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:497:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        hexlen = strlen(PCRE_BYPASS) + strlen(pcre_testdata[i].hexsig) + 1;
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:502:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(hexsig, PCRE_BYPASS, hexlen);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:503:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(hexsig, pcre_testdata[i].hexsig, hexlen);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:520:78:  [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).
        ret = cli_pcre_scanbuf((const unsigned char *)pcre_testdata[i].data, strlen(pcre_testdata[i].data), &virname, NULL, root, NULL, NULL, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:523:71:  [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).
            ck_assert_msg(!strncmp(virname, pcre_testdata[i].virname, strlen(pcre_testdata[i].virname)), "[pcre] Dataset %u matched with %s", i, virname);
data/clamav-0.103.0+dfsg/unit_tests/check_matchers.c:525:75:  [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).
        ret = cli_scan_buff((const unsigned char *)pcre_testdata[i].data, strlen(pcre_testdata[i].data), 0, &ctx, 0, NULL);
data/clamav-0.103.0+dfsg/unit_tests/check_regex.c:127:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ck_assert_msg(strlen(suffix) == len, "incorrect suffix len, expected: %d, got: %d\n", strlen(suffix), len);
data/clamav-0.103.0+dfsg/unit_tests/check_regex.c:127:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ck_assert_msg(strlen(suffix) == len, "incorrect suffix len, expected: %d, got: %d\n", strlen(suffix), len);
data/clamav-0.103.0+dfsg/unit_tests/check_regex.c:590:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cli_url_canon(u->in, strlen(u->in), urlbuff, sizeof(urlbuff), &host, &host_len, &path, &path_len);
data/clamav-0.103.0+dfsg/unit_tests/check_str.c:48:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ck_assert_msg(str && strlen(str) == 0, "cli_unescape empty string");
data/clamav-0.103.0+dfsg/unit_tests/check_str.c:146:53:  [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).
    rc = cli_textbuffer_append_normalize(&buf, str, strlen(str));
data/clamav-0.103.0+dfsg/unit_tests/check_uniq.c:94:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (CL_SUCCESS != uniq_add(U, tests[i], strlen(tests[i]), NULL, &u)) {
data/clamav-0.103.0+dfsg/unit_tests/check_uniq.c:100:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (CL_SUCCESS != uniq_get(U, tests[i], strlen(tests[i]), NULL, &u)) {

ANALYSIS SUMMARY:

Hits = 3147
Lines analyzed = 245543 in approximately 7.25 seconds (33857 lines/second)
Physical Source Lines of Code (SLOC) = 183925
Hits@level = [0] 1180 [1] 1030 [2] 1879 [3]  23 [4] 203 [5]  12
Hits@level+ = [0+] 4327 [1+] 3147 [2+] 2117 [3+] 238 [4+] 215 [5+]  12
Hits/KSLOC@level+ = [0+] 23.5259 [1+] 17.1102 [2+] 11.5101 [3+] 1.29401 [4+] 1.16895 [5+] 0.065244
Dot directories skipped = 8 (--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.