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/varnish-6.5.1/include/vcl.h
Examining data/varnish-6.5.1/include/vrt_obj.h
Examining data/varnish-6.5.1/include/vnum.h
Examining data/varnish-6.5.1/include/vpf.h
Examining data/varnish-6.5.1/include/vct.h
Examining data/varnish-6.5.1/include/vsl_priv.h
Examining data/varnish-6.5.1/include/vdef.h
Examining data/varnish-6.5.1/include/vus.h
Examining data/varnish-6.5.1/include/vss.h
Examining data/varnish-6.5.1/include/vsc_priv.h
Examining data/varnish-6.5.1/include/compat/daemon.h
Examining data/varnish-6.5.1/include/vbh.h
Examining data/varnish-6.5.1/include/vtree.h
Examining data/varnish-6.5.1/include/vlu.h
Examining data/varnish-6.5.1/include/vbm.h
Examining data/varnish-6.5.1/include/vfil.h
Examining data/varnish-6.5.1/include/vfl.h
Examining data/varnish-6.5.1/include/vrnd.h
Examining data/varnish-6.5.1/include/miniobj.h
Examining data/varnish-6.5.1/include/vas.h
Examining data/varnish-6.5.1/include/vrt.h
Examining data/varnish-6.5.1/include/vut.h
Examining data/varnish-6.5.1/include/vev.h
Examining data/varnish-6.5.1/include/vcs_version.h
Examining data/varnish-6.5.1/include/vut_options.h
Examining data/varnish-6.5.1/include/venc.h
Examining data/varnish-6.5.1/include/vtim.h
Examining data/varnish-6.5.1/include/vjsn.h
Examining data/varnish-6.5.1/include/vsm_priv.h
Examining data/varnish-6.5.1/include/vqueue.h
Examining data/varnish-6.5.1/include/verrno.h
Examining data/varnish-6.5.1/include/tbl/vcl_states.h
Examining data/varnish-6.5.1/include/tbl/vsl_tags.h
Examining data/varnish-6.5.1/include/tbl/acct_fields_req.h
Examining data/varnish-6.5.1/include/tbl/vsig_list.h
Examining data/varnish-6.5.1/include/tbl/debug_bits.h
Examining data/varnish-6.5.1/include/tbl/obj_attr.h
Examining data/varnish-6.5.1/include/tbl/symbol_kind.h
Examining data/varnish-6.5.1/include/tbl/bo_flags.h
Examining data/varnish-6.5.1/include/tbl/vhp_static.h
Examining data/varnish-6.5.1/include/tbl/locks.h
Examining data/varnish-6.5.1/include/tbl/cli_cmds.h
Examining data/varnish-6.5.1/include/tbl/feature_bits.h
Examining data/varnish-6.5.1/include/tbl/sess_attr.h
Examining data/varnish-6.5.1/include/tbl/h2_frames.h
Examining data/varnish-6.5.1/include/tbl/vhd_return.h
Examining data/varnish-6.5.1/include/tbl/htc.h
Examining data/varnish-6.5.1/include/tbl/params.h
Examining data/varnish-6.5.1/include/tbl/req_flags.h
Examining data/varnish-6.5.1/include/tbl/vsc_levels.h
Examining data/varnish-6.5.1/include/tbl/vhd_fsm.h
Examining data/varnish-6.5.1/include/tbl/waiters.h
Examining data/varnish-6.5.1/include/tbl/h2_stream.h
Examining data/varnish-6.5.1/include/tbl/sess_close.h
Examining data/varnish-6.5.1/include/tbl/ban_oper.h
Examining data/varnish-6.5.1/include/tbl/acct_fields_bereq.h
Examining data/varnish-6.5.1/include/tbl/mgt_vcc.h
Examining data/varnish-6.5.1/include/tbl/vcl_returns.h
Examining data/varnish-6.5.1/include/tbl/h2_settings.h
Examining data/varnish-6.5.1/include/tbl/vsl_tags_http.h
Examining data/varnish-6.5.1/include/tbl/oc_flags.h
Examining data/varnish-6.5.1/include/tbl/http_response.h
Examining data/varnish-6.5.1/include/tbl/backend_poll.h
Examining data/varnish-6.5.1/include/tbl/http_headers.h
Examining data/varnish-6.5.1/include/tbl/ban_vars.h
Examining data/varnish-6.5.1/include/tbl/boc_state.h
Examining data/varnish-6.5.1/include/tbl/body_status.h
Examining data/varnish-6.5.1/include/tbl/vrt_stv_var.h
Examining data/varnish-6.5.1/include/tbl/steps.h
Examining data/varnish-6.5.1/include/tbl/h2_error.h
Examining data/varnish-6.5.1/include/tbl/ban_arg_oper.h
Examining data/varnish-6.5.1/include/tbl/vhp_huffman.h
Examining data/varnish-6.5.1/include/tbl/oc_exp_flags.h
Examining data/varnish-6.5.1/include/tbl/vhd_fsm_funcs.h
Examining data/varnish-6.5.1/include/vsha256.h
Examining data/varnish-6.5.1/include/vcurses.h
Examining data/varnish-6.5.1/include/vcc_interface.h
Examining data/varnish-6.5.1/include/vtcp.h
Examining data/varnish-6.5.1/include/vsb.h
Examining data/varnish-6.5.1/include/vre.h
Examining data/varnish-6.5.1/include/vav.h
Examining data/varnish-6.5.1/include/vend.h
Examining data/varnish-6.5.1/include/vmb.h
Examining data/varnish-6.5.1/include/vin.h
Examining data/varnish-6.5.1/include/vsa.h
Examining data/varnish-6.5.1/include/vcs.h
Examining data/varnish-6.5.1/include/vsub.h
Examining data/varnish-6.5.1/include/vcli_serve.h
Examining data/varnish-6.5.1/include/vapi/vsl_int.h
Examining data/varnish-6.5.1/include/vapi/vsl.h
Examining data/varnish-6.5.1/include/vapi/voptget.h
Examining data/varnish-6.5.1/include/vapi/vsig.h
Examining data/varnish-6.5.1/include/vapi/vsm.h
Examining data/varnish-6.5.1/include/vapi/vapi_options.h
Examining data/varnish-6.5.1/include/vapi/vsc.h
Examining data/varnish-6.5.1/include/vbm_test.c
Examining data/varnish-6.5.1/include/libvcc.h
Examining data/varnish-6.5.1/include/vcli.h
Examining data/varnish-6.5.1/include/vmod_abi.h
Examining data/varnish-6.5.1/lib/libvmod_blob/hex.c
Examining data/varnish-6.5.1/lib/libvmod_blob/tbl_case.h
Examining data/varnish-6.5.1/lib/libvmod_blob/vmod_blob.h
Examining data/varnish-6.5.1/lib/libvmod_blob/id.c
Examining data/varnish-6.5.1/lib/libvmod_blob/hex.h
Examining data/varnish-6.5.1/lib/libvmod_blob/vmod_blob.c
Examining data/varnish-6.5.1/lib/libvmod_blob/tbl_encodings.h
Examining data/varnish-6.5.1/lib/libvmod_blob/base64.c
Examining data/varnish-6.5.1/lib/libvmod_blob/url.c
Examining data/varnish-6.5.1/lib/libvmod_cookie/vmod_cookie.c
Examining data/varnish-6.5.1/lib/libvmod_std/vmod_std_querysort.c
Examining data/varnish-6.5.1/lib/libvmod_std/vmod_std_fileread.c
Examining data/varnish-6.5.1/lib/libvmod_std/vmod_std.c
Examining data/varnish-6.5.1/lib/libvmod_std/vmod_std_conversions.c
Examining data/varnish-6.5.1/lib/libvmod_vtc/vmod_vtc.c
Examining data/varnish-6.5.1/lib/libvgz/inftrees.h
Examining data/varnish-6.5.1/lib/libvgz/inflate.c
Examining data/varnish-6.5.1/lib/libvgz/zconf.h
Examining data/varnish-6.5.1/lib/libvgz/zutil.h
Examining data/varnish-6.5.1/lib/libvgz/inftrees.c
Examining data/varnish-6.5.1/lib/libvgz/crc32.h
Examining data/varnish-6.5.1/lib/libvgz/crc32.c
Examining data/varnish-6.5.1/lib/libvgz/inflate.h
Examining data/varnish-6.5.1/lib/libvgz/deflate.h
Examining data/varnish-6.5.1/lib/libvgz/deflate.c
Examining data/varnish-6.5.1/lib/libvgz/gzguts.h
Examining data/varnish-6.5.1/lib/libvgz/vgz.h
Examining data/varnish-6.5.1/lib/libvgz/inffast.h
Examining data/varnish-6.5.1/lib/libvgz/trees.h
Examining data/varnish-6.5.1/lib/libvgz/inffixed.h
Examining data/varnish-6.5.1/lib/libvgz/inffast.c
Examining data/varnish-6.5.1/lib/libvgz/adler32.c
Examining data/varnish-6.5.1/lib/libvgz/zutil.c
Examining data/varnish-6.5.1/lib/libvgz/trees.c
Examining data/varnish-6.5.1/lib/libvmod_unix/cred_compat.h
Examining data/varnish-6.5.1/lib/libvmod_unix/vmod_unix.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_types.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_backend_util.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_compile.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_utils.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_var.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_acl.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_xref.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_types.h
Examining data/varnish-6.5.1/lib/libvcc/vcc_parse.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_storage.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_token_defs.h
Examining data/varnish-6.5.1/lib/libvcc/vcc_token.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_vmod.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_expr.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_namespace.h
Examining data/varnish-6.5.1/lib/libvcc/vcc_symb.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_action.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_compile.h
Examining data/varnish-6.5.1/lib/libvcc/vcc_obj.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_backend.c
Examining data/varnish-6.5.1/lib/libvcc/vcc_fixed_token.c
Examining data/varnish-6.5.1/lib/libvmod_proxy/vmod_proxy.c
Examining data/varnish-6.5.1/lib/libvmod_purge/vmod_purge.c
Examining data/varnish-6.5.1/lib/libvmod_directors/vmod_shard.c
Examining data/varnish-6.5.1/lib/libvmod_directors/hash.c
Examining data/varnish-6.5.1/lib/libvmod_directors/shard_dir.c
Examining data/varnish-6.5.1/lib/libvmod_directors/round_robin.c
Examining data/varnish-6.5.1/lib/libvmod_directors/random.c
Examining data/varnish-6.5.1/lib/libvmod_directors/shard_cfg.c
Examining data/varnish-6.5.1/lib/libvmod_directors/fall_back.c
Examining data/varnish-6.5.1/lib/libvmod_directors/vdir.h
Examining data/varnish-6.5.1/lib/libvmod_directors/shard_cfg.h
Examining data/varnish-6.5.1/lib/libvmod_directors/shard_dir.h
Examining data/varnish-6.5.1/lib/libvmod_directors/misc.c
Examining data/varnish-6.5.1/lib/libvmod_directors/vdir.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vxp_lexer.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vsm.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vsl_query.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vsl_glob_test.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vsl2rst.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vxp_test.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vxp_fixed_token.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vsc.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vsl_cursor.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vxp.h
Examining data/varnish-6.5.1/lib/libvarnishapi/vsl_api.h
Examining data/varnish-6.5.1/lib/libvarnishapi/vxp_tokens.h
Examining data/varnish-6.5.1/lib/libvarnishapi/vsl_arg.c
Examining data/varnish-6.5.1/lib/libvarnishapi/daemon.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vsig.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vxp_parse.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vxp.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vsl_dispatch.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vut.c
Examining data/varnish-6.5.1/lib/libvarnishapi/vsl.c
Examining data/varnish-6.5.1/lib/libvmod_debug/vmod_debug_dyn.c
Examining data/varnish-6.5.1/lib/libvmod_debug/vmod_debug.c
Examining data/varnish-6.5.1/lib/libvmod_debug/vmod_debug_obj.c
Examining data/varnish-6.5.1/lib/libvarnish/vev.c
Examining data/varnish-6.5.1/lib/libvarnish/vre.c
Examining data/varnish-6.5.1/lib/libvarnish/vtcp.c
Examining data/varnish-6.5.1/lib/libvarnish/vsha256.c
Examining data/varnish-6.5.1/lib/libvarnish/vcli_proto.c
Examining data/varnish-6.5.1/lib/libvarnish/verrno.c
Examining data/varnish-6.5.1/lib/libvarnish/vfil.c
Examining data/varnish-6.5.1/lib/libvarnish/vav.c
Examining data/varnish-6.5.1/lib/libvarnish/vus.c
Examining data/varnish-6.5.1/lib/libvarnish/vpf.c
Examining data/varnish-6.5.1/lib/libvarnish/vmb.c
Examining data/varnish-6.5.1/lib/libvarnish/vjsn.c
Examining data/varnish-6.5.1/lib/libvarnish/version.c
Examining data/varnish-6.5.1/lib/libvarnish/vct.c
Examining data/varnish-6.5.1/lib/libvarnish/vte.c
Examining data/varnish-6.5.1/lib/libvarnish/vas.c
Examining data/varnish-6.5.1/lib/libvarnish/vss.c
Examining data/varnish-6.5.1/lib/libvarnish/vsb.c
Examining data/varnish-6.5.1/lib/libvarnish/vnum.c
Examining data/varnish-6.5.1/lib/libvarnish/vrnd.c
Examining data/varnish-6.5.1/lib/libvarnish/vfl.c
Examining data/varnish-6.5.1/lib/libvarnish/vcli_serve.c
Examining data/varnish-6.5.1/lib/libvarnish/vsub.c
Examining data/varnish-6.5.1/lib/libvarnish/vlu.c
Examining data/varnish-6.5.1/lib/libvarnish/vin.c
Examining data/varnish-6.5.1/lib/libvarnish/vsa.c
Examining data/varnish-6.5.1/lib/libvarnish/vsb_test.c
Examining data/varnish-6.5.1/lib/libvarnish/venc.c
Examining data/varnish-6.5.1/lib/libvarnish/vtim.c
Examining data/varnish-6.5.1/lib/libvarnish/vbh.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_h2_stattbl.h
Examining data/varnish-6.5.1/bin/varnishtest/vtc_http.h
Examining data/varnish-6.5.1/bin/varnishtest/teken_subr_compat.h
Examining data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c
Examining data/varnish-6.5.1/bin/varnishtest/teken_wcwidth.h
Examining data/varnish-6.5.1/bin/varnishtest/vtc_h2_enctbl.h
Examining data/varnish-6.5.1/bin/varnishtest/vtc_gzip.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_client.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_h2_dectbl.h
Examining data/varnish-6.5.1/bin/varnishtest/vtc_misc.c
Examining data/varnish-6.5.1/bin/varnishtest/hpack.h
Examining data/varnish-6.5.1/bin/varnishtest/teken_subr.h
Examining data/varnish-6.5.1/bin/varnishtest/vtc_process.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_logexp.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_h2_hpack.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc.h
Examining data/varnish-6.5.1/bin/varnishtest/teken_scs.h
Examining data/varnish-6.5.1/bin/varnishtest/teken.h
Examining data/varnish-6.5.1/bin/varnishtest/vtc_main.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_syslog.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_subr.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_http2.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_barrier.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_h2_tbl.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_server.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_http.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_proxy.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_h2_priv.h
Examining data/varnish-6.5.1/bin/varnishtest/teken.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_log.c
Examining data/varnish-6.5.1/bin/varnishtest/cmds.h
Examining data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c
Examining data/varnish-6.5.1/bin/varnishtest/vtc_sess.c
Examining data/varnish-6.5.1/bin/varnishncsa/b64.h
Examining data/varnish-6.5.1/bin/varnishncsa/varnishncsa_options.h
Examining data/varnish-6.5.1/bin/varnishncsa/varnishncsa.c
Examining data/varnish-6.5.1/bin/varnishncsa/b64.c
Examining data/varnish-6.5.1/bin/varnishlog/varnishlog_options.h
Examining data/varnish-6.5.1/bin/varnishlog/varnishlog.c
Examining data/varnish-6.5.1/bin/varnishd/storage/mgt_stevedore.c
Examining data/varnish-6.5.1/bin/varnishd/storage/storage_simple.h
Examining data/varnish-6.5.1/bin/varnishd/storage/storage_simple.c
Examining data/varnish-6.5.1/bin/varnishd/storage/storage_persistent.c
Examining data/varnish-6.5.1/bin/varnishd/storage/storage_lru.c
Examining data/varnish-6.5.1/bin/varnishd/storage/storage.h
Examining data/varnish-6.5.1/bin/varnishd/storage/storage_persistent_subr.c
Examining data/varnish-6.5.1/bin/varnishd/storage/stevedore_utils.c
Examining data/varnish-6.5.1/bin/varnishd/storage/storage_persistent_silo.c
Examining data/varnish-6.5.1/bin/varnishd/storage/storage_file.c
Examining data/varnish-6.5.1/bin/varnishd/storage/mgt_storage_persistent.c
Examining data/varnish-6.5.1/bin/varnishd/storage/storage_persistent.h
Examining data/varnish-6.5.1/bin/varnishd/storage/storage_umem.c
Examining data/varnish-6.5.1/bin/varnishd/storage/stevedore.c
Examining data/varnish-6.5.1/bin/varnishd/storage/storage_malloc.c
Examining data/varnish-6.5.1/bin/varnishd/waiter/mgt_waiter.c
Examining data/varnish-6.5.1/bin/varnishd/waiter/mgt_waiter.h
Examining data/varnish-6.5.1/bin/varnishd/waiter/waiter_priv.h
Examining data/varnish-6.5.1/bin/varnishd/waiter/cache_waiter_ports.c
Examining data/varnish-6.5.1/bin/varnishd/waiter/waiter.h
Examining data/varnish-6.5.1/bin/varnishd/waiter/cache_waiter_kqueue.c
Examining data/varnish-6.5.1/bin/varnishd/waiter/cache_waiter_epoll.c
Examining data/varnish-6.5.1/bin/varnishd/waiter/cache_waiter.c
Examining data/varnish-6.5.1/bin/varnishd/waiter/cache_waiter_poll.c
Examining data/varnish-6.5.1/bin/varnishd/http1/cache_http1_pipe.c
Examining data/varnish-6.5.1/bin/varnishd/http1/cache_http1.h
Examining data/varnish-6.5.1/bin/varnishd/http1/cache_http1_fsm.c
Examining data/varnish-6.5.1/bin/varnishd/http1/cache_http1_proto.c
Examining data/varnish-6.5.1/bin/varnishd/http1/cache_http1_fetch.c
Examining data/varnish-6.5.1/bin/varnishd/http1/cache_http1_vfp.c
Examining data/varnish-6.5.1/bin/varnishd/http1/cache_http1_deliver.c
Examining data/varnish-6.5.1/bin/varnishd/http1/cache_http1_line.c
Examining data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c
Examining data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_lck.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_ban_lurker.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_rfc2616.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_vcl.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_backend.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_http.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_range.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_fetch.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_vcl.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_vcl.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_re.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_req_fsm.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_objhead.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_tcp_pool.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_main.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_var.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_filter.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_tcp_pool.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_esi_deliver.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_director.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_obj.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_wrk.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_director.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_vgz.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_ban.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_vpi.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_ban_build.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_vrt.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_varnishd.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_transport.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_ban.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_obj.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_expire.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_session.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_backend_probe.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_pool.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_gzip.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_hash.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_req_body.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_vary.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_ws.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_panic.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_filter.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_cli.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_busyobj.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_vmod.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_req.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_mempool.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_deliver_proc.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_fetch_proc.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_pool.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_esi_parse.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_backend.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_esi.h
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_esi_fetch.c
Examining data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_priv.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_param_tbl.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_vcl.h
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_cli.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt.h
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_jail.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_symtab.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_param.h
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_vcl.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_param_tcp.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_child.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_util.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_jail_unix.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_pool.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_param.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_shmem.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_param_bits.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_param_tweak.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_jail_solaris.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_acceptor.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_vcc.c
Examining data/varnish-6.5.1/bin/varnishd/mgt/mgt_jail_solaris_tbl.h
Examining data/varnish-6.5.1/bin/varnishd/http2/cache_http2_panic.c
Examining data/varnish-6.5.1/bin/varnishd/http2/cache_http2_proto.c
Examining data/varnish-6.5.1/bin/varnishd/http2/cache_http2_hpack.c
Examining data/varnish-6.5.1/bin/varnishd/http2/cache_http2_send.c
Examining data/varnish-6.5.1/bin/varnishd/http2/cache_http2.h
Examining data/varnish-6.5.1/bin/varnishd/http2/cache_http2_deliver.c
Examining data/varnish-6.5.1/bin/varnishd/http2/cache_http2_session.c
Examining data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c
Examining data/varnish-6.5.1/bin/varnishd/hpack/vhp.h
Examining data/varnish-6.5.1/bin/varnishd/hpack/vhp_decode.c
Examining data/varnish-6.5.1/bin/varnishd/hpack/vhp_gen_hufdec.c
Examining data/varnish-6.5.1/bin/varnishd/fuzzers/esi_parse_fuzzer.c
Examining data/varnish-6.5.1/bin/varnishd/hash/mgt_hash.c
Examining data/varnish-6.5.1/bin/varnishd/hash/hash_classic.c
Examining data/varnish-6.5.1/bin/varnishd/hash/hash_critbit.c
Examining data/varnish-6.5.1/bin/varnishd/hash/hash_slinger.h
Examining data/varnish-6.5.1/bin/varnishd/hash/hash_simple_list.c
Examining data/varnish-6.5.1/bin/varnishd/common/common_vsmw.c
Examining data/varnish-6.5.1/bin/varnishd/common/heritage.h
Examining data/varnish-6.5.1/bin/varnishd/common/vsmw.h
Examining data/varnish-6.5.1/bin/varnishd/common/common_param.h
Examining data/varnish-6.5.1/bin/varnishd/common/common_vsc.c
Examining data/varnish-6.5.1/bin/varnishstat/varnishstat_help_gen.c
Examining data/varnish-6.5.1/bin/varnishstat/varnishstat_curses.c
Examining data/varnish-6.5.1/bin/varnishstat/varnishstat_bindings.h
Examining data/varnish-6.5.1/bin/varnishstat/varnishstat.c
Examining data/varnish-6.5.1/bin/varnishstat/varnishstat_options.h
Examining data/varnish-6.5.1/bin/varnishstat/varnishstat.h
Examining data/varnish-6.5.1/bin/varnishadm/varnishadm.c
Examining data/varnish-6.5.1/bin/varnishhist/varnishhist_options.h
Examining data/varnish-6.5.1/bin/varnishhist/varnishhist.c
Examining data/varnish-6.5.1/bin/varnishhist/varnishhist_profiles.h
Examining data/varnish-6.5.1/bin/varnishtop/varnishtop_options.h
Examining data/varnish-6.5.1/bin/varnishtop/varnishtop.c

FINAL RESULTS:

data/varnish-6.5.1/bin/varnishd/mgt/mgt_acceptor.c:107:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		    chmod(ls->endpoint, ls->perms->mode) != 0)
data/varnish-6.5.1/bin/varnishd/mgt/mgt_acceptor.c:109:7:  [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(ls->endpoint, ls->perms->uid, ls->perms->gid) != 0)
data/varnish-6.5.1/bin/varnishd/mgt/mgt_jail_unix.c:267:5:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	AZ(chown(dname, vju_uid, vju_gid));
data/varnish-6.5.1/bin/varnishd/mgt/mgt_jail_unix.c:286:5:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	AZ(chown(dname, -1, vju_gid));
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:754:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			AZ(chmod(p, 0750));
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:1280: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(p, fmt);
data/varnish-6.5.1/bin/varnishd/cache/cache_lck.c:80:2:  [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(q, il->w);
data/varnish-6.5.1/bin/varnishd/cache/cache_lck.c:81:2:  [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(q, try);
data/varnish-6.5.1/bin/varnishd/cache/cache_lck.c:83:2:  [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(q, p);
data/varnish-6.5.1/bin/varnishd/cache/cache_lck.c:86:2:  [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(q, t);
data/varnish-6.5.1/bin/varnishd/cache/cache_session.c:176: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(q, src);
data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c:274:7:  [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.
		n = vsnprintf(buf, mlen, fmt, ap);
data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c:452:6:  [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.
	n = vsnprintf(p, mlen, fmt, ap);
data/varnish-6.5.1/bin/varnishd/cache/cache_ws.c:248:6:  [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.
	v = vsnprintf(p, u, fmt, ap);
data/varnish-6.5.1/bin/varnishd/common/heritage.h:104:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, "Error: " __VA_ARGS__);		\
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:97:2:  [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(FMT, "-a [<name>=]address[:port][,proto]",
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:99:2:  [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(FMT, "   [,user=<u>][,group=<g>]",
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:101:2:  [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(FMT, "   [,mode=<m>]", "  default: \":80,HTTP\"");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:102:2:  [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(FMT, "", "Proto can be \"PROXY\" or \"HTTP\" (default)");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:103:2:  [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(FMT, "", "user, group and mode set permissions for");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:104:2:  [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(FMT, "", "  a Unix domain socket.");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:105:2:  [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(FMT, "-b [addr[:port]|path]", "Backend address and port");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:106:2:  [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(FMT, "", "  or socket file path");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:107:2:  [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(FMT, "", "  default: \":80\"");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:108:2:  [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(FMT, "-f vclfile", "VCL program");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:109:2:  [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(FMT, "", "Can be specified multiple times.");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:110:2:  [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(FMT, "-n dir", "Working directory");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:115:2:  [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(FMT, "-?", "Prints this usage message");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:116:2:  [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(FMT, "-x parameter", "Parameter documentation");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:117:2:  [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(FMT, "-x vsl", "VSL record documentation");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:118:2:  [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(FMT, "-x cli", "CLI command documentation");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:119:2:  [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(FMT, "-x builtin", "Builtin VCL program");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:120:2:  [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(FMT, "-x optstring", "List of getopt options");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:124:2:  [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(FMT, "-F", "Run in foreground");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:125:2:  [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(FMT, "-T address[:port]", "CLI address");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:126:2:  [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(FMT, "", "Can be specified multiple times.");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:127:2:  [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(FMT, "-M address:port", "Reverse CLI destination");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:128:2:  [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(FMT, "", "Can be specified multiple times.");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:129:2:  [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(FMT, "-P file", "PID file");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:130:2:  [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(FMT, "-i identity", "Identity of varnish instance");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:131:2:  [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(FMT, "-I clifile", "Initialization CLI commands");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:135:2:  [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(FMT, "-t TTL", "Default TTL");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:136:2:  [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(FMT, "-p param=value", "set parameter");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:137:2:  [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(FMT, "", "Can be specified multiple times.");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:139:2:  [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(FMT, "-s [name=]kind[,options]", "Storage specification");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:140:2:  [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(FMT, "", "Can be specified multiple times.");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:142:2:  [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(FMT, "", "  -s default (=umem)");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:143:2:  [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(FMT, "", "  -s umem");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:145:2:  [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(FMT, "", "  -s default (=malloc)");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:147:2:  [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(FMT, "", "  -s malloc");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:148:2:  [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(FMT, "", "  -s file");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:150:2:  [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(FMT, "-l vsl", "Size of shared memory log");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:151:2:  [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(FMT, "", "  vsl: space for VSL records [80m]");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:155:2:  [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(FMT, "-r param[,param...]", "Set parameters read-only from CLI");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:156:2:  [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(FMT, "", "Can be specified multiple times.");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:157:2:  [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(FMT, "-S secret-file", "Secret file for CLI authentication");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:158:2:  [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(FMT, "-j jail[,options]", "Jail specification");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:160:2:  [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(FMT, "", "  -j solaris");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:162:2:  [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(FMT, "", "  -j unix");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:163:2:  [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(FMT, "", "  -j none");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:167:2:  [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(FMT, "-d", "debug mode");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:168:2:  [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(FMT, "", "Stay in foreground, CLI on stdin.");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:169:2:  [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(FMT, "-C", "Output VCL code compiled to C language");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:170:2:  [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(FMT, "-V", "version");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:171:2:  [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(FMT, "-h kind[,options]", "Hash specification");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:172:2:  [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(FMT, "-W waiter", "Waiter implementation");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_shmem.c:82:6:  [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.
		AZ(system("rm -rf " VSM_MGT_DIRNAME));
data/varnish-6.5.1/bin/varnishd/mgt/mgt_shmem.c:83:6:  [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.
		AZ(system("rm -rf " VSM_CHILD_DIRNAME));
data/varnish-6.5.1/bin/varnishd/mgt/mgt_shmem.c:98:5:  [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.
	AZ(system("rm -rf " VSM_MGT_DIRNAME));
data/varnish-6.5.1/bin/varnishd/mgt/mgt_shmem.c:118:5:  [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.
	AZ(system("rm -rf " VSM_CHILD_DIRNAME));
data/varnish-6.5.1/bin/varnishd/mgt/mgt_shmem.c:147:6:  [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.
		AZ(system("rm -rf " VSM_CHILD_DIRNAME));
data/varnish-6.5.1/bin/varnishd/mgt/mgt_vcc.c:173:8:  [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.
	(void)execl("/bin/sh", "/bin/sh", "-c", VSB_data(sb), (char*)0);
data/varnish-6.5.1/bin/varnishd/storage/mgt_storage_persistent.c:167:26:  [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 SIZOF(foo)       fprintf(stderr, \
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent_subr.c:148: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(ctx->ss->ident, ctx->id);
data/varnish-6.5.1/bin/varnishhist/varnishhist.c:295:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
				i = sscanf(VSL_CDATA(tr->c->rec.ptr),
data/varnish-6.5.1/bin/varnishstat/varnishstat.c:268:2:  [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("<%s>" next, name);
data/varnish-6.5.1/bin/varnishtest/cmds.h:55:9:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
CMD_TOP(syslog)
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:612:5:  [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.
	AZ(system(buf));
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:634:6:  [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.
		AZ(system(buf));
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:742:6:  [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.
		AZ(execl("/bin/sh", "/bin/sh", "-c", VSB_data(vsb), (char*)0));
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:946:3:  [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, 20, (f->flags & ACK) ? "true" : "false");
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:973:3:  [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, 20, f->md.prio.exclusive ? "true" : "false");
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1016:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(buf, 20, (f->flags & ACK) ? "true" : "false");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:182:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, FMT, "-b size",
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:184:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, FMT, "-C", "Use cleaner subprocess");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:185:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, FMT, "-D name=val", "Define macro");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:186:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, FMT, "-i", "Find varnish binaries in build tree");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:187:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, FMT, "-j jobs", "Run this many tests in parallel");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:188:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, FMT, "-k", "Continue on test failure");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:189:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, FMT, "-L", "Always leave temporary vtc.*");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:190:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, FMT, "-l", "Leave temporary vtc.* if test fails");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:191:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, FMT, "-n iterations", "Run tests this many times");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:192:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, FMT, "-p name=val", "Pass a varnishd parameter");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:193:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, FMT, "-q", "Quiet mode: report only failures");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:194:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, FMT, "-t duration", "Time tests out after this long");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:195:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, FMT, "-v", "Verbose mode: always report test log");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:218:5:  [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.
	AZ(system(buf));
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:250:10:  [4] (shell) execlp:
  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(execlp(
data/varnish-6.5.1/bin/varnishtest/vtc_misc.c:168:7:  [4] (shell) popen:
  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.
	fp = popen(VSB_data(vsb), "r");
data/varnish-6.5.1/bin/varnishtest/vtc_misc.c:473:8:  [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.
			r = system(*av);
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:398:5:  [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.
	AZ(system(buf));
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:698:6:  [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.
		AZ(execl("/bin/sh", "/bin/sh", "-c", VSB_data(cl), (char*)0));
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:333:5:  [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.
	AZ(system(buf));
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:461:6:  [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.
		AZ(execl("/bin/sh", "/bin/sh", "-c", VSB_data(vsb), (char*)0));
data/varnish-6.5.1/include/vdef.h:49:14:  [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.
		ibprintf = snprintf(buf, sizeof buf, fmt, __VA_ARGS__);	\
data/varnish-6.5.1/include/vdef.h:57:15:  [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.
		ivbprintf = vsnprintf(buf, sizeof buf, fmt, ap);	\
data/varnish-6.5.1/include/vdef.h:65: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((dst), (src));					\
data/varnish-6.5.1/include/vdef.h:90:52:  [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 v_printflike_(f,a) __attribute__((format(printf, f, a)))
data/varnish-6.5.1/lib/libvarnish/vcli_serve.c:649: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.
		(void)vfprintf(stdout, fmt, ap);
data/varnish-6.5.1/lib/libvarnish/vev.c:87:3:  [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((evb)->debug, __VA_ARGS__);	\
data/varnish-6.5.1/lib/libvarnish/vfil.c:394:7:  [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(VSB_data(vsb), F_OK))
data/varnish-6.5.1/lib/libvarnish/vsb.c:390: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.
		len = vsnprintf(&s->s_buf[s->s_len], VSB_FREESPACE(s) + 1,
data/varnish-6.5.1/lib/libvarnishapi/vsl.c:223:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		if (0 > fprintf(__VA_ARGS__))		\
data/varnish-6.5.1/lib/libvarnishapi/vsl_arg.c:335:2:  [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(buf, p);
data/varnish-6.5.1/lib/libvarnishapi/vsl_dispatch.c:1030:6:  [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.
	l = vsnprintf(buf, buflen, fmt, ap);
data/varnish-6.5.1/lib/libvarnishapi/vut.c:126:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, fmt, ap);
data/varnish-6.5.1/lib/libvcc/vcc_compile.c:95: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(p, s);
data/varnish-6.5.1/lib/libvgz/gzguts.h:86:18:  [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.
#    if !defined(vsnprintf) && !defined(NO_vsnprintf)
data/varnish-6.5.1/lib/libvgz/gzguts.h:88:18:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#         define vsnprintf _vsnprintf
data/varnish-6.5.1/lib/libvgz/gzguts.h:110:11:  [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/varnish-6.5.1/lib/libvgz/gzguts.h:110:20:  [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/varnish-6.5.1/lib/libvgz/zutil.h:242:39:  [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 (z_verbose>=0) fprintf x ;}
data/varnish-6.5.1/lib/libvgz/zutil.h:243:39:  [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 (z_verbose>0) fprintf x ;}
data/varnish-6.5.1/lib/libvgz/zutil.h:244:40:  [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 (z_verbose>1) fprintf x ;}
data/varnish-6.5.1/lib/libvgz/zutil.h:245:48:  [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 (z_verbose>0 && (c)) fprintf x ;}
data/varnish-6.5.1/lib/libvgz/zutil.h:246:49:  [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 (z_verbose>1 && (c)) fprintf x ;}
data/varnish-6.5.1/lib/libvmod_debug/vmod_debug.c:230:3:  [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(n, s);
data/varnish-6.5.1/bin/varnishadm/varnishadm.c:444:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "+hn:S:T:t:")) != -1) {
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:501:6:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	o = getopt(argc, argv, opt_spec);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:549:7:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		o = getopt(argc, argv, opt_spec);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:608:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((o = getopt(argc, argv, opt_spec)) != -1) {
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:744:8:  [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("TMPDIR") != NULL)
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:745:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				VSB_printf(vsb, "%s", getenv("TMPDIR"));
data/varnish-6.5.1/bin/varnishd/storage/storage_file.c:551:7:  [3] (random) random:
  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.
		i = random() % N;
data/varnish-6.5.1/bin/varnishd/storage/storage_file.c:553:8:  [3] (random) random:
  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.
			j = random() % M;
data/varnish-6.5.1/bin/varnishd/storage/storage_umem.c:267:6:  [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.
	e = getenv(env_umem_options);
data/varnish-6.5.1/bin/varnishd/storage/storage_umem.c:377:6:  [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.
		AN(getenv(env_umem_options));
data/varnish-6.5.1/bin/varnishhist/varnishhist.c:495:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((i = getopt(argc, argv, vopt_spec.vopt_optstring)) != -1) {
data/varnish-6.5.1/bin/varnishlog/varnishlog.c:117:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, vopt_spec.vopt_optstring)) != -1) {
data/varnish-6.5.1/bin/varnishncsa/varnishncsa.c:1103:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, vopt_spec.vopt_optstring)) != -1) {
data/varnish-6.5.1/bin/varnishstat/varnishstat.c:294:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, vopt_spec.vopt_optstring)) != -1) {
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:571:16:  [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.
	h->filename = getenv(HAPROXY_PROGRAM_ENV_VAR);
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:407:13:  [3] (random) random:
  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.
		(unsigned)random());
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:553:25:  [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.
	VSB_printf(vsb, ":%s", getenv("PATH"));
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:696:6:  [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("TMPDIR") != NULL)
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:697: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.
		tmppath = strdup(getenv("TMPDIR"));
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:708:6:  [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.
	p = getenv("VTEST_DURATION");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:710:7:  [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.
		p = getenv("VARNISHTEST_DURATION");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:719:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "b:CD:hij:kLln:p:qt:v")) != -1) {
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:813:18:  [3] (random) random:
  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.
				(void)usleep(random() % 100000L);
data/varnish-6.5.1/bin/varnishtop/varnishtop.c:320:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((o = getopt(argc, argv, vopt_spec.vopt_optstring)) != -1) {
data/varnish-6.5.1/lib/libvarnish/vrnd.c:195:2:  [3] (random) srandom:
  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.
	srandom(seed);
data/varnish-6.5.1/lib/libvarnishapi/vxp_test.c:63:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "q:")) != -1) {
data/varnish-6.5.1/lib/libvmod_std/vmod_std.c:247:10:  [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.
	return (getenv(name));
data/varnish-6.5.1/bin/varnishadm/varnishadm.c:105: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 buf[CLI_AUTH_RESPONSE_LEN + 1];
data/varnish-6.5.1/bin/varnishadm/varnishadm.c:121:8:  [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(S_arg, O_RDONLY);
data/varnish-6.5.1/bin/varnishadm/varnishadm.c:207: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 *commands[256];
data/varnish-6.5.1/bin/varnishadm/varnishadm.c:292: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 *t, c[128];
data/varnish-6.5.1/bin/varnishadm/varnishadm.c:342: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 buf[1024];
data/varnish-6.5.1/bin/varnishd/cache/cache.h:144: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			id[WS_ID_SIZE];	/* identity */
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:176: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(to->ptr, &linger, sizeof linger);
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:180: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(to->ptr, &one, sizeof one);
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:184: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(to->ptr, &one, sizeof one);
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:190: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(to->ptr, &(xx), sizeof xx);	\
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:353:2:  [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(laddr, "0.0.0.0");
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:354:2:  [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(raddr, "0.0.0.0");
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:365: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 laddr[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:366: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 lport[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:367: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 raddr[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:368: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 rport[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:436: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 laddr[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:437: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 lport[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:657: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 h[32], p[32];
data/varnish-6.5.1/bin/varnishd/cache/cache_backend.c:125: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 abuf1[VTCP_ADDRBUFSIZE], abuf2[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishd/cache/cache_backend.c:126: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 pbuf1[VTCP_PORTBUFSIZE], pbuf2[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishd/cache/cache_backend.c:565: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 ident[VSHA256_DIGEST_LENGTH];
data/varnish-6.5.1/bin/varnishd/cache/cache_backend_probe.c:73: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				resp_buf[128];
data/varnish-6.5.1/bin/varnishd/cache/cache_backend_probe.c:159: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 bits[10];
data/varnish-6.5.1/bin/varnishd/cache/cache_backend_probe.c:251: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 buf[105]; /* maximum size for a TCP6 PROXY line with null char */
data/varnish-6.5.1/bin/varnishd/cache/cache_backend_probe.c:252: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 addr[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishd/cache/cache_backend_probe.c:253: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 port[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishd/cache/cache_backend_probe.c:281: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 buf[8192], *p;
data/varnish-6.5.1/bin/varnishd/cache/cache_ban.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.
static const char * const arg_name[BAN_ARGARRSZ + 1] = {
data/varnish-6.5.1/bin/varnishd/cache/cache_ban.c:144: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(&t, &u, sizeof t);
data/varnish-6.5.1/bin/varnishd/cache/cache_ban.c:236: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(&bt->arg2_double, &dtmp, sizeof dtmp);
data/varnish-6.5.1/bin/varnishd/cache/cache_ban.c:418: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(b2->spec, ban, len);
data/varnish-6.5.1/bin/varnishd/cache/cache_ban.c:796: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 buf[64];
data/varnish-6.5.1/bin/varnishd/cache/cache_ban.h:150: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.
extern const char * const ban_oper[BAN_OPERARRSZ + 1];
data/varnish-6.5.1/bin/varnishd/cache/cache_ban_build.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.
static const char *arg_operhelp[BAN_ARGARRSZ + 1];
data/varnish-6.5.1/bin/varnishd/cache/cache_ban_build.c:81: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.
const char * const ban_oper[BAN_OPERARRSZ + 1] = {
data/varnish-6.5.1/bin/varnishd/cache/cache_ban_build.c:285: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(&dtmp, &darg, sizeof dtmp);
data/varnish-6.5.1/bin/varnishd/cache/cache_ban_build.c:339: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(&u, &t0, sizeof u);
data/varnish-6.5.1/bin/varnishd/cache/cache_ban_build.c:342: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(b->spec + BANS_HEAD_LEN, VSB_data(bp->vsb), ln);
data/varnish-6.5.1/bin/varnishd/cache/cache_busyobj.c:141: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(bo->digest, req->digest, sizeof bo->digest);
data/varnish-6.5.1/bin/varnishd/cache/cache_director.c:329: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 time_str[VTIM_FORMAT_SIZE];
data/varnish-6.5.1/bin/varnishd/cache/cache_esi_deliver.c:746: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(foo->tailbuf + l, pp, dl);
data/varnish-6.5.1/bin/varnishd/cache/cache_esi_parse.c:111: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			tag[8];
data/varnish-6.5.1/bin/varnishd/cache/cache_esi_parse.c:944:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(vep->tag, p, e - p);
data/varnish-6.5.1/bin/varnishd/cache/cache_esi_parse.c:958: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(vep->tag + vep->tag_i, p, i);
data/varnish-6.5.1/bin/varnishd/cache/cache_fetch.c:728: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(pd, ps, l);
data/varnish-6.5.1/bin/varnishd/cache/cache_fetch.c:928:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ptr, VSB_data(synth_body) + o, l);
data/varnish-6.5.1/bin/varnishd/cache/cache_hash.c:207: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 was[VSHA256_LEN];
data/varnish-6.5.1/bin/varnishd/cache/cache_hash.c:208: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 now[VSHA256_LEN];
data/varnish-6.5.1/bin/varnishd/cache/cache_hash.c:260: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(hsh_magiclist[nused++].was, result, VSHA256_LEN);
data/varnish-6.5.1/bin/varnishd/cache/cache_hash.c:268: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(result, hsh_magiclist[i].now, VSHA256_LEN);
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:115: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 id[WS_ID_SIZE];
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:218: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(to->hd, fm->hd, fm->nhd * sizeof *to->hd);
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:219: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(to->hdf, fm->hdf, fm->nhd * sizeof *to->hdf);
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:416: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, hp->hd[f].b, x);
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:438: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(b, sep, lsep);
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:440: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(b, v, x);
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:819: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 buf[4];
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:965: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, fm->hd[u].b, w);
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:1299: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(&hp->hd[v], &hp->hd[u], sizeof *hp->hd);
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:1300: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(&hp->hdf[v], &hp->hdf[u], sizeof *hp->hdf);
data/varnish-6.5.1/bin/varnishd/cache/cache_lck.c:68: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 *q, t[10];
data/varnish-6.5.1/bin/varnishd/cache/cache_main.c:252: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 buf[1024];
data/varnish-6.5.1/bin/varnishd/cache/cache_mempool.c:57: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				name[12];
data/varnish-6.5.1/bin/varnishd/cache/cache_obj.c:545: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(&u, &t, sizeof u);
data/varnish-6.5.1/bin/varnishd/cache/cache_obj.c:567: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(d, &u, sizeof *d);
data/varnish-6.5.1/bin/varnishd/cache/cache_panic.c:586: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 fname[1024];
data/varnish-6.5.1/bin/varnishd/cache/cache_panic.c:629: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 buf[32];
data/varnish-6.5.1/bin/varnishd/cache/cache_req_fsm.c:339: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(ptr, VSB_data(synth_body), szl);
data/varnish-6.5.1/bin/varnishd/cache/cache_session.c:112: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(dst, src, sz);
data/varnish-6.5.1/bin/varnishd/cache/cache_session.c:629: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 nb[8];
data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c:86: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, s->p[i], ll);
data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c:243: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(p + 2, b, len);
data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c:265: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 buf[mlen];
data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c:287: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 buf[mlen];
data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c:324: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(p + 2, vsl->wlb, l);
data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c:360: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(p, t.b, l);
data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c:521: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(p, ptr, len);
data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c:650: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(vsl_head->marker, VSL_HEAD_MARKER, sizeof vsl_head->marker);
data/varnish-6.5.1/bin/varnishd/cache/cache_tcp_pool.c:76: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).
	cp_open_f				*open;
data/varnish-6.5.1/bin/varnishd/cache/cache_tcp_pool.c:231:9:  [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).
	AN(cm->open);
data/varnish-6.5.1/bin/varnishd/cache/cache_tcp_pool.c:402: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).
	r = cp->methods->open(cp, tmo, privp);
data/varnish-6.5.1/bin/varnishd/cache/cache_tcp_pool.c:658:2:  [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(addr, "0.0.0.0");
data/varnish-6.5.1/bin/varnishd/cache/cache_vary.c:276: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(p, req->vary_b, req->vary_l - req->vary_b);
data/varnish-6.5.1/bin/varnishd/cache/cache_vary.c:343: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(vsp + 2, vary + 2, vary[2] + 2);
data/varnish-6.5.1/bin/varnishd/cache/cache_vary.c:345:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(vsp + 2 + vsp[2] + 2, h, lh);
data/varnish-6.5.1/bin/varnishd/cache/cache_vcl.h:48: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			state[8];
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt.c:308: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 sha256[VSHA256_LEN];
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt.c:345:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(b, p, x);
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt.c:412: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, h, x);
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt.c:470: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, s->p[i], x);
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_re.c:47:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((*b), p, l);
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_var.c: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.
static char vrt_hostname[255] = "";
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_vmod.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 buf[256];
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_vmod.c:160: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(ptr, v->funcs, v->funclen);
data/varnish-6.5.1/bin/varnishd/cache/cache_wrk.c:130: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 ws[thread_workspace];
data/varnish-6.5.1/bin/varnishd/cache/cache_wrk.c:249: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(WS_Reservation(wrk2->aws), arg, arg_len);
data/varnish-6.5.1/bin/varnishd/cache/cache_ws.c:124: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(id, ws->id, WS_ID_SIZE);
data/varnish-6.5.1/bin/varnishd/cache/cache_ws.c:232: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(r, str, len);
data/varnish-6.5.1/bin/varnishd/cache/cache_ws.c:394: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 bogus[2];	// Smallest possible vsb
data/varnish-6.5.1/bin/varnishd/common/common_vsc.c:143: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 buf[1024];
data/varnish-6.5.1/bin/varnishd/common/common_vsc.c:163: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(dvsg->ptr, jp, sj);
data/varnish-6.5.1/bin/varnishd/common/common_vsmw.c:150: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 buf[64];
data/varnish-6.5.1/bin/varnishd/hash/hash_classic.c:133: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(&hdigest, digest, sizeof hdigest);
data/varnish-6.5.1/bin/varnishd/hash/hash_classic.c:163: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(oh->digest, digest, sizeof oh->digest);
data/varnish-6.5.1/bin/varnishd/hash/hash_critbit.c:57: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 hcb_bittbl[256];
data/varnish-6.5.1/bin/varnishd/hash/hash_critbit.c:211: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(oh2->digest, digest, sizeof oh2->digest);
data/varnish-6.5.1/bin/varnishd/hash/hash_critbit.c:252: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(oh2->digest, digest, sizeof oh2->digest);
data/varnish-6.5.1/bin/varnishd/hash/hash_simple_list.c:102: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(oh->digest, digest, sizeof oh->digest);
data/varnish-6.5.1/bin/varnishd/hpack/vhp_decode.c:276: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(ctx->out, p, l);
data/varnish-6.5.1/bin/varnishd/hpack/vhp_decode.c:381: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(ctx->out, ctx->in, l2);
data/varnish-6.5.1/bin/varnishd/hpack/vhp_decode.c:765: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 out[128];
data/varnish-6.5.1/bin/varnishd/hpack/vhp_decode.c:806: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 out[128];
data/varnish-6.5.1/bin/varnishd/hpack/vhp_decode.c:833: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 out[256];
data/varnish-6.5.1/bin/varnishd/hpack/vhp_decode.c:876: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 out[256];
data/varnish-6.5.1/bin/varnishd/hpack/vhp_decode.c:929: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 out[256];
data/varnish-6.5.1/bin/varnishd/hpack/vhp_decode.c:987: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 out[256];
data/varnish-6.5.1/bin/varnishd/hpack/vhp_decode.c:1044: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 out[256];
data/varnish-6.5.1/bin/varnishd/hpack/vhp_decode.c:1111: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 out[256];
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:152: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(tbl->buf + tbl->size, buf, len);
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:168: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(tbl->buf + tbl->size, buf, len);
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:270: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(tmp, tbl->buf, l2);
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:272: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(tbl->buf + tbl->size - l2, tmp, l2);
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:379:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, tbl->buf, tbl->size);
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:380: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(ENTRIES(buf, bufsize, tbl->n), TBLENTRIES(tbl),
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:758: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 buf_a[3];
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:759: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 buf_b[2];
data/varnish-6.5.1/bin/varnishd/http1/cache_http1_fsm.c:185: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 buf[80];
data/varnish-6.5.1/bin/varnishd/http1/cache_http1_line.c:176: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 cbuf[32];
data/varnish-6.5.1/bin/varnishd/http1/cache_http1_pipe.c:51: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 buf[BUFSIZ], *p;
data/varnish-6.5.1/bin/varnishd/http1/cache_http1_vfp.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(p, htc->pipeline_b, l);
data/varnish-6.5.1/bin/varnishd/http1/cache_http1_vfp.c:103: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 buf[20];		/* XXX: 20 is arbitrary */
data/varnish-6.5.1/bin/varnishd/http2/cache_http2_hpack.c:132: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, "host", 4);
data/varnish-6.5.1/bin/varnishd/http2/cache_http2_proto.c:738: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 buf[4];
data/varnish-6.5.1/bin/varnishd/http2/cache_http2_proto.c:823: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(ptr, h2->rxf_data, l);
data/varnish-6.5.1/bin/varnishd/http2/cache_http2_proto.c:1093: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 b[8];
data/varnish-6.5.1/bin/varnishd/http2/cache_http2_send.c:400: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 b[4];
data/varnish-6.5.1/bin/varnishd/http2/cache_http2_session.c:50: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 H2_prism[24] = {
data/varnish-6.5.1/bin/varnishd/mgt/mgt_acceptor.c:182: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 abuf[VTCP_ADDRBUFSIZE], pbuf[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishd/mgt/mgt_acceptor.c:183: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 nbuf[VTCP_ADDRBUFSIZE+VTCP_PORTBUFSIZE+2];
data/varnish-6.5.1/bin/varnishd/mgt/mgt_acceptor.c:245: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 name_buf[8];
data/varnish-6.5.1/bin/varnishd/mgt/mgt_child.c:101: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 time_str[30];
data/varnish-6.5.1/bin/varnishd/mgt/mgt_cli.c:271: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 buf[CLI_AUTH_RESPONSE_LEN + 1];
data/varnish-6.5.1/bin/varnishd/mgt/mgt_cli.c:281:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(secret_file, O_RDONLY);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_cli.c:440: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 abuf1[VTCP_ADDRBUFSIZE], abuf2[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishd/mgt/mgt_cli.c:441: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 pbuf1[VTCP_PORTBUFSIZE], pbuf2[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishd/mgt/mgt_cli.c:481: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 buf[BUFSIZ];
data/varnish-6.5.1/bin/varnishd/mgt/mgt_cli.c:487:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(S_arg, O_RDONLY);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_cli.c:513: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 abuf[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishd/mgt/mgt_cli.c:514: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 pbuf[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishd/mgt/mgt_jail.c:161:6:  [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).
	i = open("_.testfile", O_RDWR|O_CREAT|O_EXCL, 0600);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:231:8:  [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).
	fdo = open(fn, O_RDWR|O_CREAT|O_TRUNC, 0640);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:657: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).
			I_fd = open(optarg, O_RDONLY);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:764:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		o = open(S_arg, O_RDONLY, 0);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_param_bits.c:111: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 * const VSL_tags[256] = {
data/varnish-6.5.1/bin/varnishd/mgt/mgt_shmem.c:64: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(p, ptr, size);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_shmem.c:101:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(VSM_MGT_DIRNAME, O_RDONLY);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_shmem.c:122: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).
	heritage.vsm_fd = open(VSM_CHILD_DIRNAME, O_RDONLY);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_symtab.c:81: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 buf[BUFSIZ];
data/varnish-6.5.1/bin/varnishd/mgt/mgt_symtab.c:83:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fo = open(to, O_WRONLY | O_CREAT | O_EXCL, 0744);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_symtab.c:91:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fi = open(fm, O_RDONLY);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_util.c:58: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 buf[1024];
data/varnish-6.5.1/bin/varnishd/mgt/mgt_util.c:228: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(r, spec, l);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_vcc.c:202:6:  [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).
	i = open(fn, O_WRONLY|O_CREAT|O_TRUNC, 0640);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_vcl.c:489: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 buf[20];
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:52: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			tlv[1];
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.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.
	const char *fld[5];
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:329: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 ha[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:330: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 pa[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:331: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 hb[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:332: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 pb[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:464: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(tlv->tlv, tlv_start, tlv_len);
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:686: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 hac[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:687: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 pac[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:688: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 has[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:689: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 pas[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:720: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 ha[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:721: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 pa[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:722: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 buf[PXY_BUFSZ];
data/varnish-6.5.1/bin/varnishd/storage/mgt_stevedore.c:189: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 **av, buf[8];
data/varnish-6.5.1/bin/varnishd/storage/stevedore.c:103: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 buf[1024];
data/varnish-6.5.1/bin/varnishd/storage/stevedore.c:111: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).
		if (stv->open != NULL)
data/varnish-6.5.1/bin/varnishd/storage/stevedore.c:112:9:  [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).
			stv->open(stv);
data/varnish-6.5.1/bin/varnishd/storage/stevedore_utils.c:77: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 buf[FILENAME_MAX];
data/varnish-6.5.1/bin/varnishd/storage/stevedore_utils.c:87:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(fn, O_RDWR | O_CREAT | O_EXCL | O_LARGEFILE, 0600);
data/varnish-6.5.1/bin/varnishd/storage/stevedore_utils.c:103:8:  [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).
		fd = mkstemp(buf);
data/varnish-6.5.1/bin/varnishd/storage/stevedore_utils.c:112:8:  [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(fn, O_RDWR | O_LARGEFILE);
data/varnish-6.5.1/bin/varnishd/storage/storage.h:101: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).
	storage_open_f		*open;
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent.c:85: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(SIGNSPACE_FRONT(spc), ban, len);
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent.c:120: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(SIGNSPACE_DATA(spc), bans, len);
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent.c:567: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(so->hash, oc->objhead->digest, DIGEST_LEN);
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent.h:77: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			ident[32];	/* Human readable ident
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent.h:119: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			ident[8];
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent_silo.c:297: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(dp, sg->objs, len);
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent_subr.c:91: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 sign[VSHA256_LEN];
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent_subr.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.
	unsigned char sign[VSHA256_LEN];
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent_subr.c:135: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(SIGN_END(ctx), sign, sizeof sign);
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent_subr.c:235: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(SIGNSPACE_DATA(dst), SIGNSPACE_DATA(src), SIGNSPACE_LEN(src));
data/varnish-6.5.1/bin/varnishd/storage/storage_simple.c:476: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(st1->ptr, st->ptr, st->len);
data/varnish-6.5.1/bin/varnishd/storage/storage_simple.c:629: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(retval, ptr, len);
data/varnish-6.5.1/bin/varnishd/storage/storage_umem.c:403: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 ident[strlen(st->ident) + 1];
data/varnish-6.5.1/bin/varnishhist/varnishhist.c:145: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 t[VTIM_FORMAT_SIZE];
data/varnish-6.5.1/bin/varnishhist/varnishhist.c:626:3:  [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(format + 4 * i, "%*s ");
data/varnish-6.5.1/bin/varnishhist/varnishhist.c:627:2:  [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(format + 4 * (fnum - 1), "%lf");
data/varnish-6.5.1/bin/varnishlog/varnishlog.c:75: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).
		LOG.fo = fopen(LOG.w_arg, append ? "a" : "w");
data/varnish-6.5.1/bin/varnishncsa/b64.c:17: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 i64[256];
data/varnish-6.5.1/bin/varnishncsa/b64.c:78: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 buf[BUFSIZ];
data/varnish-6.5.1/bin/varnishncsa/varnishncsa.c:170: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).
	CTX.fo = fopen(CTX.w_arg, append ? "a" : "w");
data/varnish-6.5.1/bin/varnishncsa/varnishncsa.c:265: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 buf[64];
data/varnish-6.5.1/bin/varnishncsa/varnishncsa.c:337: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 buf[128];
data/varnish-6.5.1/bin/varnishncsa/varnishncsa.c:626: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 buf[256];
data/varnish-6.5.1/bin/varnishncsa/varnishncsa.c:1064: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).
	fmtfile = fopen(formatfile, "r");
data/varnish-6.5.1/bin/varnishstat/varnishstat.c:85: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 time_stamp[20];
data/varnish-6.5.1/bin/varnishstat/varnishstat.c:131: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 time_stamp[20];
data/varnish-6.5.1/bin/varnishstat/varnishstat_curses.c:137: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 notification_message[NOTIF_MAXLEN] = "";
data/varnish-6.5.1/bin/varnishstat/varnishstat_curses.c:847: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 buf[64];
data/varnish-6.5.1/bin/varnishtest/teken.c:721:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    k < sizeof special_strings_cons25 / sizeof(char *))
data/varnish-6.5.1/bin/varnishtest/teken.c:726: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.
	    k < sizeof special_strings_ckeys / sizeof(char *))
data/varnish-6.5.1/bin/varnishtest/teken.c:730:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 (k < sizeof special_strings_normal / sizeof(char *))
data/varnish-6.5.1/bin/varnishtest/teken_subr.h:152:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
teken_subr_do_cpr(const teken_t *t, unsigned int cmd, char response[16])
data/varnish-6.5.1/bin/varnishtest/teken_subr.h:157:3:  [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(response, "0n");
data/varnish-6.5.1/bin/varnishtest/teken_subr.h:171:3:  [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(response, "13n");
data/varnish-6.5.1/bin/varnishtest/teken_subr.h:174:3:  [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(response, "20n");
data/varnish-6.5.1/bin/varnishtest/teken_subr.h:177:3:  [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(response, "27;1n");
data/varnish-6.5.1/bin/varnishtest/teken_subr.h:344: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 response[18] = "\x1B[";
data/varnish-6.5.1/bin/varnishtest/teken_subr.h:461: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 response[19] = "\x1B[?";
data/varnish-6.5.1/bin/varnishtest/vtc.c:104: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 buf[256];
data/varnish-6.5.1/bin/varnishtest/vtc.c:161: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 buf1[256];
data/varnish-6.5.1/bin/varnishtest/vtc.c:183: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 buf1[256];
data/varnish-6.5.1/bin/varnishtest/vtc.c:314: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 *token_s[MAX_TOKENS], *token_e[MAX_TOKENS];
data/varnish-6.5.1/bin/varnishtest/vtc.c:540:6:  [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("INFO", "w");
data/varnish-6.5.1/bin/varnishtest/vtc_barrier.c:131: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 abuf[16], pbuf[6];
data/varnish-6.5.1/bin/varnishtest/vtc_barrier.c:294: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 buf[32];
data/varnish-6.5.1/bin/varnishtest/vtc_client.c:59: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			connect[256];
data/varnish-6.5.1/bin/varnishtest/vtc_client.c:109: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 mabuf[32], mpbuf[32];
data/varnish-6.5.1/bin/varnishtest/vtc_gzip.c:63: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 buf[BUFSIZ];
data/varnish-6.5.1/bin/varnishtest/vtc_gzip.c:119: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(*body, VSB_data(vout), VSB_len(vout) + 1);
data/varnish-6.5.1/bin/varnishtest/vtc_gzip.c:133: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 buf[BUFSIZ];
data/varnish-6.5.1/bin/varnishtest/vtc_gzip.c:180: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(body, VSB_data(vout), VSB_len(vout) + 1);
data/varnish-6.5.1/bin/varnishtest/vtc_h2_hpack.c:248: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(iter->buf, t->ptr, slen);
data/varnish-6.5.1/bin/varnishtest/vtc_h2_hpack.c:284: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(t->ptr, iter->buf, num);
data/varnish-6.5.1/bin/varnishtest/vtc_h2_hpack.c:300: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(to->ptr, from->ptr, from->len + 1L);
data/varnish-6.5.1/bin/varnishtest/vtc_h2_tbl.c:148: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(h->header.key.ptr,
data/varnish-6.5.1/bin/varnishtest/vtc_h2_tbl.c:158: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(h->header.key.ptr,
data/varnish-6.5.1/bin/varnishtest/vtc_h2_tbl.c:165: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(h->header.value.ptr, oh->value.ptr, oh->value.len + 1L);
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:99: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			closed_sock[256]; /* Closed TCP socket */
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:115: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			connect[256];
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:176: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 mabuf[32], mpbuf[32];
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:426: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 buf_err[1024] = {0};
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:521: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 buf[128], addr[128], port[128];
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:557: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 buf[PATH_MAX];
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:559: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 addr[128], port[128];
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:627: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 buf[PATH_MAX];
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:673: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 buf[PATH_MAX];
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:836:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[128], addr[128], port[128];
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:410: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 buf[20];
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:802:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			l = atoi(av[2]);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1146:10:  [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(av[1]);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1265: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 u[32];
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1424: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 buf[16384];
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1434:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	len = atoi(av[1]);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1622: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 PREFACE[24] = {
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1889:3:  [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(hp->rem_ip, "0.0.0.0");
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1928: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 ibuf[200];
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1929: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 obuf[200];
data/varnish-6.5.1/bin/varnishtest/vtc_http.h:53: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			bodylen[20];
data/varnish-6.5.1/bin/varnishtest/vtc_http.h:54: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			chunklen[20];
data/varnish-6.5.1/bin/varnishtest/vtc_http.h:56: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			*req[MAX_HDR];
data/varnish-6.5.1/bin/varnishtest/vtc_http.h:57: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			*resp[MAX_HDR];
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:234:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[9];
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:322: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 hdr[9];
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:429: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(s->body + s->bodylen, data, size);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:636: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(f->md.ping.data, f->data, 8);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:675: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(f->md.goaway.debug, f->data + 8, f->size - 8);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:711: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 hdr[9];
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1640: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 + f.size, pad, strlen(pad));
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1733:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data + f.size, body, strlen(body));
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1735:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data + f.size, pad, strlen(pad));
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1893: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 buf[512];
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1963: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 buf[8];
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:2042: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(f.data + 8, *av, f.size - 8);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:2074: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 buf[8];
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:2465: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 buf[20];
data/varnish-6.5.1/bin/varnishtest/vtc_log.c:171: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(vtclog_buf, VSB_data(vl->vsb), l);
data/varnish-6.5.1/bin/varnishtest/vtc_log.c:220:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/varnish-6.5.1/bin/varnishtest/vtc_logexp.c:585: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).
			le->d_arg = atoi(av[1]);
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:209: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 buf[BUFSIZ];
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:225: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 buf[BUFSIZ];
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:288: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 buf[BUFSIZ];
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:348: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).
			f = fopen(buf, "w");
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:399: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 tmpdir[PATH_MAX];
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:472: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 buf[PATH_MAX];
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:584: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 abuf[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:585: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 pbuf[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:712: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).
		vtc_maxdur = atoi(p);
data/varnish-6.5.1/bin/varnishtest/vtc_misc.c:227: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).
			ok = atoi(av[n]);
data/varnish-6.5.1/bin/varnishtest/vtc_misc.c:354: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 abuf[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishtest/vtc_misc.c:355: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 pbuf[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:243: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(vram[i], pp->vram[i], j);
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:382: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 buf[1024];
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:470: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 buf[BUFSIZ];
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:500: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 buf[BUFSIZ];
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:535: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).
	p->f_stdout = open(p->out, O_WRONLY|O_APPEND);
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:537: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).
	p->f_stderr = open(p->err, O_WRONLY|O_APPEND);
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:678: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).
		slave = open(slavename, O_RDWR);
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:1070:10:  [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).
			lin = atoi(av[1]);
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:1072:10:  [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).
			col = atoi(av[2]);
data/varnish-6.5.1/bin/varnishtest/vtc_proxy.c:85: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 hc[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishtest/vtc_proxy.c:86: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 pc[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishtest/vtc_proxy.c:87: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 hs[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishtest/vtc_proxy.c:88: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 ps[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishtest/vtc_server.c:61: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			listen[256];
data/varnish-6.5.1/bin/varnishtest/vtc_server.c:62: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			aaddr[32];
data/varnish-6.5.1/bin/varnishtest/vtc_server.c:63: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			aport[32];
data/varnish-6.5.1/bin/varnishtest/vtc_server.c:228: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 abuf[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishtest/vtc_server.c:229: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 pbuf[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishtest/vtc_server.c:328: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 snbuf[8];
data/varnish-6.5.1/bin/varnishtest/vtc_sess.c:99: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).
		vsp->rcvbuf = atoi(av[1]);
data/varnish-6.5.1/bin/varnishtest/vtc_sess.c:104: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).
		vsp->repeat = atoi(av[1]);
data/varnish-6.5.1/bin/varnishtest/vtc_subr.c:189: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 buf[BUFSIZ];
data/varnish-6.5.1/bin/varnishtest/vtc_syslog.c:60: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				bind[256];
data/varnish-6.5.1/bin/varnishtest/vtc_syslog.c:343: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 aaddr[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/bin/varnishtest/vtc_syslog.c:344: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 aport[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/bin/varnishtest/vtc_syslog.c:614: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).
			s->repeat = atoi(av[1]);
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:315: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 buf[1024];
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:398: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 abuf[128], pbuf[128];
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:510:8:  [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).
	nfd = open(abuf, O_RDONLY);
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:865: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 target_pattern[256];
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:1130:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			varnish_cli(v, av[2], atoi(av[1]), NULL);
data/varnish-6.5.1/include/vapi/vsl.h: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.
extern const char * const VSL_tags[SLT__MAX];
data/varnish-6.5.1/include/vapi/vsl.h:233: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.
extern const char *VSLQ_grouping[VSL_g__MAX];
data/varnish-6.5.1/include/vbm.h:81: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(p, vb->bits, vb->nbits / 8);
data/varnish-6.5.1/include/vbm_test.c:43: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 spc[sz];
data/varnish-6.5.1/include/vcli.h:67:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void VCLI_AuthResponse(int S_fd, const char *challenge,
data/varnish-6.5.1/include/vcli.h: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 reponse[CLI_AUTH_RESPONSE_LEN + 1]);
data/varnish-6.5.1/include/vcli_serve.h:79: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			challenge[34];
data/varnish-6.5.1/include/vsha256.h:40: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 buf[64];
data/varnish-6.5.1/include/vsl_priv.h:65: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			marker[8];
data/varnish-6.5.1/lib/libvarnish/vav.c:202: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(argv[nargv], p, s - p);
data/varnish-6.5.1/lib/libvarnish/vav.c:258: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.
	const char *v = *((char **)args[0]);
data/varnish-6.5.1/lib/libvarnish/vav.c:276: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 buf[BUFSIZ];
data/varnish-6.5.1/lib/libvarnish/vcli_proto.c:50: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.
VCLI_AuthResponse(int S_fd, const char *challenge,
data/varnish-6.5.1/lib/libvarnish/vcli_proto.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 response[CLI_AUTH_RESPONSE_LEN + 1])
data/varnish-6.5.1/lib/libvarnish/vcli_proto.c:79: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 nl[2] = "\n";
data/varnish-6.5.1/lib/libvarnish/vcli_proto.c:81: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 res[CLI_LINE0_LEN + 2];	/*
data/varnish-6.5.1/lib/libvarnish/vcli_proto.c:148: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 res[CLI_LINE0_LEN];	/* For NUL */
data/varnish-6.5.1/lib/libvarnish/vcli_serve.c:571: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 buf[BUFSIZ];
data/varnish-6.5.1/lib/libvarnish/venc.c:50: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 base64_enc[64] = {
data/varnish-6.5.1/lib/libvarnish/venc.c:70: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 w[4];
data/varnish-6.5.1/lib/libvarnish/vev.c:165: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(os, vev_sigs, vev_nsig * sizeof *os);
data/varnish-6.5.1/lib/libvarnish/vev.c:208: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).
	evb->debug = fopen("/tmp/_.events", "w");
data/varnish-6.5.1/lib/libvarnish/vfil.c:72:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/null", O_RDWR);
data/varnish-6.5.1/lib/libvarnish/vfil.c:122: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 fnb[PATH_MAX + 1];
data/varnish-6.5.1/lib/libvarnish/vfil.c:131: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).
		return (open(fn, flags, mode));
data/varnish-6.5.1/lib/libvarnish/vfil.c:133: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).
		return (open(fn, flags));
data/varnish-6.5.1/lib/libvarnish/vin.c:51: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 nm[PATH_MAX];
data/varnish-6.5.1/lib/libvarnish/vin.c:52: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 dn[PATH_MAX];
data/varnish-6.5.1/lib/libvarnish/vjsn.c:422: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(p, from, sz);
data/varnish-6.5.1/lib/libvarnish/vlu.c:168: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(l->buf + l->bufp, ptr, u);
data/varnish-6.5.1/lib/libvarnish/vpf.c:77: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 buf[16], *endptr;
data/varnish-6.5.1/lib/libvarnish/vpf.c:80:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY | O_CLOEXEC);
data/varnish-6.5.1/lib/libvarnish/vpf.c:147: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 pidstr[16];
data/varnish-6.5.1/lib/libvarnish/vrnd.c:175:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/urandom", O_RDONLY);
data/varnish-6.5.1/lib/libvarnish/vsa.c:272: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(&sin4.sin_addr, a, al);
data/varnish-6.5.1/lib/libvarnish/vsa.c:277: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(&sin4.sin_port, p, pl);
data/varnish-6.5.1/lib/libvarnish/vsa.c:286: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(&sin6.sin6_addr, a, al);
data/varnish-6.5.1/lib/libvarnish/vsa.c:291: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(&sin6.sin6_port, p, pl);
data/varnish-6.5.1/lib/libvarnish/vsa.c:321: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(&sua->sa4, s, l);
data/varnish-6.5.1/lib/libvarnish/vsa.c:324: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(&sua->sa6, s, l);
data/varnish-6.5.1/lib/libvarnish/vsa.c:404: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(sua2, sua, vsa_suckaddr_len);
data/varnish-6.5.1/lib/libvarnish/vsb.c:154: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(newbuf, s->s_buf, s->s_size);
data/varnish-6.5.1/lib/libvarnish/vsb.c:330: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(s->s_buf + s->s_len, buf, len);
data/varnish-6.5.1/lib/libvarnish/vsha256.c:58: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((void *)dst, (const void *)src, (size_t)len)
data/varnish-6.5.1/lib/libvarnish/vsha256.c:62: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((void *)dst, (const void *)src, (size_t)len)
data/varnish-6.5.1/lib/libvarnish/vsha256.c:153:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VSHA256_Transform(uint32_t * state, const unsigned char block[64])
data/varnish-6.5.1/lib/libvarnish/vsha256.c:163: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(S, state, 32);
data/varnish-6.5.1/lib/libvarnish/vsha256.c:209: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 PAD[64] = {
data/varnish-6.5.1/lib/libvarnish/vsha256.c:228: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(&ctx->buf[r], PAD, 56 - r);
data/varnish-6.5.1/lib/libvarnish/vsha256.c:231: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(&ctx->buf[r], PAD, 64 - r);
data/varnish-6.5.1/lib/libvarnish/vsha256.c:283: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(&ctx->buf[r], src, len);
data/varnish-6.5.1/lib/libvarnish/vsha256.c:288: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(&ctx->buf[r], src, 64 - r);
data/varnish-6.5.1/lib/libvarnish/vsha256.c:301: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(ctx->buf, src, len);
data/varnish-6.5.1/lib/libvarnish/vsha256.c:309: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.
VSHA256_Final(unsigned char digest[static VSHA256_DIGEST_LENGTH],
data/varnish-6.5.1/lib/libvarnish/vsha256.c:329: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.
	const unsigned char     output[32];
data/varnish-6.5.1/lib/libvarnish/vsha256.c:352: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 o[32];
data/varnish-6.5.1/lib/libvarnish/vsub.c:72: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 buf[128];
data/varnish-6.5.1/lib/libvarnish/vtim.c:462: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 buf[BUFSIZ];
data/varnish-6.5.1/lib/libvarnish/vtim.c:526: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 buf[64];
data/varnish-6.5.1/lib/libvarnish/vtim.c:571: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 buf[BUFSIZ];
data/varnish-6.5.1/lib/libvarnish/vtim.c:587: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 buf[BUFSIZ];
data/varnish-6.5.1/lib/libvarnish/vtim.c:588: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 buf1[BUFSIZ];
data/varnish-6.5.1/lib/libvarnishapi/daemon.c:58:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/null", O_RDWR);
data/varnish-6.5.1/lib/libvarnishapi/vsc.c:300:50:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	point->point.ptr = (volatile void*)(seg->body + atoi(vt->value));
data/varnish-6.5.1/lib/libvarnishapi/vsl.c:54: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.
const char * const VSL_tags[SLT__MAX] = {
data/varnish-6.5.1/lib/libvarnishapi/vsl.c:212: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 * const VSL_transactions[VSL_t__MAX] = {
data/varnish-6.5.1/lib/libvarnishapi/vsl.c:414:6:  [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(name, append ? "a" : "w");
data/varnish-6.5.1/lib/libvarnishapi/vsl_arg.c:177: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.
const char *VSLQ_grouping[VSL_g__MAX] = {
data/varnish-6.5.1/lib/libvarnishapi/vsl_arg.c:308: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 buf[32] = "";
data/varnish-6.5.1/lib/libvarnishapi/vsl_cursor.c:418:8:  [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_RDONLY);
data/varnish-6.5.1/lib/libvarnishapi/vsl_dispatch.c:58: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 * const vsl_t_names[VSL_t__MAX] = {
data/varnish-6.5.1/lib/libvarnishapi/vsl_dispatch.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 * const vsl_r_names[VSL_r__MAX] = {
data/varnish-6.5.1/lib/libvarnishapi/vsl_dispatch.c:366: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(chunk->buf.data, ptr, sizeof (uint32_t) * len);
data/varnish-6.5.1/lib/libvarnishapi/vsl_dispatch.c:396: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(chunk->buf.data + chunk->len, ptr, sizeof (uint32_t) * len);
data/varnish-6.5.1/lib/libvarnishapi/vsl_dispatch.c:687: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 type[16], reason[16];
data/varnish-6.5.1/lib/libvarnishapi/vsm.c:210:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(VSB_data(vsb), O_RDONLY);	// XXX: openat
data/varnish-6.5.1/lib/libvarnishapi/vsm.c:721: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).
		vd->wdfd = open(vd->wdname, O_RDONLY);
data/varnish-6.5.1/lib/libvarnishapi/vsm.c:1053: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, vf.b, (char*)vf.e - (char*)vf.b);
data/varnish-6.5.1/lib/libvarnishapi/vxp.h:42: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.
extern const char * const vxp_tnames[256];
data/varnish-6.5.1/lib/libvarnishapi/vxp_fixed_token.c:167: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.
const char * const vxp_tnames[256] = {
data/varnish-6.5.1/lib/libvarnishapi/vxp_lexer.c:167: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(vxp->t->dec, p, q - p);
data/varnish-6.5.1/lib/libvcc/vcc_acl.c:50: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		data[ACL_MAXADDR];
data/varnish-6.5.1/lib/libvcc/vcc_acl.c:102: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 h[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/lib/libvcc/vcc_acl.c:103: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 t[VTCP_ADDRBUFSIZE + 10];
data/varnish-6.5.1/lib/libvcc/vcc_acl.c:104: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[vsa_suckaddr_len];
data/varnish-6.5.1/lib/libvcc/vcc_acl.c:188: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(aen->data + 1L, u, l);
data/varnish-6.5.1/lib/libvcc/vcc_acl.c:324: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[4];
data/varnish-6.5.1/lib/libvcc/vcc_action.c:280: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 buf[1024];
data/varnish-6.5.1/lib/libvcc/vcc_backend.c:64: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 buf[256];
data/varnish-6.5.1/lib/libvcc/vcc_backend_util.c:86: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(r, f, n * sizeof *r);
data/varnish-6.5.1/lib/libvcc/vcc_compile.c:106:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fo = open(fn, O_WRONLY|O_TRUNC|O_CREAT, 0600);
data/varnish-6.5.1/lib/libvcc/vcc_compile.h: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.
extern const char * const vcl_tnames[256];
data/varnish-6.5.1/lib/libvcc/vcc_expr.c:360: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 buf[64];
data/varnish-6.5.1/lib/libvcc/vcc_expr.c:472: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 ssa[64];
data/varnish-6.5.1/lib/libvcc/vcc_expr.c:1082: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 buf[128];
data/varnish-6.5.1/lib/libvcc/vcc_expr.c:1102: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 buf[256];
data/varnish-6.5.1/lib/libvcc/vcc_expr.c:1119: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 buf[128];
data/varnish-6.5.1/lib/libvcc/vcc_expr.c:1268: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 buf[32];
data/varnish-6.5.1/lib/libvcc/vcc_expr.c:1466: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 buf[128];
data/varnish-6.5.1/lib/libvcc/vcc_fixed_token.c:79: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.
const char * const vcl_tnames[256] = {
data/varnish-6.5.1/lib/libvcc/vcc_storage.c:69: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 buf[1024];
data/varnish-6.5.1/lib/libvcc/vcc_symb.c:380: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(t, tl->t, sizeof *t);
data/varnish-6.5.1/lib/libvcc/vcc_token.c:358: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(q, tl->t->b + 1, l);
data/varnish-6.5.1/lib/libvcc/vcc_token.c:396: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 namebuf[40];
data/varnish-6.5.1/lib/libvcc/vcc_token.c:479:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(tl->t->dec, tl->t->b + 2, u);
data/varnish-6.5.1/lib/libvcc/vcc_utils.c:55: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 buf[BUFSIZ];
data/varnish-6.5.1/lib/libvcc/vcc_utils.c:105: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 a[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/lib/libvcc/vcc_utils.c:106: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 p[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/lib/libvcc/vcc_utils.c:122: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(b, vsa, vsa_suckaddr_len);
data/varnish-6.5.1/lib/libvcc/vcc_utils.c:162: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 a[VTCP_ADDRBUFSIZE];
data/varnish-6.5.1/lib/libvcc/vcc_utils.c:163: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 p[VTCP_PORTBUFSIZE];
data/varnish-6.5.1/lib/libvcc/vcc_utils.c:348: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 buf[l + 1];
data/varnish-6.5.1/lib/libvcc/vcc_utils.c:355: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(buf, tl->t->b, l);
data/varnish-6.5.1/lib/libvcc/vcc_vmod.c:173: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 buf[256];
data/varnish-6.5.1/lib/libvcc/vcc_vmod.c:301: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 fn[1024], *fnpx;
data/varnish-6.5.1/lib/libvgz/crc32.c:143: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).
        out = fopen("crc32.h", "w");
data/varnish-6.5.1/lib/libvgz/gzguts.h:47: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).
#  define open _open
data/varnish-6.5.1/lib/libvgz/inflate.c:647: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 hbuf[4];      /* buffer for gzip header crc calculation */
data/varnish-6.5.1/lib/libvgz/inflate.c:1419: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[4];       /* to restore bit buffer to byte string */
data/varnish-6.5.1/lib/libvgz/trees.c:328: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).
    FILE *header = fopen("trees.h", "w");
data/varnish-6.5.1/lib/libvgz/zutil.c:13: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.
z_const char * const z_errmsg[10] = {
data/varnish-6.5.1/lib/libvgz/zutil.h:49:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
data/varnish-6.5.1/lib/libvgz/zutil.h:109:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
     fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
data/varnish-6.5.1/lib/libvgz/zutil.h:202:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#  define F_OPEN(name, mode) fopen((name), (mode))
data/varnish-6.5.1/lib/libvgz/zutil.h:226: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.
#    define zmemcpy memcpy
data/varnish-6.5.1/lib/libvmod_blob/base64.c:43: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.
	const char b64[64];
data/varnish-6.5.1/lib/libvmod_blob/id.c:67: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(buf, in, inlen);
data/varnish-6.5.1/lib/libvmod_blob/id.c:99:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, s, len);
data/varnish-6.5.1/lib/libvmod_blob/vmod_blob.c:46: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 *encoding[__MAX_ENCODING][2];
data/varnish-6.5.1/lib/libvmod_blob/vmod_blob.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 empty[1] = { '\0' };
data/varnish-6.5.1/lib/libvmod_blob/vmod_blob.c:234: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(&b->blob, null_blob, sizeof b->blob);
data/varnish-6.5.1/lib/libvmod_blob/vmod_blob.c:442: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 buf[l];
data/varnish-6.5.1/lib/libvmod_debug/vmod_debug.c:277: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 buf[100];
data/varnish-6.5.1/lib/libvmod_debug/vmod_debug.c:394: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 buf[32];
data/varnish-6.5.1/lib/libvmod_debug/vmod_debug.c:448: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 buf[32];
data/varnish-6.5.1/lib/libvmod_debug/vmod_debug_obj.c:196: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(&o->args, args, sizeof o->args);
data/varnish-6.5.1/lib/libvmod_directors/shard_cfg.c:249: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[len];
data/varnish-6.5.1/lib/libvmod_directors/shard_cfg.c:251: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.
	const char *ssp[2];
data/varnish-6.5.1/lib/libvmod_directors/shard_cfg.c:507: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(&bb[re->hole_i], &bb[i], sizeof(*bb));
data/varnish-6.5.1/lib/libvmod_directors/shard_dir.c:417: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 picklist_spc[picklist_sz];
data/varnish-6.5.1/lib/libvmod_directors/vmod_shard.c:376: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.
	const char *sp[1];
data/varnish-6.5.1/lib/libvmod_proxy/vmod_proxy.c:115:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(d, dst, len);
data/varnish-6.5.1/lib/libvmod_std/vmod_std_querysort.c:124: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, pp[i], pp[i + 1] - pp[i]);
data/varnish-6.5.1/lib/libvmod_unix/cred_compat.h:97: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 buf[ucred_size()];
data/varnish-6.5.1/lib/libvmod_vtc/vmod_vtc.c:50: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 buf[32];
data/varnish-6.5.1/lib/libvmod_vtc/vmod_vtc.c:246: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 buf[maxlen];
data/varnish-6.5.1/lib/libvmod_vtc/vmod_vtc.c:287: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(buf, p, l);
data/varnish-6.5.1/bin/varnishadm/varnishadm.c:84:6:  [1] (buffer) strlen:
  Does not handle 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(s);
data/varnish-6.5.1/bin/varnishadm/varnishadm.c:219: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(text);
data/varnish-6.5.1/bin/varnishadm/varnishadm.c:300:8:  [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.
			if (sscanf(t, "%127s", c) == 1) {
data/varnish-6.5.1/bin/varnishadm/varnishadm.c:359:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(fds[1].fd, buf, sizeof buf - 1);
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:355:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(lport, "0");
data/varnish-6.5.1/bin/varnishd/cache/cache_acceptor.c:356:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(rport, "0");
data/varnish-6.5.1/bin/varnishd/cache/cache_backend.c:568: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).
	VSHA256_Update(cx, vbe_proto_ident, strlen(vbe_proto_ident));
data/varnish-6.5.1/bin/varnishd/cache/cache_backend.c:574: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).
		VSHA256_Update(cx, vrt->path, strlen(vrt->path));
data/varnish-6.5.1/bin/varnishd/cache/cache_backend_probe.c:272: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).
	return (vbp_write(vt, sock, buf, strlen(buf)));
data/varnish-6.5.1/bin/varnishd/cache/cache_backend_probe.c:370:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(s, vt->resp_buf + rlen,
data/varnish-6.5.1/bin/varnishd/cache/cache_backend_probe.c:373:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(s, buf, sizeof buf);
data/varnish-6.5.1/bin/varnishd/cache/cache_ban.c:571: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).
			    pcre_exec(bt.arg2_spec, NULL, arg1, strlen(arg1),
data/varnish-6.5.1/bin/varnishd/cache/cache_ban.c:577: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).
			    pcre_exec(bt.arg2_spec, NULL, arg1, strlen(arg1),
data/varnish-6.5.1/bin/varnishd/cache/cache_ban.c:777:10:  [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.
		(void) strncpy(buf, "0s", sizeof(buf));			\
data/varnish-6.5.1/bin/varnishd/cache/cache_ban_build.c:174:6:  [1] (buffer) strlen:
  Does not handle 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(a1) + 1;
data/varnish-6.5.1/bin/varnishd/cache/cache_ban_build.c:240: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 (!strncmp(a1, pv->name, strlen(pv->name)))
data/varnish-6.5.1/bin/varnishd/cache/cache_ban_build.c:252: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).
		ban_parse_http(bp, a1 + strlen(pv->name));
data/varnish-6.5.1/bin/varnishd/cache/cache_ban_build.c:266: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).
		ban_add_lump(bp, a3, strlen(a3) + 1);
data/varnish-6.5.1/bin/varnishd/cache/cache_esi_parse.c:229: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).
		assert(strlen(vm->match) <= sizeof (vep->tag));
data/varnish-6.5.1/bin/varnishd/cache/cache_esi_parse.c:938: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).
					p += strlen(vm->match);
data/varnish-6.5.1/bin/varnishd/cache/cache_esi_parse.c:976: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).
					i = strlen(vm->match);
data/varnish-6.5.1/bin/varnishd/cache/cache_hash.c:193: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).
		VSHA256_Update(ctx, str, strlen(str));
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:308: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).
	assert(l == strlen(hdr + 1));
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:385: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).
	lsep = strlen(sep);
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:388: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).
	assert(l == strlen(hdr + 1));
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:462: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).
	assert(l == strlen(hdr + 1));
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:540: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).
	int fl = strlen(token);
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:759: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(a) == u && !strncasecmp(a, b, u))	\
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:1062: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).
	assert(l == strlen(hdr + 1));
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:1274: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 = WS_Alloc(to->ws, strlen(fmt) + VTIM_FORMAT_SIZE);
data/varnish-6.5.1/bin/varnishd/cache/cache_http.c:1313: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).
#define HTTPH(a, b, c) b[0] = (char)strlen(b + 1);
data/varnish-6.5.1/bin/varnishd/cache/cache_lck.c:79:2:  [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(q, " ");
data/varnish-6.5.1/bin/varnishd/cache/cache_lck.c:82:2:  [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(q, ",");
data/varnish-6.5.1/bin/varnishd/cache/cache_lck.c:84:2:  [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(q, ",");
data/varnish-6.5.1/bin/varnishd/cache/cache_lck.c:104: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 (memcmp(r, il->w, strlen(il->w)))
data/varnish-6.5.1/bin/varnishd/cache/cache_panic.c:243: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(oc->stobj->stevedore->ident))
data/varnish-6.5.1/bin/varnishd/cache/cache_panic.c:646: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 (!memcmp(buf, p, strlen(buf))) {
data/varnish-6.5.1/bin/varnishd/cache/cache_panic.c:647:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				p += strlen(buf);
data/varnish-6.5.1/bin/varnishd/cache/cache_pool.c:159:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void)usleep(10000);
data/varnish-6.5.1/bin/varnishd/cache/cache_pool.c:252:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void)usleep(10000);
data/varnish-6.5.1/bin/varnishd/cache/cache_session.c:174: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).
	if (! ses_res_attr(sp, a, &q, strlen(src) + 1))
data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c:59: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).
		r += strlen(s->p[i]);
data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c:83: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).
		ll = strlen(s->p[i]);
data/varnish-6.5.1/bin/varnishd/cache/cache_shmlog.c:272: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).
		vslr(tag, vxid, fmt, strlen(fmt) + 1);
data/varnish-6.5.1/bin/varnishd/cache/cache_tcp_pool.c:299:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void)usleep(20000);
data/varnish-6.5.1/bin/varnishd/cache/cache_tcp_pool.c:366:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void)usleep(10000);
data/varnish-6.5.1/bin/varnishd/cache/cache_tcp_pool.c:656: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).
	assert(alen > strlen("0.0.0.0"));
data/varnish-6.5.1/bin/varnishd/cache/cache_tcp_pool.c:659:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(pbuf, "0");
data/varnish-6.5.1/bin/varnishd/cache/cache_vary.c:388: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).
		assert(strlen((const char*)vary+3) == vary[2]);
data/varnish-6.5.1/bin/varnishd/cache/cache_vcl.c:960: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).
			    i, strlen(vcl->conf->srcbody[i]),
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt.c:317: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).
			VSHA256_Update(&sha_ctx, p, strlen(p));
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt.c:343: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).
			x = strlen(p);
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt.c:410: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).
		x = strlen(h);
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt.c:467: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).
			x = strlen(s->p[i]);
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt.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).
	WS_Release(ctx->ws, strlen(p) + 1);
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_filter.c:93: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).
	vp->nlen = strlen(vp->name);
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_filter.c:124: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).
	vp->nlen = strlen(vp->name);
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_re.c:88: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).
	i = VRE_exec(t, s, strlen(s), 0, 0, NULL, 0, &cache_param->vre_limits);
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_re.c:120: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(str);
data/varnish-6.5.1/bin/varnishd/cache/cache_vrt_vcl.c:83:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void)usleep(100000);
data/varnish-6.5.1/bin/varnishd/cache/cache_ws.c:89: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(p) + 1;
data/varnish-6.5.1/bin/varnishd/cache/cache_ws.c:222: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(str) + 1;
data/varnish-6.5.1/bin/varnishd/common/common_vsmw.c:154: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).
	assert(write(fd, buf, strlen(buf)) == strlen(buf));
data/varnish-6.5.1/bin/varnishd/common/common_vsmw.c:154: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).
	assert(write(fd, buf, strlen(buf)) == strlen(buf));
data/varnish-6.5.1/bin/varnishd/hpack/vhp_decode.c:645: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).
		l = strlen(m);
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:310: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(buf);
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:328: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(buf);
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:522: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 (e->namelen != strlen(a) ||
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:525: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 (e->valuelen != strlen(b) ||
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:574: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).
	assert(l == strlen(":authority"));
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:575: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).
	AZ(strncmp(p, ":authority", strlen(":authority")));
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:582: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).
	assert(l == strlen("/index.html"));
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:583: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).
	AZ(strncmp(p, "/index.html", strlen("/index.html")));
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:587: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).
	assert(l == strlen("www-authenticate"));
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:588: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).
	AZ(strncmp(p, "www-authenticate", strlen("www-authenticate")));
data/varnish-6.5.1/bin/varnishd/hpack/vhp_table.c:742: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).
	VHT_AppendName(tbl, longname, strlen(longname));
data/varnish-6.5.1/bin/varnishd/http1/cache_http1_fsm.c:194:6:  [1] (buffer) strlen:
  Does not handle 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(buf);
data/varnish-6.5.1/bin/varnishd/http1/cache_http1_line.c:189: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).
			i = strlen(cbuf);
data/varnish-6.5.1/bin/varnishd/http1/cache_http1_line.c:267: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(ptr);
data/varnish-6.5.1/bin/varnishd/http1/cache_http1_pipe.c:53:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = read(fd0, buf, sizeof buf);
data/varnish-6.5.1/bin/varnishd/http1/cache_http1_pipe.c:62:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			(void)usleep(100000);		/* XXX hack */
data/varnish-6.5.1/bin/varnishd/http1/cache_http1_vfp.c:77:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(*htc->rfd, p, len);
data/varnish-6.5.1/bin/varnishd/http2/cache_http2_session.c:257: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).
	sz = write(h2->sess->fd, h2_resp_101, strlen(h2_resp_101));
data/varnish-6.5.1/bin/varnishd/http2/cache_http2_session.c:258: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).
	if (sz != strlen(h2_resp_101)) {
data/varnish-6.5.1/bin/varnishd/mgt/mgt_cli.c:152: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).
		VSB_quote(cli_buf, av[i], strlen(av[i]), 0);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_cli.c:484: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).
	mgt_SHM_static_alloc(S_arg, strlen(S_arg) + 1L, "Arg", "-S");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_cli.c:494:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = read(fd, buf, sizeof buf);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_cli.c:708: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).
		for (j = 0; j < strlen(cp->syntax); j++)
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:340:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	sz = read(eric_pipes[0], &u, sizeof u);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_main.c:845: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).
	mgt_SHM_static_alloc(i_arg, strlen(i_arg) + 1L, "Arg", "-i");
data/varnish-6.5.1/bin/varnishd/mgt/mgt_param.c:573: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).
		if ((int)strlen(pp->name) + 1 > margin2)
data/varnish-6.5.1/bin/varnishd/mgt/mgt_param.c:574: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).
			margin2 = (int)strlen(pp->name) + 1;
data/varnish-6.5.1/bin/varnishd/mgt/mgt_param.c:763: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).
		for (z = 0; z < strlen(pp->name); z++)
data/varnish-6.5.1/bin/varnishd/mgt/mgt_symtab.c:100:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		sz = read(fi, buf, sizeof buf);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_util.c:91:6:  [1] (buffer) strlen:
  Does not handle 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(tag);
data/varnish-6.5.1/bin/varnishd/mgt/mgt_vcc.c:172:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(027);
data/varnish-6.5.1/bin/varnishd/proxy/cache_proxy_proto.c:653: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).
		l_authority = strlen(authority);
data/varnish-6.5.1/bin/varnishd/storage/mgt_storage_persistent.c:201:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = read(sc->fd, &sgn, sizeof sgn);
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent_subr.c:76: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).
	assert(strlen(id) < sizeof ctx->ss->ident);
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent_subr.c:147: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).
	assert(strlen(ctx->id) < sizeof *ctx->ss);
data/varnish-6.5.1/bin/varnishd/storage/storage_persistent_subr.c:335: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).
	assert(strlen(SMP_IDENT_STRING) < sizeof si->ident);
data/varnish-6.5.1/bin/varnishd/storage/storage_umem.c:403: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).
	char ident[strlen(st->ident) + 1];
data/varnish-6.5.1/bin/varnishd/waiter/cache_waiter_epoll.c:129:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				assert(read(vwe->pipe[0], &c, 1) == 1);
data/varnish-6.5.1/bin/varnishd/waiter/cache_waiter_kqueue.c:117:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				assert(read(vwk->pipe[0], &c, 1) == 1);
data/varnish-6.5.1/bin/varnishd/waiter/cache_waiter_poll.c:137:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ss = read(vwp->pipes[0], w, sizeof w);
data/varnish-6.5.1/bin/varnishd/waiter/cache_waiter_poll.c:262:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void)usleep(100000);
data/varnish-6.5.1/bin/varnishhist/varnishhist.c:292: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).
				    strlen(active_profile->prefix)) != 0)
data/varnish-6.5.1/bin/varnishncsa/b64.c:39: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).
		e = s + strlen(s);
data/varnish-6.5.1/bin/varnishncsa/varnishncsa.c:714:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buf, p, q - p);
data/varnish-6.5.1/bin/varnishncsa/varnishncsa.c:965: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).
#define ISPREFIX(a, b, c, d)	isprefix(a, strlen(a), b, c, d)
data/varnish-6.5.1/bin/varnishstat/varnishstat_curses.c:756:6:  [1] (buffer) strlen:
  Does not handle 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->vpt->name) > colw_name)
data/varnish-6.5.1/bin/varnishstat/varnishstat_curses.c:864: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).
	mvwprintw(w_bar_b, 0, X - strlen(buf), "%s", buf);
data/varnish-6.5.1/bin/varnishstat/varnishstat_curses.c:865: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).
	X -= strlen(buf) + 2;
data/varnish-6.5.1/bin/varnishstat/varnishstat_curses.c:868: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).
		mvwprintw(w_bar_b, 0, X - strlen(verbosity->label), "%s",
data/varnish-6.5.1/bin/varnishstat/varnishstat_curses.c:870: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).
		X -= strlen(verbosity->label) + 2;
data/varnish-6.5.1/bin/varnishtest/vtc_barrier.c:313:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	sz = read(sock, buf, sizeof buf); /* XXX loop with timeout? */
data/varnish-6.5.1/bin/varnishtest/vtc_gzip.c:106: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).
	VSB_bcat(vin, input, strlen(input));
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:326: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).
	i = VRE_exec(vre, hc->rxbuf, strlen(hc->rxbuf), 0, 0, NULL, 0, 0);
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:439:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(usleep_time);
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:447:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(usleep_time);
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:454:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(usleep_time);
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:800:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(100000);
data/varnish-6.5.1/bin/varnishtest/vtc_haproxy.c:822: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).
#define HAPROXY_BE_FD_STRLEN  strlen(HAPROXY_BE_FD_STR)
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:235:6:  [1] (buffer) strlen:
  Does not handle 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(hdr);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:256:6:  [1] (buffer) strlen:
  Does not handle 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(hdr);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:518:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(hp->fd, hp->rx_p, n);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:817: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).
			bodylen = strlen(body);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:840: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).
			bodylen = strlen(body);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1274:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(hp->fd, u, n > 32 ? 32 : n);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1302: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).
	i = write(hp->fd, av[1], strlen(av[1]));
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1303: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).
	if (i != strlen(av[1]))
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1328:6:  [1] (buffer) strlen:
  Does not handle 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(av[2]);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1356: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 = send(hp->fd, av[1], strlen(av[1]), MSG_OOB);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1357: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).
	if (i != strlen(av[1]))
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1408: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).
	    (uintmax_t)strlen(av[1]), nl, av[1], nl);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1512:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(hp->fd, &c, 1);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1649:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(10000);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1890:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(hp->rem_port, "0");
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1944: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).
			vz.avail_in = strlen(ibuf);
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1951: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).
			if (fl[i] > strlen(ibuf)) {
data/varnish-6.5.1/bin/varnishtest/vtc_http.c:1953: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).
				fl[i] = strlen(ibuf);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:191:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(hp->fd, buf, n);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:901: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).
	int kl = strlen(k);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1267: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).
	hdr.key.len = strlen(k);			\
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1271: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).
	hdr.value.len = strlen(v);			\
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1287: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).
	hdr.field.len = strlen(*av);					       \
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1549: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).
				bodylen = strlen(body);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1565: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).
				bodylen = strlen(body);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1633: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(pad) >= 128)
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1636: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).
		assert(f.size + strlen(pad) < BUF_SIZE);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1638: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).
		buf[0] = strlen(pad);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1640: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).
		memcpy(buf + f.size, pad, strlen(pad));
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1641: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).
		f.size += strlen(pad);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1727: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(pad) >= 128)
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1729: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).
		data = malloc( 1 + strlen(body) + strlen(pad));
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1729: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).
		data = malloc( 1 + strlen(body) + strlen(pad));
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1731: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).
		*((uint8_t *)data) = strlen(pad);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1733: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).
		memcpy(data + f.size, body, strlen(body));
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1734: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).
		f.size += strlen(body);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1735: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).
		memcpy(data + f.size, pad, strlen(pad));
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1736: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).
		f.size += strlen(pad);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1739: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).
		f.size = strlen(body);
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:1975: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).
			if (strlen(*av) != 8)
data/varnish-6.5.1/bin/varnishtest/vtc_http2.c:2039: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).
			f.size = 8 + strlen(*av);
data/varnish-6.5.1/bin/varnishtest/vtc_log.c:230: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).
			len = strlen(str);
data/varnish-6.5.1/bin/varnishtest/vtc_logexp.c:476: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).
		tag = VSL_Name2Tag(av[3], strlen(av[3]));
data/varnish-6.5.1/bin/varnishtest/vtc_logexp.c:592: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).
			i = VSLQ_Name2Grouping(av[1], strlen(av[1]));
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:211: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).
	AZ(memcmp(dirname, tmppath, strlen(tmppath)));
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:214: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).
		assert(write(cleaner_fd, buf, strlen(buf)) == strlen(buf));
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:214: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).
		assert(write(cleaner_fd, buf, strlen(buf)) == strlen(buf));
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:240: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).
			AZ(memcmp(buf, tmppath, strlen(tmppath)));
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:241: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).
			q = buf + strlen(buf);
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:307:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = read(ve->fd, buf, sizeof buf);
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:485: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).
		if (strncmp(de->d_name, pfx, strlen(pfx)))
data/varnish-6.5.1/bin/varnishtest/vtc_main.c:813:11:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				(void)usleep(random() % 100000L);
data/varnish-6.5.1/bin/varnishtest/vtc_misc.c:173:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = getc(fp);
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:271: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 (!memcmp(t, pat, strlen(pat)))
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:305:6:  [1] (buffer) strlen:
  Does not handle 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(pat);
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:314:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(d);
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:475:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = read(p->fd_term, buf, sizeof buf);
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:505:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = read(p->fd_stderr, buf, sizeof buf);
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:704:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	assert(read(fd2[0], &c, 1) == 1);
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:787: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(text);
data/varnish-6.5.1/bin/varnishtest/vtc_process.c:1023:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(500000);
data/varnish-6.5.1/bin/varnishtest/vtc_server.c:172:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	m = umask(0);
data/varnish-6.5.1/bin/varnishtest/vtc_server.c:174:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(m);
data/varnish-6.5.1/bin/varnishtest/vtc_subr.c:105: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 = VRE_exec(vre, lhs, strlen(lhs), 0, 0, NULL, 0, 0);
data/varnish-6.5.1/bin/varnishtest/vtc_subr.c:194:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fd, buf, sizeof buf - 1);
data/varnish-6.5.1/bin/varnishtest/vtc_syslog.c:392: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).
	i = VRE_exec(vre, s->rxbuf, strlen(s->rxbuf), 0, 0, NULL, 0, 0);
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:112: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).
		i = write(v->cli_fd, cmd, strlen(cmd));
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:113: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).
		if (i != strlen(cmd) && !vtc_stop)
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:156:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void)usleep(200000);
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:190:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void)usleep(200000);
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:519:2:  [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(abuf, "\n");
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:723: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).
		err = VRE_exec(vre, resp, strlen(resp), 0, 0, NULL, 0, NULL);
data/varnish-6.5.1/bin/varnishtest/vtc_varnish.c:920:33:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	for (i = 0; i < 50; i++, (void)usleep(100000)) {
data/varnish-6.5.1/bin/varnishtop/varnishtop.c:207: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 = COLS - strlen(q);
data/varnish-6.5.1/bin/varnishtop/varnishtop.c:249: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 (maxfieldlen < strlen(VSL_tags[i]))
data/varnish-6.5.1/bin/varnishtop/varnishtop.c:250: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).
			maxfieldlen = strlen(VSL_tags[i]);
data/varnish-6.5.1/include/vdef.h:64: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).
		assert(strlen(src) + 1 <= sizeof (dst));		\
data/varnish-6.5.1/lib/libvarnish/vcli_proto.c:63:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(S_fd, buf, 1);
data/varnish-6.5.1/lib/libvarnish/vcli_proto.c:89: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(result);
data/varnish-6.5.1/lib/libvarnish/vcli_proto.c:133:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fd, ptr, len);
data/varnish-6.5.1/lib/libvarnish/vcli_serve.c:339: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).
		assert(strlen(s) <= lim);
data/varnish-6.5.1/lib/libvarnish/vcli_serve.c:599:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(cfd->fdi, buf, sizeof buf);
data/varnish-6.5.1/lib/libvarnish/vfil.c:90:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = read(fd, f, st.st_size + 1);
data/varnish-6.5.1/lib/libvarnish/vin.c:63: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).
	} else if (strlen(n_arg) >= sizeof nm) {
data/varnish-6.5.1/lib/libvarnish/vjsn.c:479: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(jsv->value) < 20)
data/varnish-6.5.1/lib/libvarnish/vjsn.c:483: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).
			    jsv->value, strlen(jsv->value + 10));
data/varnish-6.5.1/lib/libvarnish/vlu.c:131:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = read(fd, l->buf + l->bufp, l->bufl - l->bufp);
data/varnish-6.5.1/lib/libvarnish/vpf.c:84:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = read(fd, buf, sizeof(buf) - 1);
data/varnish-6.5.1/lib/libvarnish/vpf.c:162: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(pwrite(pfh->pf_fd, pidstr, strlen(pidstr), 0) ==
data/varnish-6.5.1/lib/libvarnish/vpf.c:163: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).
	    (ssize_t)strlen(pidstr));
data/varnish-6.5.1/lib/libvarnish/vrnd.c:179:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		l = read(fd, p, len);
data/varnish-6.5.1/lib/libvarnish/vsb.c:562: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(v);
data/varnish-6.5.1/lib/libvarnish/vsha256.c:356: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).
		VSHA256_Update(&c, p->input, strlen(p->input));
data/varnish-6.5.1/lib/libvarnish/vtcp.c:611:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = read(fd, ptr, len);
data/varnish-6.5.1/lib/libvarnish/vtim.c:313: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(more_weekday[weekday]))) {
data/varnish-6.5.1/lib/libvarnish/vtim.c:315: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).
			p += strlen(more_weekday[weekday]);
data/varnish-6.5.1/lib/libvarnish/vtim.c:415:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void)usleep(floor(t));
data/varnish-6.5.1/lib/libvarnish/vus.c:56:6:  [1] (buffer) strlen:
  Does not handle 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(path) + 1 > sizeof(uds.sun_path)) {
data/varnish-6.5.1/lib/libvarnishapi/vsc.c:351:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(100000);
data/varnish-6.5.1/lib/libvarnishapi/vsl_arg.c:67: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).
		l = strlen(name);
data/varnish-6.5.1/lib/libvarnishapi/vsl_arg.c:72: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).
			if (strlen(VSL_tags[i]) == l) {
data/varnish-6.5.1/lib/libvarnishapi/vsl_arg.c:191: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).
		l = strlen(name);
data/varnish-6.5.1/lib/libvarnishapi/vsl_arg.c:195: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).
			if (strlen(VSLQ_grouping[i]) == l) {
data/varnish-6.5.1/lib/libvarnishapi/vsl_arg.c:331:6:  [1] (buffer) strlen:
  Does not handle 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) > sizeof(buf) - 2)
data/varnish-6.5.1/lib/libvarnishapi/vsl_arg.c:334: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, "1");
data/varnish-6.5.1/lib/libvarnishapi/vsl_cursor.c:338:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		l = read(fd, (char *)buf + t, n - t);
data/varnish-6.5.1/lib/libvarnishapi/vsl_dispatch.c:698:6:  [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.
	i = sscanf(str, "%15s %u %15s", type, &vxid, reason);
data/varnish-6.5.1/lib/libvarnishapi/vut.c:519: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).
	e = s + strlen(s);
data/varnish-6.5.1/lib/libvarnishapi/vxp.c:210: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).
	vxp->e = query + strlen(query);
data/varnish-6.5.1/lib/libvarnishapi/vxp_parse.c:161: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).
		(*plhs)->prefixlen = strlen((*plhs)->prefix);
data/varnish-6.5.1/lib/libvarnishapi/vxp_parse.c:256: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).
	(*prhs)->val_stringlen = strlen((*prhs)->val_string);
data/varnish-6.5.1/lib/libvarnishapi/vxp_parse.c:670: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).
			assert(vex->lhs->prefixlen == strlen(vex->lhs->prefix));
data/varnish-6.5.1/lib/libvcc/vcc_compile.c:93: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 = TlAlloc(tl, strlen(s) + 1);
data/varnish-6.5.1/lib/libvcc/vcc_expr.c:610: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).
			vcc_do_enum(tl, fa, strlen(fa->val), fa->val);
data/varnish-6.5.1/lib/libvcc/vcc_symb.c:151: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).
	st->nlen = strlen(st->name);
data/varnish-6.5.1/lib/libvcc/vcc_var.c:48:6:  [1] (buffer) strlen:
  Does not handle 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(sym->name) >= 127) {
data/varnish-6.5.1/lib/libvcc/vcc_var.c:74: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).
	    parent->rname, (unsigned int)strlen(sym->name) + 1, sym->name);
data/varnish-6.5.1/lib/libvcc/vcc_xref.c:393: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(sym->type->name);
data/varnish-6.5.1/lib/libvgz/gzguts.h:48:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  define read _read
data/varnish-6.5.1/lib/libvmod_blob/id.c:91: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(s);
data/varnish-6.5.1/lib/libvmod_blob/vmod_blob.c:146: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(s->p[i]);
data/varnish-6.5.1/lib/libvmod_cookie/vmod_cookie.c:291: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).
		i = VRE_exec(vre, current->name, strlen(current->name), 0, 0,
data/varnish-6.5.1/lib/libvmod_cookie/vmod_cookie.c:442: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(current->name), 0, 0, ovector, VRE_MAX_GROUPS, NULL);
data/varnish-6.5.1/lib/libvmod_debug/vmod_debug.c:226: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(priv->priv) + strlen(s) + 2);
data/varnish-6.5.1/lib/libvmod_debug/vmod_debug.c:226: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).
		    strlen(priv->priv) + strlen(s) + 2);
data/varnish-6.5.1/lib/libvmod_debug/vmod_debug.c:229: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(n, " ");
data/varnish-6.5.1/lib/libvmod_debug/vmod_debug.c:667: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).
			sz += strlen(s->p[i]);
data/varnish-6.5.1/lib/libvmod_debug/vmod_debug.c:702: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).
		WS_Assert_Allocated(ctx->ws, r, strlen(r) + 1);
data/varnish-6.5.1/lib/libvmod_debug/vmod_debug.c:714: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).
		WS_Assert_Allocated(ctx->ws, r, strlen(r) + 1);
data/varnish-6.5.1/lib/libvmod_debug/vmod_debug.c:738: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).
				WS_Assert_Allocated(hp->ws, b, strlen(b) + 1);

ANALYSIS SUMMARY:

Hits = 883
Lines analyzed = 138677 in approximately 3.61 seconds (38406 lines/second)
Physical Source Lines of Code (SLOC) = 95763
Hits@level = [0] 458 [1] 253 [2] 476 [3]  27 [4] 122 [5]   5
Hits@level+ = [0+] 1341 [1+] 883 [2+] 630 [3+] 154 [4+] 127 [5+]   5
Hits/KSLOC@level+ = [0+] 14.0033 [1+] 9.22068 [2+] 6.57874 [3+] 1.60814 [4+] 1.32619 [5+] 0.0522122
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.