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/r-cran-git2r-0.27.1/tools/version.c
Examining data/r-cran-git2r-0.27.1/src/git2r_commit.c
Examining data/r-cran-git2r-0.27.1/src/git2r_clone.h
Examining data/r-cran-git2r-0.27.1/src/git2r_status.c
Examining data/r-cran-git2r-0.27.1/src/git2r_oid.h
Examining data/r-cran-git2r-0.27.1/src/git2r_revparse.h
Examining data/r-cran-git2r-0.27.1/src/git2r_commit.h
Examining data/r-cran-git2r-0.27.1/src/git2r_tag.h
Examining data/r-cran-git2r-0.27.1/src/git2r_push.c
Examining data/r-cran-git2r-0.27.1/src/git2r_repository.c
Examining data/r-cran-git2r-0.27.1/src/git2r_oid.c
Examining data/r-cran-git2r-0.27.1/src/git2r_odb.h
Examining data/r-cran-git2r-0.27.1/src/git2r_arg.h
Examining data/r-cran-git2r-0.27.1/src/git2r_cred.h
Examining data/r-cran-git2r-0.27.1/src/git2r_branch.h
Examining data/r-cran-git2r-0.27.1/src/git2r_reference.c
Examining data/r-cran-git2r-0.27.1/src/git2r_index.c
Examining data/r-cran-git2r-0.27.1/src/git2r_deprecated.h
Examining data/r-cran-git2r-0.27.1/src/git2r_error.c
Examining data/r-cran-git2r-0.27.1/src/git2r_config.h
Examining data/r-cran-git2r-0.27.1/src/git2r_merge.h
Examining data/r-cran-git2r-0.27.1/src/git2r_note.h
Examining data/r-cran-git2r-0.27.1/src/git2r_reflog.h
Examining data/r-cran-git2r-0.27.1/src/git2r_signature.h
Examining data/r-cran-git2r-0.27.1/src/git2r_reset.c
Examining data/r-cran-git2r-0.27.1/src/git2r_graph.c
Examining data/r-cran-git2r-0.27.1/src/git2r_reflog.c
Examining data/r-cran-git2r-0.27.1/src/git2r_revwalk.c
Examining data/r-cran-git2r-0.27.1/src/git2r_S3.h
Examining data/r-cran-git2r-0.27.1/src/git2r_odb.c
Examining data/r-cran-git2r-0.27.1/src/git2r_libgit2.c
Examining data/r-cran-git2r-0.27.1/src/git2r_arg.c
Examining data/r-cran-git2r-0.27.1/src/git2r_revwalk.h
Examining data/r-cran-git2r-0.27.1/src/git2r_signature.c
Examining data/r-cran-git2r-0.27.1/src/git2r_remote.c
Examining data/r-cran-git2r-0.27.1/src/git2r_branch.c
Examining data/r-cran-git2r-0.27.1/src/git2r_reset.h
Examining data/r-cran-git2r-0.27.1/src/git2r_graph.h
Examining data/r-cran-git2r-0.27.1/src/git2r_S3.c
Examining data/r-cran-git2r-0.27.1/src/git2r_config.c
Examining data/r-cran-git2r-0.27.1/src/git2r_diff.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/config.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/commit.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/reflog.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/rebase.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/indexer.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/refspec.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/repository.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/checkout.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/describe.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/status.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/transaction.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/merge.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/oid.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/proxy.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/remote.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/deprecated.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/reset.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/message.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/mailmap.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/stash.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/clone.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/tree.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/notes.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/apply.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/graph.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/cherrypick.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/global.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/refs.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/types.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/index.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/cred_helpers.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/annotated_commit.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/strarray.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/version.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/transport.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/pack.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/oidarray.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/trace.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/attr.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/revert.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/tag.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/refdb.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/pathspec.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/odb_backend.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/net.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/blob.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/signature.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/ignore.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/refdb_backend.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/config.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/commit.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/reflog.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/repository.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/merge.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/hashsig.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/mempack.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/refs.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/index.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/alloc.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/transport.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/path.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/stream.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/odb_backend.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/openssl.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/diff.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/filter.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/time.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/diff.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/buffer.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/filter.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/submodule.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/branch.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/common.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/odb.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/blame.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/revparse.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/worktree.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/object.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/patch.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/revwalk.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2/errors.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/include/git2.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/sha1_lookup.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/khash.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/parse.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/blame_git.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/config.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/sysdir.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/commit.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/config_parse.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/map.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/reflog.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/refspec.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/repository.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/checkout.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/patch.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/push.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/tree-cache.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/sortedcache.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/object_api.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/status.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transaction.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/unix/pthread.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/unix/map.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/unix/realpath.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/unix/posix.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/merge.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/varint.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/attr_file.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/object.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/stdalloc.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/revwalk.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/config_mem.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/posix.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/trace.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/oid.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/strnlen.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/util.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/merge_driver.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/proxy.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/filter.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/mailmap.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/netops.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/attrcache.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/config_entries.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/remote.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/attr_file.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/thread-utils.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/tag.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/message.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/auth.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/local.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/auth_negotiate.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/winhttp.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/auth.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/cred_helpers.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/http.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/http.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/git.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/cred.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transports/cred.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/oidmap.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/tree-cache.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/blame.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_generate.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/hash.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/pool.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/mailmap.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/oidarray.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/apply.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/reader.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/status.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/pqueue.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/hash.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/revparse.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/parse.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/thread-utils.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/notes.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_file.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/mwindow.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/clone.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/cache.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/tree.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/notes.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_parse.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/sortedcache.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xprepare.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xemit.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xemit.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xdiff.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xmerge.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xinclude.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xpatience.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xutils.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xprepare.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xdiffi.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xtypes.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xhistogram.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xutils.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xdiffi.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xmacros.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/apply.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/stdalloc.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/errors.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/date.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/pool.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/pqueue.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/config_entries.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/config_cache.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/global.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_stats.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/refs.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/attrcache.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/index.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/buf_text.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/attr.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_tform.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/blame_git.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_generate.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/pathspec.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/vector.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/repository.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/idxmap.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/alloc.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_file.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/annotated_commit.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/config.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/oid.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/refdb.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/crlf.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/config_backend.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/rebase.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/patch_parse.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/fnmatch.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/pack.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/odb_pack.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/cherrypick.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/hashsig.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/oidarray.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/trace.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/path.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/mwindow.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/array.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/fileops.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/fetchhead.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/attr.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/reset.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/offmap.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_parse.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/path.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/tag.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_xdiff.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/refdb.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/delta.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/merge_driver.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/pathspec.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/streams/tls.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/streams/registry.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/streams/openssl.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/streams/tls.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/streams/stransport.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/streams/stransport.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/streams/socket.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/streams/mbedtls.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/streams/openssl.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/streams/mbedtls.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/streams/registry.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/streams/socket.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/worktree.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/stream.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/fetch.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/varint.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transport.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/bitvec.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/iterator.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/ignore.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/revert.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/checkout.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/push.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/annotated_commit.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/iterator.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/zstream.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/trailer.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/index.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/pack-objects.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/message.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/filebuf.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/netops.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/strmap.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/blob.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_tform.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/signature.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/ignore.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/sha1_lookup.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/global.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/fetchhead.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/util.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/patch_generate.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/config_parse.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/integer.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/tree.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/buf_text.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/merge_file.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/offmap.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/commit_list.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/graph.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/fileops.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_print.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/blob.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/filter.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/idxmap.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/refspec.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/submodule.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/submodule.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/ident.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/commit_list.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/sysdir.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/delta.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/reader.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/reflog.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/transaction.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/branch.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/common.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/signature.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/odb.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/blame.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/zstream.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/hash/hash_collisiondetect.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/hash/sha1dc/sha1.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/hash/sha1dc/sha1.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/hash/sha1dc/ubc_check.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/hash/sha1dc/ubc_check.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/hash/hash_openssl.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/posix.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_xdiff.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/settings.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/alloc.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/commit.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/odb_mempack.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/worktree.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/cc-compat.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/branch.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/vector.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/fetch.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/object.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/config_file.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/userdiff.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/patch.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/cache.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/tsort.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/revwalk.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/oidmap.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/filebuf.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/repo_template.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/proxy.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/pack-objects.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/fnmatch.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/stash.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/describe.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/patch_generate.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/patch_parse.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/clone.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/odb.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/strmap.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/src/diff.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/deps/http-parser/http_parser.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/deps/http-parser/http_parser.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/config.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regexec.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex.c
Examining data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.h
Examining data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c
Examining data/r-cran-git2r-0.27.1/src/git2r_blame.c
Examining data/r-cran-git2r-0.27.1/src/git2r_checkout.c
Examining data/r-cran-git2r-0.27.1/src/git2r_object.c
Examining data/r-cran-git2r-0.27.1/src/git2r_tree.c
Examining data/r-cran-git2r-0.27.1/src/git2r_clone.c
Examining data/r-cran-git2r-0.27.1/src/git2r_repository.h
Examining data/r-cran-git2r-0.27.1/src/git2r_transfer.c
Examining data/r-cran-git2r-0.27.1/src/git2r_remote.h
Examining data/r-cran-git2r-0.27.1/src/git2r_reference.h
Examining data/r-cran-git2r-0.27.1/src/git2r_status.h
Examining data/r-cran-git2r-0.27.1/src/git2r_diff.c
Examining data/r-cran-git2r-0.27.1/src/git2r_tree.h
Examining data/r-cran-git2r-0.27.1/src/git2r_note.c
Examining data/r-cran-git2r-0.27.1/src/git2r_blob.h
Examining data/r-cran-git2r-0.27.1/src/git2r.c
Examining data/r-cran-git2r-0.27.1/src/git2r_blob.c
Examining data/r-cran-git2r-0.27.1/src/git2r_stash.c
Examining data/r-cran-git2r-0.27.1/src/git2r_error.h
Examining data/r-cran-git2r-0.27.1/src/git2r_blame.h
Examining data/r-cran-git2r-0.27.1/src/git2r_object.h
Examining data/r-cran-git2r-0.27.1/src/git2r_revparse.c
Examining data/r-cran-git2r-0.27.1/src/git2r_stash.h
Examining data/r-cran-git2r-0.27.1/src/git2r_transfer.h
Examining data/r-cran-git2r-0.27.1/src/git2r_libgit2.h
Examining data/r-cran-git2r-0.27.1/src/git2r_checkout.h
Examining data/r-cran-git2r-0.27.1/src/git2r_merge.c
Examining data/r-cran-git2r-0.27.1/src/git2r_push.h
Examining data/r-cran-git2r-0.27.1/src/git2r_tag.c
Examining data/r-cran-git2r-0.27.1/src/git2r_cred.c
Examining data/r-cran-git2r-0.27.1/src/git2r_index.h

FINAL RESULTS:

data/r-cran-git2r-0.27.1/src/libgit2/src/repository.c:1870:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			if (chmod)
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/openssl.c:94:54:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
static int BIO_meth_set_gets(BIO_METHOD *biom, int (*gets) (BIO *, char *, int))
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/openssl.c:97:16:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
	biom->bgets = gets;
data/r-cran-git2r-0.27.1/src/libgit2/src/unix/posix.h:42:29:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
#define p_readlink(a, b, c) readlink(a, b, c)
data/r-cran-git2r-0.27.1/src/libgit2/src/unix/posix.h:65:22:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
#define p_chmod(p,m) chmod(p, m)
data/r-cran-git2r-0.27.1/src/git2r_cred.c:67:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(*out, buf);
data/r-cran-git2r-0.27.1/src/libgit2/include/git2/common.h:72:56:  [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 GIT_FORMAT_PRINTF(a,b) __attribute__((format (printf, a, b)))
data/r-cran-git2r-0.27.1/src/libgit2/src/blame_git.c:57: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(o->path, path);
data/r-cran-git2r-0.27.1/src/libgit2/src/merge_driver.c:186: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(entry->name, name);
data/r-cran-git2r-0.27.1/src/libgit2/src/unix/posix.h:61:33:  [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 p_vsnprintf(b, c, f, a) vsnprintf(b, c, f, a)
data/r-cran-git2r-0.27.1/src/libgit2/src/unix/posix.h:62:31:  [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 p_snprintf(b, c, ...) snprintf(b, c, __VA_ARGS__)
data/r-cran-git2r-0.27.1/src/libgit2/src/unix/posix.h:67:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define p_access(p,m) access(p,m)
data/r-cran-git2r-0.27.1/src/libgit2/src/unix/realpath.c:28:6:  [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(ret, F_OK) < 0)
data/r-cran-git2r-0.27.1/src/git2r_cred.c:59:11:  [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.
    buf = getenv(CHAR(STRING_ELT(git2r_get_list_element(obj, slot), 0)));
data/r-cran-git2r-0.27.1/src/libgit2/src/sysdir.c:94:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	sandbox_id = getenv("APP_SANDBOX_CONTAINER_ID");
data/r-cran-git2r-0.27.1/src/libgit2/src/unix/realpath.c:22:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if ((ret = realpath(pathname, resolved)) == NULL)
data/r-cran-git2r-0.27.1/src/libgit2/src/util.c:921: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.
	const char *val = getenv(name);
data/r-cran-git2r-0.27.1/src/git2r_blame.c:56:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_blob.c:213:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_branch.c:667:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_commit.c:436:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_diff.c:242: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 *fp = fopen(CHAR(STRING_ELT(filename, 0)), "w+");
data/r-cran-git2r-0.27.1/src/git2r_diff.c:348: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 *fp = fopen(CHAR(STRING_ELT(filename, 0)), "w+");
data/r-cran-git2r-0.27.1/src/git2r_diff.c:456: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 *fp = fopen(CHAR(STRING_ELT(filename, 0)), "w+");
data/r-cran-git2r-0.27.1/src/git2r_diff.c:569: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 *fp = fopen(CHAR(STRING_ELT(filename, 0)), "w+");
data/r-cran-git2r-0.27.1/src/git2r_diff.c:698: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 *fp = fopen(CHAR(STRING_ELT(filename, 0)), "w+");
data/r-cran-git2r-0.27.1/src/git2r_diff.c:1026:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char short_buffer[200];
data/r-cran-git2r-0.27.1/src/git2r_diff.c:1061:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, line->content, line->content_len);
data/r-cran-git2r-0.27.1/src/git2r_merge.c:291:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_note.c:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_odb.c:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_odb.c:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_odb.c:144:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_odb.c:293:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_odb.c:449:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_reference.c:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_reflog.c:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_remote.c:94:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char b_str[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_remote.c:101:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char a_str[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_remote.c:491:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char oid[GIT_OID_HEXSZ + 1] = {0};
data/r-cran-git2r-0.27.1/src/git2r_repository.c:95:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_tag.c:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_tag.c:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char target[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_tree.c:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/git2r_tree.c:113:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char mode[23]; /* enums are int/32-bit, but this is enough for even a 64-bit int */
data/r-cran-git2r-0.27.1/src/git2r_tree.c:115:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char sha[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/deps/http-parser/http_parser.c:145: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 tokens[256] = {
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:224:4:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   wchar_t wtmp[2];
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:225: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 tmp[2];
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:428:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:580: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 (errbuf, msg, errbuf_size - 1);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:584: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 (errbuf, msg, msg_size);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:2475: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 ((void *) &start_token, (void *) token, sizeof start_token);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:2640:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t cmp_buf[6] = {L'\0', L'\0', L'\0', L'\0', L'\0', L'\0'};
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:3106: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.
      unsigned char start_name_buf[BRACKET_NAME_BUF_SIZE];
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:3107: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.
      unsigned char end_name_buf[BRACKET_NAME_BUF_SIZE];
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:3425: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.
      unsigned char char_buf[2];
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex.h:579:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    const char *__restrict __cstring, size_t __nmatch,
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:215:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[MB_LEN_MAX];
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:218:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[64];
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:286: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[MB_LEN_MAX];
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:289: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[64];
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:331:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (pstr->mbs + byte_idx, buf, mbclen);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:339: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 (pstr->mbs + byte_idx,
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:399:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		  memcpy (pstr->mbs + byte_idx, buf, mbclen);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:424:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (pstr->mbs + byte_idx, buf, mbcdlen);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:443:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		  memcpy (pstr->mbs + byte_idx, p, mbclen);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:446:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (pstr->mbs + byte_idx, p, mbclen);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:741:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			  unsigned char buf[6];
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:1051:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dest->elems, src->elems, src->nelem * sizeof (int));
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:1145: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->elems, dest->elems + sbase, delta * sizeof (int));
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:1189:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dest->elems + id, src1->elems + i1,
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:1195:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dest->elems + id, src2->elems + i2,
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:1226:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dest->elems, src->elems, src->nelem * sizeof (int));
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:1247:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dest->elems + sbase, src->elems, (is + 1) * sizeof (int));
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.c:1275:8:  [2] (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->elems, dest->elems + sbase,
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regex_internal.h:199:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bitset_copy(dest,src) memcpy (dest, src, sizeof (bitset_t))
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regexec.c:378: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, string1, length1);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regexec.c:379: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 + length1, string2, length2);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regexec.c:1372: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 (fs->stack[num].regs, regs, sizeof (regmatch_t) * nregs);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regexec.c:1385: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 (regs, fs->stack[num].regs, sizeof (regmatch_t) * nregs);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regexec.c:1441: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 (prev_idx_match, pmatch, sizeof (regmatch_t) * nmatch);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regexec.c:1551:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (prev_idx_match, pmatch, sizeof (regmatch_t) * nmatch);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regexec.c:1562: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 (pmatch, prev_idx_match, sizeof (regmatch_t) * nmatch);
data/r-cran-git2r-0.27.1/src/libgit2/include/git2/diff.h:551: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   header[GIT_DIFF_HUNK_HEADER_SIZE];   /**< Header text, NUL-byte terminated */
data/r-cran-git2r-0.27.1/src/libgit2/include/git2/oid.h:35: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 id[GIT_OID_RAWSZ];
data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/config.h:61: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).
	int GIT_CALLBACK(open)(struct git_config_backend *, git_config_level_t level, const git_repository *repo);
data/r-cran-git2r-0.27.1/src/libgit2/include/git2/transport.h:52: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 hash_md5[16];
data/r-cran-git2r-0.27.1/src/libgit2/include/git2/transport.h:58: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 hash_sha1[20];
data/r-cran-git2r-0.27.1/src/libgit2/include/git2/transport.h:210: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 username[1];
data/r-cran-git2r-0.27.1/src/libgit2/src/alloc.c:44: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(&git__allocator, allocator, sizeof(*allocator));
data/r-cran-git2r-0.27.1/src/libgit2/src/annotated_commit.h:44: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_str[GIT_OID_HEXSZ+1];
data/r-cran-git2r-0.27.1/src/libgit2/src/apply.c:394: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.opts, given_opts, sizeof(git_apply_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/apply.c:623: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(&opts, given_opts, sizeof(git_apply_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/apply.c:798: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(&opts, given_opts, sizeof(git_apply_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/attr_file.h:100: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 fullpath[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/attrcache.c:66: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(ce->fullpath, base, baselen);
data/r-cran-git2r-0.27.1/src/libgit2/src/attrcache.c:71: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(&ce->fullpath[baselen], path, pathlen);
data/r-cran-git2r-0.27.1/src/libgit2/src/blame.c:204: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(out, in, sizeof(git_blame_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/blame.h:20: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 path[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/blame_git.c:212: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, sizeof(*src));
data/r-cran-git2r-0.27.1/src/libgit2/src/blame_git.c:232:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_entry, &(split[2]), sizeof(git_blame__entry));
data/r-cran-git2r-0.27.1/src/libgit2/src/blame_git.c:237:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_entry, &(split[1]), sizeof(git_blame__entry));
data/r-cran-git2r-0.27.1/src/libgit2/src/blame_git.c:249:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_entry, &(split[1]), sizeof(git_blame__entry));
data/r-cran-git2r-0.27.1/src/libgit2/src/blame_git.c:255:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_entry, &(split[2]), sizeof(git_blame__entry));
data/r-cran-git2r-0.27.1/src/libgit2/src/blob.c: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 buffer[FILEIO_BUFSIZE];
data/r-cran-git2r-0.27.1/src/libgit2/src/blob.c:215: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(out_st, &st, sizeof(st));
data/r-cran-git2r-0.27.1/src/libgit2/src/buf_text.c:89: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(out, scan, copylen);
data/r-cran-git2r-0.27.1/src/libgit2/src/buf_text.c:101:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(out, scan, remaining);
data/r-cran-git2r-0.27.1/src/libgit2/src/buf_text.c:143: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(tgt->ptr + tgt->size, scan, copylen);
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:16:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char git_buf__initbuf[1];
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:18:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char git_buf__oom[1];
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:361: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 b85[5];
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:782: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->ptr + strlen_a + need_sep, str_b, strlen_b);
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:830: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(tgt, str_a, len_a);
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:836: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(tgt, str_b, len_b);
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:842: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(tgt, str_c, len_c);
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:895: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(splice_loc, data, nb_to_insert);
data/r-cran-git2r-0.27.1/src/libgit2/src/cache.c:55: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 oid_str[9];
data/r-cran-git2r-0.27.1/src/libgit2/src/checkout.c:1470: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).
	int open;
data/r-cran-git2r-0.27.1/src/libgit2/src/checkout.c:1488:27:  [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).
	assert(stream && stream->open);
data/r-cran-git2r-0.27.1/src/libgit2/src/cherrypick.c:82:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(opts, given, sizeof(git_cherrypick_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/cherrypick.c:85: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(opts, &default_opts, sizeof(git_cherrypick_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/cherrypick.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 commit_oidstr[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/cherrypick.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 commit_oidstr[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/clone.c:263: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[GIT_PATH_MAX];
data/r-cran-git2r-0.27.1/src/libgit2/src/clone.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(&fetch_opts, opts, sizeof(git_fetch_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/clone.c:401: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(&options, _options, sizeof(git_clone_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/commit_list.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 commit_oid[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/common.h:217: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), &_tmpl, sizeof(_tmpl)); } while (0)
data/r-cran-git2r-0.27.1/src/libgit2/src/config.c:321:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((result = backend->open(backend, level, repo)) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/config.c:633: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 str_value[32]; /* All numbers should fit in here */
data/r-cran-git2r-0.27.1/src/libgit2/src/config_backend.h:39: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).
	return cfg->open(cfg, level, repo);
data/r-cran-git2r-0.27.1/src/libgit2/src/crlf.c:364: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(*payload, &ca, sizeof(ca));
data/r-cran-git2r-0.27.1/src/libgit2/src/delta.c:507: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 buffer[DELTA_HEADER_BUFFER_LEN];
data/r-cran-git2r-0.27.1/src/libgit2/src/delta.c:594: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(res_dp, base + off, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/delta.c:605: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(res_dp, delta, cmd);
data/r-cran-git2r-0.27.1/src/libgit2/src/describe.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(name, in,  sizeof(struct commit_name));
data/r-cran-git2r-0.27.1/src/libgit2/src/describe.c:272: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(tag, in, sizeof(struct possible_tag));
data/r-cran-git2r-0.27.1/src/libgit2/src/describe.c:408: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 hex_oid[GIT_OID_HEXSZ];
data/r-cran-git2r-0.27.1/src/libgit2/src/describe.c:425: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 oid_str[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/describe.c:776: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, sizeof(git_describe_format_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/describe.c:825: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 hex_oid[GIT_OID_HEXSZ + 1] = {0};
data/r-cran-git2r-0.27.1/src/libgit2/src/diff.c:168: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 idstr[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/diff.c:169: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 date_str[GIT_DATE_RFC2822_SZ];
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.c:42: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[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.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(driver->name, name, namelen);
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.c:360: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 *values[1], *attrs[] = { "diff" };
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.c:494: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(out, ctxt->line.ptr, (size_t)out_size);
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_file.c:178: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 oid[GIT_OID_HEXSZ+1];
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_generate.c:424: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(&diff->base.opts, &dflt, sizeof(git_diff_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_generate.c:661: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(&updated_entry, &entry, sizeof(git_index_entry));
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_generate.c:1646: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 commit_oidstr[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_print.c:214: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 start_oid[GIT_OID_HEXSZ+1], end_oid[GIT_OID_HEXSZ+1];
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_print.c:274: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 start_oid[GIT_OID_HEXSZ+1], end_oid[GIT_OID_HEXSZ+1];
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_tform.c:27: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(delta, d, sizeof(git_diff_delta));
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_tform.c:261: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(opts, given, sizeof(*opts));
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_xdiff.c:139: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(info->hunk.header, bufs[0].ptr, info->hunk.header_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/errors.c:110: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 error_buf[1024];
data/r-cran-git2r-0.27.1/src/libgit2/src/fetchhead.c:107: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 oid[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/filebuf.c:68:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[FILEIO_BUFSIZE];
data/r-cran-git2r-0.27.1/src/libgit2/src/filebuf.c:367: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(file->path_lock, file->path_original, path_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/filebuf.c:368: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(file->path_lock + path_len, GIT_FILELOCK_EXTENSION, GIT_FILELOCK_EXTLENGTH);
data/r-cran-git2r-0.27.1/src/libgit2/src/filebuf.c:460: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(file->buffer + file->buf_pos, buf, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/fileops.c:645: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(cache_path, make_path.ptr, make_path.size + 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/fileops.c:848:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[FILEIO_BUFSIZE];
data/r-cran-git2r-0.27.1/src/libgit2/src/fileops.c:1130: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(target, source, sizeof(*target));
data/r-cran-git2r-0.27.1/src/libgit2/src/filter.c:40: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 path[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/filter.c:50: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 *attrs[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/filter.c:414: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(fl->path, src->path, pathlen);
data/r-cran-git2r-0.27.1/src/libgit2/src/filter.c:952: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[FILTERIO_BUFSIZE];
data/r-cran-git2r-0.27.1/src/libgit2/src/global.h:19: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 oid_fmt[GIT_OID_HEXSZ+1];
data/r-cran-git2r-0.27.1/src/libgit2/src/hash/sha1dc/sha1.c:186: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(W, m, 16 * 4);
data/r-cran-git2r-0.27.1/src/libgit2/src/hash/sha1dc/sha1.c:1823: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->buffer + left, buf, fill);
data/r-cran-git2r-0.27.1/src/libgit2/src/hash/sha1dc/sha1.c:1836: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->buffer, buf, 64);
data/r-cran-git2r-0.27.1/src/libgit2/src/hash/sha1dc/sha1.c:1845: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->buffer + left, buf, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/hash/sha1dc/sha1.c:1849: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 sha1_padding[64] =
data/r-cran-git2r-0.27.1/src/libgit2/src/hash/sha1dc/sha1.c:1857:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int SHA1DCFinal(unsigned char output[20], SHA1_CTX *ctx)
data/r-cran-git2r-0.27.1/src/libgit2/src/hash/sha1dc/sha1.h:42: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 buffer[64];
data/r-cran-git2r-0.27.1/src/libgit2/src/ident.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 oid[GIT_OID_HEXSZ+1];
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:82: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 signature[4];
data/r-cran-git2r-0.27.1/src/libgit2/src/index.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 path[1]; /* arbitrary length */
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:117: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 path[1]; /* arbitrary length */
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:129: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 path[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:135: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 path[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:939: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(entry->path, path, pathlen);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:1016: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(entry->path, path, pathlen);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:1058: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(tgt, src, sizeof(*tgt));
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:1202: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((char *)entry->path, existing->path, strlen(existing->path));
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:1252: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((char *)entry->path, best->path, best_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:1390:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy((char *)existing->path, entry->path, strlen(entry->path));
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2351: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, buffer, len); \
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2422: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(&source, buffer, sizeof(struct entry_short));
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2446: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(&entry.flags_extended, &flags_raw, sizeof(flags_raw));
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2490: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_path, last, prefix_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2491: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_path + prefix_len, path_ptr + varint_len, suffix_len + 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2535: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(&dest, buffer, sizeof(struct index_extension));
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2768: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(&ondisk_ext, &ondisk, sizeof(struct entry_short));
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2771:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(mem, &ondisk_ext, offsetof(struct entry_long, path));
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2775:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(mem, &ondisk, offsetof(struct entry_short, path));
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2801: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(path, path_start, path_len + 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2845: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(&ondisk, header, 4);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2896: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(&extension.signature, INDEX_EXT_CONFLICT_NAME_SIG, 4);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2944: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(&extension.signature, INDEX_EXT_UNMERGED_SIG, 4);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2968: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(&extension.signature, INDEX_EXT_TREECACHE_SIG, 4);
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.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 objbuf[8*1024];
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:71: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 inbuf[GIT_OID_RAWSZ];
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:93: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(hdr, map.data, sizeof(*hdr));
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:218:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[64];
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:574: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(idx->inbuf, data, GIT_OID_RAWSZ);
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:581: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(idx->inbuf + idx->inbuf_len, data, size);
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:593: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(idx->inbuf + to_keep, data, size);
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:620: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(map_data + page_offset, data, size);
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:864: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 hdr[64];
data/r-cran-git2r-0.27.1/src/libgit2/src/iterator.c:1012: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 path[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/iterator.c:1312: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(entry->path, path, path_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/iterator.c:1313: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(&entry->st, statbuf, sizeof(struct stat));
data/r-cran-git2r-0.27.1/src/libgit2/src/iterator.c:1925: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(iter->root, root, root_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/iterator.c:1992: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(&options, given_opts, sizeof(git_iterator_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:789: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(merged, &conflict->our_entry, sizeof(git_index_entry));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:791: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(merged, &conflict->their_entry, sizeof(git_index_entry));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:1395: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(source_entry, target_entry, sizeof(git_index_entry));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:1664: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(out, src, sizeof(git_index_entry));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:1838: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(opts, given, sizeof(git_merge_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:1841: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(opts, &init, sizeof(init));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:2093: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(&changes, &diff_list->conflicts, sizeof(git_vector));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:2233: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(&virtual_opts, opts, sizeof(git_merge_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:2272: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(&opts, given_opts, sizeof(git_merge_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:2863: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(out, given_checkout_opts, sizeof(git_checkout_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:2865: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(out, &default_checkout_opts, sizeof(git_checkout_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge_driver.c:28: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[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/merge_driver.c:81: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(&file_opts, src->file_opts, sizeof(git_merge_file_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge_file.c:58: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(out, given_opts, sizeof(git_merge_file_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge_file.c:61: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(out, &default_opts, sizeof(git_merge_file_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge_file.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((char *)out->ptr, favored->ptr, favored->size);
data/r-cran-git2r-0.27.1/src/libgit2/src/merge_file.c:224: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(out, given, sizeof(git_merge_file_input));
data/r-cran-git2r-0.27.1/src/libgit2/src/notes.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 subtree_name[3];
data/r-cran-git2r-0.27.1/src/libgit2/src/notes.c: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 target[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/notes.c:508: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[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/notes.c:579: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[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/object.c:350: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 hex_oid[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/object.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(&id.id, &obj->cached.oid.id, (len + 1) / 2);
data/r-cran-git2r-0.27.1/src/libgit2/src/odb.c:113: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 header[64];
data/r-cran-git2r-0.27.1/src/libgit2/src/odb.c:202: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[64], buffer[FILEIO_BUFSIZE];
data/r-cran-git2r-0.27.1/src/libgit2/src/odb.c:375: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(stream->buffer + stream->written, data, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/odb.c:1323: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 header[64];
data/r-cran-git2r-0.27.1/src/libgit2/src/odb.c:1527: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 expected_oid[GIT_OID_HEXSZ + 1], actual_oid[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/odb.c:1542: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 oid_str[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:40: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 start[MAX_HEADER_LEN];
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.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 objects_dir[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:63: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 short_oid[GIT_OID_HEXSZ]; /* hex formatted oid to match */
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:67:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char res_oid[GIT_OID_HEXSZ];	/* hex formatted oid of
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:276: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 head[MAX_HEADER_LEN], *body = NULL;
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:316: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(body, head + head_len, body_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:390: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 inflated[MAX_HEADER_LEN];
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:410: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 obj[1024];
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:473:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(sstate->res_oid+2, pathbuf->ptr+sstate->dir_len, GIT_OID_HEXSZ-2);
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:826: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[MAX_HEADER_LEN];
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:880: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(buffer, stream->start + stream->start_read, chunk);
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:941: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 head[MAX_HEADER_LEN];
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:967: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(stream->start, head + head_len, init - head_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:1050: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 header[MAX_HEADER_LEN];
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:1133: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(backend->objects_dir, objects_dir, objects_dirlen);
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_mempack.c:27: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 data[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_mempack.c:55: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(obj->data, data, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_mempack.c:96: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(*buffer_p, obj->data, obj->len);
data/r-cran-git2r-0.27.1/src/libgit2/src/oid.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 hex_oid[GIT_OID_HEXSZ];
data/r-cran-git2r-0.27.1/src/libgit2/src/oid.h:45: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(&out->id, id->id, (len + 1) / 2);
data/r-cran-git2r-0.27.1/src/libgit2/src/oidmap.c:22: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(&h, oid, sizeof(khint_t));
data/r-cran-git2r-0.27.1/src/libgit2/src/pack-objects.c:326: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 hdr[10], *zbuf = NULL;
data/r-cran-git2r-0.27.1/src/libgit2/src/pack-objects.c:806: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(trg->data, git_odb_object_data(obj), sz);
data/r-cran-git2r-0.27.1/src/libgit2/src/pack-objects.c:828: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(src->data, git_odb_object_data(obj), sz);
data/r-cran-git2r-0.27.1/src/libgit2/src/pack-objects.c:1052: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(po->delta_data, zbuf.ptr, zbuf.size);
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:60: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(&e->raw, source, sizeof(git_rawobj));
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:561: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(chain.ptr, small_stack, elem_pos * sizeof(struct pack_chain_elem));
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:654: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(obj, &cached->raw, sizeof(git_rawobj));
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:698: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(obj->data, data, obj->len + 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:1135: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->pack_name, path, path_len + 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:1144: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->pack_name + root_len, ".keep", sizeof(".keep"));
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:1148: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->pack_name + root_len, ".pack", sizeof(".pack"));
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:1364:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char hex_sha1[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.h: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 pack_name[GIT_FLEX_ARRAY]; /* more */
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_generate.c:88: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(out, opts, sizeof(git_diff_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_generate.c:91: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(out, &default_opts, sizeof(git_diff_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_generate.c:407: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 paths[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_generate.c:514: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->paths[0], *old_path, old_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_generate.c:520: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->paths[old_len + 1], *new_path, new_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_generate.c:787: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(&patch->binary, binary, sizeof(git_diff_binary));
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_generate.c:793: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((char *)patch->binary.old_file.data,
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_generate.c:801: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((char *)patch->binary.new_file.data,
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_generate.c:850: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(line, line_, sizeof(*line));
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_parse.c:534: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(hunk->hunk.header, header_start, hunk->hunk.header_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_parse.c:1074: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->opts, opts, sizeof(git_patch_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_parse.c:1076: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->opts, &default_opts, sizeof(git_patch_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:375: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[GIT_PATH_MAX];
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:757: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[GIT_PATH_MAX];
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:951: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(path->ptr + (i * 3), "../", 3);
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:1057: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 tmp[6];
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:1074: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(path.ptr + path.size - sizeof(tmp), tmp, sizeof(tmp));
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:1081: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(path.ptr + path.size - sizeof(tmp), tmp, sizeof(tmp));
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:1101: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.
typedef char path_dirent_data[sizeof(struct dirent) + FILENAME_MAX + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:1256: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(&diriter->path[diriter->parent_len+1],
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:1528: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 *component,
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:1530: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 dospath[3],
data/r-cran-git2r-0.27.1/src/libgit2/src/pool.c:19:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	GIT_ALIGN(char data[GIT_FLEX_ARRAY], 8);
data/r-cran-git2r-0.27.1/src/libgit2/src/pool.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(a, b, sizeof(temp));
data/r-cran-git2r-0.27.1/src/libgit2/src/pool.c:169: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, &temp, sizeof(temp));
data/r-cran-git2r-0.27.1/src/libgit2/src/pool.c:208: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, str, n);
data/r-cran-git2r-0.27.1/src/libgit2/src/pool.c:238: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, a, len_a);
data/r-cran-git2r-0.27.1/src/libgit2/src/pool.c:240: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(((char *)ptr) + len_a, b, len_b);
data/r-cran-git2r-0.27.1/src/libgit2/src/posix.c:44:26:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		ainfo->ai_port = htons(atol(port));
data/r-cran-git2r-0.27.1/src/libgit2/src/posix.c:46: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(&ainfo->ai_addr_in.sin_addr,
data/r-cran-git2r-0.27.1/src/libgit2/src/posix.c:72: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(ai->ai_next, ainfo, sizeof(struct addrinfo));
data/r-cran-git2r-0.27.1/src/libgit2/src/posix.c:73:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&ai->ai_next->ai_addr_in.sin_addr,
data/r-cran-git2r-0.27.1/src/libgit2/src/posix.c:120: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).
	return open(path, flags | O_BINARY | O_CLOEXEC, mode);
data/r-cran-git2r-0.27.1/src/libgit2/src/posix.c:125: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).
	return open(path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY | O_CLOEXEC, mode);
data/r-cran-git2r-0.27.1/src/libgit2/src/proxy.c:26: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(tgt, src, sizeof(git_proxy_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/rebase.c:269: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(&rebase->options, rebase_opts, sizeof(git_rebase_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/rebase.c:443: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_str[GIT_OID_HEXSZ];
data/r-cran-git2r-0.27.1/src/libgit2/src/rebase.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 onto[GIT_OID_HEXSZ], orig_head[GIT_OID_HEXSZ];
data/r-cran-git2r-0.27.1/src/libgit2/src/rebase.c:756: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(checkout_opts, &rebase->options.checkout_options, sizeof(git_checkout_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/rebase.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 current_idstr[GIT_OID_HEXSZ];
data/r-cran-git2r-0.27.1/src/libgit2/src/rebase.c:1009: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 old_idstr[GIT_OID_HEXSZ], new_idstr[GIT_OID_HEXSZ];
data/r-cran-git2r-0.27.1/src/libgit2/src/rebase.c:1278: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 onto[GIT_OID_HEXSZ];
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.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 name[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:815: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 oid[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:930: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 oid[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:944: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 peel[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:1787: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 raw_old[GIT_OID_HEXSZ+1];
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:1788: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 raw_new[GIT_OID_HEXSZ+1];
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:46:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ref->name, name, namelen + 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:104: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(rewrite->name, name, namelen + 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:704:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&payload.new_name, &normalized, sizeof(normalized));
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.h:63: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.
typedef char git_refname_t[GIT_REFNAME_MAX];
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.h:75: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[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/repository.c:353: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[GIT_PATH_MAX + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/repository.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 buf2[GIT_PATH_MAX + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/repository.c:2473: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 orig_head_str[GIT_OID_HEXSZ];
data/r-cran-git2r-0.27.1/src/libgit2/src/revert.c:83:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(opts, given, sizeof(git_revert_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/revert.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(opts, &default_opts, sizeof(git_revert_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/revert.c:110: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 commit_oidstr[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/revert.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 commit_oidstr[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/sortedcache.c:44: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(sc->path, path, pathlen);
data/r-cran-git2r-0.27.1/src/libgit2/src/sortedcache.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(tgt_item, src_item, sc->item_path_offset);
data/r-cran-git2r-0.27.1/src/libgit2/src/sortedcache.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(item_key, key, keylen);
data/r-cran-git2r-0.27.1/src/libgit2/src/sortedcache.h:41: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         path[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/stash.c:782: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(opts, given_apply_opts, sizeof(git_stash_apply_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/stash.c:785: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(opts, &default_apply_opts, sizeof(git_stash_apply_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/status.c:304: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(&status->opts, opts, sizeof(git_status_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/stdalloc.c:55: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, str, length);
data/r-cran-git2r-0.27.1/src/libgit2/src/stdalloc.c:71: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, start, n);
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/mbedtls.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 errbuf[512];
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/mbedtls.c:226: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 vrfy_buf[512];
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/mbedtls.c:286: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(encoded_cert, cert->raw.p, cert->raw.len);
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/mbedtls.c:444: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 errbuf[512];
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/openssl.c:380: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 errmsg[256];
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/openssl.c:393: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 errmsg[256];
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/openssl.c:533: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(peer_cn, ASN1_STRING_get0_data(str), size);
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/openssl.c:762: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 errmsg[256];
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/registry.c:44: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(target, src, sizeof(git_stream_registration));
data/r-cran-git2r-0.27.1/src/libgit2/src/submodule.c:1228: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(&update_options, _update_options, sizeof(git_submodule_update_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/submodule.c:1233: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(&clone_options.fetch_opts, &update_options.fetch_opts, sizeof(git_fetch_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/submodule.c:1618: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(tgt, src, sizeof(*tgt));
data/r-cran-git2r-0.27.1/src/libgit2/src/tag.c:123: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(tag->tag_name, buffer, text_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/tag.c:155: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(tag->message, buffer, text_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/trailer.c:261: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(buffer, message + trailer_start, trailer_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/transaction.c:96: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(&tx->pool, &pool, sizeof(git_pool));
data/r-cran-git2r-0.27.1/src/libgit2/src/transaction.c:386: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(&pool, &tx->pool, sizeof(git_pool));
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/cred.c:335: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(c->publickey, publickey, publickey_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/cred.c:378: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(c->username, username, len + 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/http.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 parse_buffer_data[NETIO_BUFSIZE];
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/http.c:595: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->buffer, str, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/http.c:693: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->proxy_opts, &t->owner->proxy, sizeof(git_proxy_options));
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/http.c:1193:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(s->chunk_buffer + s->chunk_buffer_len, buffer, count);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/http.c:1207:5:  [2] (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->chunk_buffer, buffer, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart.h: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 comment[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart.h:94: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 data[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart.h: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 error[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart.h: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 buffer_data[65536];
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:109: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(pkt->comment, line, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.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(pkt->error, line, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:162: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(pkt->data, line, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:183: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(pkt->data, line, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:205: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(pkt->error, line, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:245: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(pkt->head.name, line, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:283: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(pkt->ref, line, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:321: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(pkt->ref, line, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:336: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(pkt->msg, line, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.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 num[PKT_LEN_SIZE + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:377: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(num, line, PKT_LEN_SIZE);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:533: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 oid[GIT_OID_HEXSZ +1] = {0};
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:608: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 oid[GIT_OID_HEXSZ];
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.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 oidhex[GIT_OID_HEXSZ + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:660: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 old_id[GIT_OID_HEXSZ+1], new_id[GIT_OID_HEXSZ+1];
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:1027: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 hex[GIT_OID_HEXSZ+1]; hex[GIT_OID_HEXSZ] = '\0';
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c:566: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(&cert.hash_sha1, key, 20);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c:572: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(&cert.hash_md5, key, 16);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/winhttp.c:344:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t ct[MAX_CONTENT_TYPE_LEN];
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/winhttp.c:922: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 expected_content_type_8[MAX_CONTENT_TYPE_LEN];
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/winhttp.c:923:3:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		wchar_t expected_content_type[MAX_CONTENT_TYPE_LEN], content_type[MAX_CONTENT_TYPE_LEN];
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/winhttp.c:1304:3:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		wchar_t temp_path[MAX_PATH + 1];
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/winhttp.c:1381:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(s->chunk_buffer + s->chunk_buffer_len, buffer, count);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/winhttp.c:1395:5:  [2] (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->chunk_buffer, buffer, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/tree-cache.c:245: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(tree->name, name, name_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/tree-cache.h:24: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[GIT_FLEX_ARRAY];
data/r-cran-git2r-0.27.1/src/libgit2/src/tree.c:102: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(filename_ptr, filename, filename_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/tsort.c:222: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(storage, &dst[curr], A * sizeof(void *));
data/r-cran-git2r-0.27.1/src/libgit2/src/tsort.c:238: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(storage, &dst[curr + A], B * sizeof(void *));
data/r-cran-git2r-0.27.1/src/libgit2/src/unix/posix.h:63:22:  [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).
#define p_mkstemp(p) mkstemp(p)
data/r-cran-git2r-0.27.1/src/libgit2/src/util.c:757: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(swapel, j, elsize);
data/r-cran-git2r-0.27.1/src/libgit2/src/util.c:758: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(j, j - elsize, elsize);
data/r-cran-git2r-0.27.1/src/libgit2/src/util.c:759: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(j - elsize, swapel, elsize);
data/r-cran-git2r-0.27.1/src/libgit2/src/varint.c:32: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 varint[16];
data/r-cran-git2r-0.27.1/src/libgit2/src/varint.c:40:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, varint + pos, sizeof(varint) - pos);
data/r-cran-git2r-0.27.1/src/libgit2/src/vector.c:72: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(v->contents, src->contents, bytes);
data/r-cran-git2r-0.27.1/src/libgit2/src/vector.c:319: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(a, b, sizeof(t));
data/r-cran-git2r-0.27.1/src/libgit2/src/vector.c:320: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, &t, sizeof(t));
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xemit.c:110: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, rec, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xemit.c:128: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 dummy[1];
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xemit.c:134: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/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xemit.c:141: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, dummy[1];
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xmerge.c:126: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(dest + size, recs[i]->ptr, recs[i]->size);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xmerge.c:236: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(dest + size + 1, name1, marker1_size - 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xmerge.c:260:5:  [2] (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 + size + 1, name3, marker3_size - 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xmerge.c:298: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(dest + size + 1, name2, marker2_size - 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xmerge.c:720: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(result->ptr, mf2->ptr, mf2->size);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xmerge.c:724: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(result->ptr, mf1->ptr, mf1->size);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xutils.c:325: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/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xutils.c:349: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/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xutils.c:351: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, "@@ -", 4);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xutils.c:357: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 + nb, ",", 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xutils.c:363: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 + nb, " +", 2);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xutils.c:369: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 + nb, ",", 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xutils.c:375: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 + nb, " @@", 3);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xutils.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(buf + nb, func, funclen);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xutils.c:417: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(diff_env->xdf1.rchg + line1 - 1, env.xdf1.rchg, count1);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xutils.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(diff_env->xdf2.rchg + line2 - 1, env.xdf2.rchg, count2);
data/r-cran-git2r-0.27.1/src/git2r_arg.c:234:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (0 == strlen(CHAR(STRING_ELT(arg, 0))))
data/r-cran-git2r-0.27.1/src/git2r_branch.c:416: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).
    branch_name_len = strlen(branch_name);
data/r-cran-git2r-0.27.1/src/git2r_cred.c:60:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!buf || !strlen(buf))
data/r-cran-git2r-0.27.1/src/git2r_cred.c:63: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).
    *out = malloc(strlen(buf)+1);
data/r-cran-git2r-0.27.1/src/git2r_merge.c:154: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).
    buf_len = strlen(log_message) + sizeof(": Fast-forward");
data/r-cran-git2r-0.27.1/src/git2r_merge.c:547: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).
    buf_len = strlen(name) + sizeof("merge ");
data/r-cran-git2r-0.27.1/src/git2r_odb.c:368: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).
            path_len = strlen(path);
data/r-cran-git2r-0.27.1/src/git2r_odb.c:369:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            buf_len = path_len + strlen(entry_name) + 2;
data/r-cran-git2r-0.27.1/src/git2r_tag.c:292: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).
            skip = strlen("refs/tags/");
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:526:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = re_compile_internal (preg, pattern, strlen (pattern), syntax);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.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).
  msg_size = strlen (msg) + 1; /* Includes the null.  */
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:731:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = re_compile_internal (&re_comp_buf, s, strlen (s), re_syntax_options);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:797:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (dfa->re_str, pattern, length + 1);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:2630: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).
	   && strlen ((char *) start_elem->opr.name) > 1)
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:2632: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).
	      && strlen ((char *) end_elem->opr.name) > 1), 0))
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:2752:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t name_len = strlen ((const char *) name);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:2845:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  size_t sym_name_len = strlen ((char *) br_elem->opr.name);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:2981:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t name_len = strlen ((const char *) name);
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:3441:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (BE (idx1 == 0 || cp < name + strlen ((const char *) name), 0))
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regcomp.c:3494:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (BE (strlen ((const char *) name) != 1, 0))
data/r-cran-git2r-0.27.1/src/libgit2/deps/regex/regexec.c:241: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).
      length = strlen (string);
data/r-cran-git2r-0.27.1/src/libgit2/include/git2/odb_backend.h:95:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int GIT_CALLBACK(read)(git_odb_stream *stream, char *buffer, size_t len);
data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/odb_backend.h:35:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int GIT_CALLBACK(read)(
data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/stream.h:37:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t GIT_CALLBACK(read)(struct git_stream *, void *, size_t);
data/r-cran-git2r-0.27.1/src/libgit2/include/git2/sys/transport.h:312:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int GIT_CALLBACK(read)(
data/r-cran-git2r-0.27.1/src/libgit2/src/attr.c:387: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).
	macro->match.length = strlen(macro->match.pattern);
data/r-cran-git2r-0.27.1/src/libgit2/src/attrcache.c:50:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t baselen = 0, pathlen = strlen(path);
data/r-cran-git2r-0.27.1/src/libgit2/src/attrcache.c:55: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).
		baselen = strlen(base);
data/r-cran-git2r-0.27.1/src/libgit2/src/attrcache.c:187: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).
		relfile += strlen(wd);
data/r-cran-git2r-0.27.1/src/libgit2/src/blame_git.c:42:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t path_len = strlen(path), alloc_len;
data/r-cran-git2r-0.27.1/src/libgit2/src/blob.c:288: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).
		hintpath += strlen(workdir);
data/r-cran-git2r-0.27.1/src/libgit2/src/branch.c:151:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return equal;
data/r-cran-git2r-0.27.1/src/libgit2/src/branch.c:192: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).
			git_reference_name(branch) + strlen(GIT_REFS_HEADS_DIR)) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/branch.c:304: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).
		git_reference_name(branch) + strlen(GIT_REFS_HEADS_DIR));
data/r-cran-git2r-0.27.1/src/libgit2/src/branch.c:343: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).
		branch_name += strlen(GIT_REFS_HEADS_DIR);
data/r-cran-git2r-0.27.1/src/libgit2/src/branch.c:345: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).
		branch_name += strlen(GIT_REFS_REMOTES_DIR);
data/r-cran-git2r-0.27.1/src/libgit2/src/branch.c:365: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).
		canonical_branch_name + strlen(GIT_REFS_HEADS_DIR)) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/branch.c:594: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).
	shortname = name + strlen(GIT_REFS_HEADS_DIR);
data/r-cran-git2r-0.27.1/src/libgit2/src/buf_text.c:16:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t total = 0, esc_len = strlen(esc_with), count, alloclen;
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:196:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return git_buf_set(buf, string, string ? strlen(string) : 0);
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:241: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).
	return git_buf_put(buf, string, strlen(string));
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:505: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).
	GIT_ERROR_CHECK_ALLOC_MULTIPLY(&expected_size, strlen(format), 2);
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:629: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).
		buf->size = strlen(ptr);
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:675: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).
		segment_len = strlen(segment);
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:713: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).
			segment_len = strlen(segment);
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:748:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t strlen_a = str_a ? strlen(str_a) : 0;
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:749:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t strlen_b = strlen(str_b);
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:797: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).
	size_t len_a = strlen(str_a),
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:798: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_b = strlen(str_b),
data/r-cran-git2r-0.27.1/src/libgit2/src/buffer.c:799: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_c = strlen(str_c),
data/r-cran-git2r-0.27.1/src/libgit2/src/checkout.c:696: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 (delta->old_file.path[strlen(wd->path)] == '/') {
data/r-cran-git2r-0.27.1/src/libgit2/src/checkout.c:721:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (wd->path[strlen(delta->old_file.path)] != '/')
data/r-cran-git2r-0.27.1/src/libgit2/src/checkout.c:1848: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 (str[strlen(str) - 1] == '/')
data/r-cran-git2r-0.27.1/src/libgit2/src/clone.c:124: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).
		name += strlen(GIT_REFS_HEADS_DIR);
data/r-cran-git2r-0.27.1/src/libgit2/src/commit.c:448: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).
			buffer += strlen("encoding ");
data/r-cran-git2r-0.27.1/src/libgit2/src/commit.c:580:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for (end = msg + strlen(msg) - 1; msg <= end; --end)
data/r-cran-git2r-0.27.1/src/libgit2/src/commit.c:672: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).
		buf += strlen(field);
data/r-cran-git2r-0.27.1/src/libgit2/src/commit.c:752: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).
		h += strlen(field);
data/r-cran-git2r-0.27.1/src/libgit2/src/commit_list.c:118: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).
	const size_t parent_len = strlen("parent ") + GIT_OID_HEXSZ + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/commit_list.c:124: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).
	buffer += strlen("tree ") + GIT_OID_HEXSZ + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/commit_list.c:127:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	while (buffer + parent_len < buffer_end && memcmp(buffer, "parent ", strlen("parent ")) == 0) {
data/r-cran-git2r-0.27.1/src/libgit2/src/commit_list.c:139:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (git_oid_fromstr(&oid, (const char *)buffer + strlen("parent ")) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/config.c:1316:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!value || git__strntol64(&num, value, strlen(value), &num_end, 0) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/config.c:1500: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).
	data.old_len = strlen(old_section_name) + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/config_file.c:636: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(ptr);
data/r-cran-git2r-0.27.1/src/libgit2/src/config_file.c:722:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (git_path_is_dirsep(value[strlen(value) - 1]))
data/r-cran-git2r-0.27.1/src/libgit2/src/config_file.c:775:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	condition = git__substrdup(section + strlen("includeIf."),
data/r-cran-git2r-0.27.1/src/libgit2/src/config_file.c:776: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).
				   strlen(section) - strlen("includeIf.") - strlen(".path"));
data/r-cran-git2r-0.27.1/src/libgit2/src/config_file.c:776: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).
				   strlen(section) - strlen("includeIf.") - strlen(".path"));
data/r-cran-git2r-0.27.1/src/libgit2/src/config_file.c:776: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).
				   strlen(section) - strlen("includeIf.") - strlen(".path"));
data/r-cran-git2r-0.27.1/src/libgit2/src/config_file.c:785: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).
						   condition + strlen(conditions[i].prefix))) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/config_parse.c:68:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t quoted_len, alloc_len, base_name_len = strlen(base_name);
data/r-cran-git2r-0.27.1/src/libgit2/src/config_parse.c:279: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).
	size_t ptr_len = strlen(ptr), alloc_len;
data/r-cran-git2r-0.27.1/src/libgit2/src/date.c:174: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 (match >= 3 || match == strlen(timezone_names[i].name)) {
data/r-cran-git2r-0.27.1/src/libgit2/src/date.c:697: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).
		size_t len = strlen(s->name);
data/r-cran-git2r-0.27.1/src/libgit2/src/date.c:707: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).
			size_t len = strlen(number_name[i]);
data/r-cran-git2r-0.27.1/src/libgit2/src/date.c:723: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).
		size_t len = strlen(tl->type);
data/r-cran-git2r-0.27.1/src/libgit2/src/delta.c:510:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t read;
data/r-cran-git2r-0.27.1/src/libgit2/src/delta.c:522:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len += read;
data/r-cran-git2r-0.27.1/src/libgit2/src/describe.c:228: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).
		refname + strlen(GIT_REFS_TAGS_DIR), 0)))
data/r-cran-git2r-0.27.1/src/libgit2/src/describe.c:252: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).
		all ? refname + strlen(GIT_REFS_DIR) : refname + strlen(GIT_REFS_TAGS_DIR),
data/r-cran-git2r-0.27.1/src/libgit2/src/describe.c:252:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		all ? refname + strlen(GIT_REFS_DIR) : refname + strlen(GIT_REFS_TAGS_DIR),
data/r-cran-git2r-0.27.1/src/libgit2/src/diff.c:292:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(summary, opts->summary, offset);
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.c:162: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).
		namelen = strlen(name),
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.c:284: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).
	git_buf_truncate(&name, namelen + strlen("diff.."));
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.c:285: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).
	git_buf_put(&name, "xfuncname", strlen("xfuncname"));
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.c:293: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).
	git_buf_truncate(&name, namelen + strlen("diff.."));
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.c:294: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).
	git_buf_put(&name, "funcname", strlen("funcname"));
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.c:308: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).
	git_buf_truncate(&name, namelen + strlen("diff.."));
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.c:309: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).
	git_buf_put(&name, "wordregex", strlen("wordregex"));
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_driver.c:365:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!repo || !path || !strlen(path))
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_generate.c:289: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).
	size_t len = strlen(prefix);
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_generate.c:893: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).
	pathlen = strlen(prefix_item->path);
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_stats.c:69: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).
		padding = stats->max_name - strlen(old_path) - strlen(new_path);
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_stats.c:69:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		padding = stats->max_name - strlen(old_path) - strlen(new_path);
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_stats.c:88: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).
		padding = stats->max_name - strlen(old_path);
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_stats.c:91:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			padding += strlen(DIFF_RENAME_FILE_SEPARATOR);
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_stats.c:213: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).
		namelen = strlen(delta->new_file.path);
data/r-cran-git2r-0.27.1/src/libgit2/src/diff_stats.c:215:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			namelen += strlen(delta->old_file.path);
data/r-cran-git2r-0.27.1/src/libgit2/src/fetchhead.c:118: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).
		name = fetchhead_ref->ref_name + strlen(GIT_REFS_HEADS_DIR);
data/r-cran-git2r-0.27.1/src/libgit2/src/fetchhead.c:122: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).
		name = fetchhead_ref->ref_name + strlen(GIT_REFS_TAGS_DIR);
data/r-cran-git2r-0.27.1/src/libgit2/src/fetchhead.c:191: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).
		line += strlen(line);
data/r-cran-git2r-0.27.1/src/libgit2/src/fetchhead.c:196: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(oid_str) != GIT_OID_HEXSZ) {
data/r-cran-git2r-0.27.1/src/libgit2/src/fileops.c:780: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) <= data->baselen)
data/r-cran-git2r-0.27.1/src/libgit2/src/fileops.c:814: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).
	data.baselen = base ? strlen(base) : 0;
data/r-cran-git2r-0.27.1/src/libgit2/src/fileops.c:839: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).
		retcode = p_write(fd, old, strlen(old));
data/r-cran-git2r-0.27.1/src/libgit2/src/filter.c:132: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).
		scan += strlen(scan) + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/filter.c:405:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t pathlen = src->path ? strlen(src->path) : 0, alloclen;
data/r-cran-git2r-0.27.1/src/libgit2/src/ignore.c:326: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).
		ignores->dir_root = strlen(workdir);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:364: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).
	srch_key.pathlen = !path_len ? strlen(path) : path_len;
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:914: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).
	size_t pathlen = strlen(path), alloclen;
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:1002: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).
	size_t pathlen = strlen(path),
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:1099: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).
	size_t len = strlen(entry->path);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:1132:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const char *slash = name + strlen(name);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:1202:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memcpy((char *)entry->path, existing->path, strlen(existing->path));
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:1219: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).
		search_len = strlen(search);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:1390: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).
				memcpy((char *)existing->path, entry->path, strlen(entry->path));
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:1730: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).
	index_find(&pos, index, prefix, strlen(prefix), GIT_INDEX_STAGE_ANY);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2473: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).
		last_len = strlen(last);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2479: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).
		suffix_len = strlen(path_ptr + varint_len);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2859:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		error = git_buf_put(name_buf, conflict_name->ancestor, strlen(conflict_name->ancestor) + 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2867:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		error = git_buf_put(name_buf, conflict_name->ours, strlen(conflict_name->ours) + 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2875:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		error = git_buf_put(name_buf, conflict_name->theirs, strlen(conflict_name->theirs) + 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/index.c:2912:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((error = git_buf_put(reuc_buf, reuc->path, strlen(reuc->path) + 1)) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:231:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t read;
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:240:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			git_buf_put(&idx->entry_data, idx->objbuf, read);
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:242:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		git_hash_update(&idx->hash_ctx, idx->objbuf, read);
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:243:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while (read > 0);
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:245:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:246:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return (int)read;
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:273:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t read;
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:279:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while (read > 0);
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:281:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:282:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return (int)read;
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:835:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (git_buf_grow(path, slash + 1 + strlen(prefix) +
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:836: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).
					 GIT_OID_HEXSZ + strlen(suffix) + 1) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/indexer.c:1173: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).
	git_buf_shorten(&filename, strlen("pack"));
data/r-cran-git2r-0.27.1/src/libgit2/src/iterator.c:51: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).
		iter->start_len = strlen(iter->start);
data/r-cran-git2r-0.27.1/src/libgit2/src/iterator.c:58: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).
		iter->end_len = strlen(iter->end);
data/r-cran-git2r-0.27.1/src/libgit2/src/iterator.c:190: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).
	path_len = strlen(path);
data/r-cran-git2r-0.27.1/src/libgit2/src/iterator.c:236: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).
	path_len = strlen(path);
data/r-cran-git2r-0.27.1/src/libgit2/src/iterator.c:244: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_len = strlen(p);
data/r-cran-git2r-0.27.1/src/libgit2/src/iterator.c:1920: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).
	root_len = strlen(root);
data/r-cran-git2r-0.27.1/src/libgit2/src/mailmap.c:220: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).
		real_name, real_name ? strlen(real_name) : 0,
data/r-cran-git2r-0.27.1/src/libgit2/src/mailmap.c:221: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).
		real_email, real_email ? strlen(real_email) : 0,
data/r-cran-git2r-0.27.1/src/libgit2/src/mailmap.c:222: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).
		replace_name, replace_name ? strlen(replace_name) : 0,
data/r-cran-git2r-0.27.1/src/libgit2/src/mailmap.c:223: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).
		replace_email, strlen(replace_email));
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:578: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(line) != GIT_OID_HEXSZ) {
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:1594:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t child_len = strlen(child);
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:1595:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t parent_len = strlen(parent);
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:2492:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		git__strncmp(GIT_REFS_HEADS_DIR, entry->merge_head->ref_name, strlen(GIT_REFS_HEADS_DIR)) == 0);
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:2504:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		git__strncmp(GIT_REFS_REMOTES_DIR, entry->merge_head->ref_name, strlen(GIT_REFS_REMOTES_DIR)) == 0);
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:2516:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		git__strncmp(GIT_REFS_TAGS_DIR, entry->merge_head->ref_name, strlen(GIT_REFS_TAGS_DIR)) == 0);
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:2526:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		git__strncmp(GIT_REFS_HEADS_DIR, entry->merge_head->ref_name, strlen(GIT_REFS_HEADS_DIR)) == 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:2628:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		"branch", "branches", strlen(GIT_REFS_HEADS_DIR), NULL, sep);
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:2646: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).
		"tag", "tags", strlen(GIT_REFS_TAGS_DIR), NULL, sep);
data/r-cran-git2r-0.27.1/src/libgit2/src/merge.c:2662:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		"branch", "branches", strlen(GIT_REFS_HEADS_DIR), source, sep);
data/r-cran-git2r-0.27.1/src/libgit2/src/merge_driver.c:183:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	entry = git__calloc(1, sizeof(git_merge_driver_entry) + strlen(name) + 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/message.c:26:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const size_t message_len = strlen(message);
data/r-cran-git2r-0.27.1/src/libgit2/src/message.c:34: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).
	for (i = 0; i < strlen(message); i += line_length) {
data/r-cran-git2r-0.27.1/src/libgit2/src/netops.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).
		path_search_start = url + strlen(prefix_http);
data/r-cran-git2r-0.27.1/src/libgit2/src/netops.c:160: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).
		path_search_start = url + strlen(prefix_https);
data/r-cran-git2r-0.27.1/src/libgit2/src/netops.c:185:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t pathlen = strlen(path);
data/r-cran-git2r-0.27.1/src/libgit2/src/netops.c:186:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t suffixlen = service_suffix ? strlen(service_suffix) : 0;
data/r-cran-git2r-0.27.1/src/libgit2/src/netops.c:265:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (http_parser_parse_url(url, strlen(url), false, &u)) {
data/r-cran-git2r-0.27.1/src/libgit2/src/notes.c:45: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(git_tree_entry_name(entry)) == 2
data/r-cran-git2r-0.27.1/src/libgit2/src/notes.c:187:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(subtree_name, annotated_object_sha + fanout, 2);
data/r-cran-git2r-0.27.1/src/libgit2/src/notes.c:291:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((error = git_blob_create_frombuffer(&oid, repo, note, strlen(note))) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/notes.c:637: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).
	git_buf_attach(out, default_ref, strlen(default_ref));
data/r-cran-git2r-0.27.1/src/libgit2/src/object.c:293: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).
	return git_object_stringn2type(str, strlen(str));
data/r-cran-git2r-0.27.1/src/libgit2/src/odb.c:1057:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (b->read != NULL) {
data/r-cran-git2r-0.27.1/src/libgit2/src/odb.c:1058:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			error = b->read(&raw.data, &raw.len, &raw.type, b, id);
data/r-cran-git2r-0.27.1/src/libgit2/src/odb.c:1428:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return stream->read(stream, buffer, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:494: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).
	size_t dir_len = strlen(objects_dir), alloc_len;
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:701: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(ptr) != GIT_OID_HEXSZ+1)
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_loose.c:1124: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).
	objects_dirlen = strlen(objects_dir);
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_pack.c:205:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (cmp_len <= strlen(".idx") || git__suffixcmp(path_str, ".idx") != 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/odb_pack.c:208: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).
	cmp_len -= strlen(".idx");
data/r-cran-git2r-0.27.1/src/libgit2/src/oid.c:52: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).
	return git_oid_fromstrn(out, str, strlen(str));
data/r-cran-git2r-0.27.1/src/libgit2/src/oid.c:139: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).
	const size_t header_len = strlen(header);
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:320: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).
	name_len = strlen(p->pack_name);
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:321: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).
	assert(name_len > strlen(".pack")); /* checked by git_pack_file alloc */
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:326:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	git_buf_put(&idx_name, p->pack_name, name_len - strlen(".pack"));
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:1106: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).
	path_len = strlen(path);
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:1108:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (path_len < strlen(".idx"))
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:1111:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (git_buf_printf(&buf, "%.*s.pack", (int)(path_len - strlen(".idx")), path) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:1122:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t path_len = path ? strlen(path) : 0, alloc_len;
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:1126:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (path_len < strlen(".idx"))
data/r-cran-git2r-0.27.1/src/libgit2/src/pack.c:1142: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).
		size_t root_len = path_len - strlen(".idx");
data/r-cran-git2r-0.27.1/src/libgit2/src/parse.h:49:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	git_parse_advance_expected(ctx, str, strlen(str))
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_generate.c:500:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t old_len = *old_path ? strlen(*old_path) : 0;
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_generate.c:501:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t new_len = *new_path ? strlen(*new_path) : 0;
data/r-cran-git2r-0.27.1/src/libgit2/src/patch_parse.c:435:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t op_len = strlen(transition->str);
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:109: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).
	endp = path + strlen(path) - 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:182: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).
	endp = path + strlen(path) - 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:271: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(path);
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:337: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).
		root = (ssize_t)strlen(base);
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:417: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).
	size_t end = strlen(path);
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:430:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = (int)strlen(input);
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:518: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).
			stop = (ssize_t)strlen(ceiling);
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:717:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t sub_size = strlen(sub);
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:1143: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).
		size_t de_len = strlen(de_path);
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:1242:17:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	filename_len = wcslen(diriter->current.cFileName);
data/r-cran-git2r-0.27.1/src/libgit2/src/path.c:1405: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).
	filename_len = strlen(filename);
data/r-cran-git2r-0.27.1/src/libgit2/src/pool.c:218:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return git_pool_strndup(pool, str, strlen(str));
data/r-cran-git2r-0.27.1/src/libgit2/src/pool.c:233: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).
	len_a = a ? strlen(a) : 0;
data/r-cran-git2r-0.27.1/src/libgit2/src/pool.c:234: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).
	len_b = b ? strlen(b) : 0;
data/r-cran-git2r-0.27.1/src/libgit2/src/posix.c:175:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(fd, b, cnt > INT_MAX ? INT_MAX : (unsigned int)cnt);
data/r-cran-git2r-0.27.1/src/libgit2/src/posix.c:177:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(fd, b, cnt);
data/r-cran-git2r-0.27.1/src/libgit2/src/posix.h:112:20:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
#define p_umask(m) umask(m)
data/r-cran-git2r-0.27.1/src/libgit2/src/reader.c:256:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return reader->read(out, out_id, out_filemode, reader, filename);
data/r-cran-git2r-0.27.1/src/libgit2/src/reader.h:28:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int (*read)(git_buf *out, git_oid *out_oid, git_filemode_t *mode, git_reader *reader, const char *filename);
data/r-cran-git2r-0.27.1/src/libgit2/src/rebase.c:1141:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(rebase->options.rewrite_notes_ref));
data/r-cran-git2r-0.27.1/src/libgit2/src/rebase.c:1247: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(fromstr) != GIT_OID_HEXSZ ||
data/r-cran-git2r-0.27.1/src/libgit2/src/rebase.c:1248:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(tostr) != GIT_OID_HEXSZ ||
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:116: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).
			scan += strlen(traits_header);
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:293: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).
	file_path = full_path->ptr + strlen(backend->gitpath);
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:349:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const unsigned int header_len = (unsigned int)strlen(GIT_SYMREF);
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:509:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t ref_prefix_len = strlen(ref_prefix);
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:712: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).
		size_t reflen = strlen(this_ref);
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:713:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t newlen = strlen(new_ref);
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:1331:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((commonlen = git_path_common_dirlen("refs/heads/", git_buf_cstr(&relative_path))) == strlen("refs/heads/") ||
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:1332:87:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		(commonlen = git_path_common_dirlen("refs/tags/", git_buf_cstr(&relative_path))) == strlen("refs/tags/") ||
data/r-cran-git2r-0.27.1/src/libgit2/src/refdb_fs.c:1333:90:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		(commonlen = git_path_common_dirlen("refs/remotes/", git_buf_cstr(&relative_path))) == strlen("refs/remotes/")) {
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:41: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).
	size_t namelen = strlen(name), reflen;
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:97: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).
	size_t namelen = strlen(name);
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:245:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(scan_name, ref->target.symbolic, sizeof(scan_name) - 1);
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:280:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (git__strncmp(reference.ptr, GIT_SYMREF, strlen(GIT_SYMREF)) == 0) {
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:281:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		git_buf_consume(&reference, reference.ptr + strlen(GIT_SYMREF));
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:922: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).
	const int lock_len = (int)strlen(GIT_FILELOCK_EXTENSION);
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:1003:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t namelen = strlen(current);
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:1431: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).
		return name + strlen(GIT_REFS_HEADS_DIR);
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:1433: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).
		return name + strlen(GIT_REFS_TAGS_DIR);
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:1435: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).
		return name + strlen(GIT_REFS_REMOTES_DIR);
data/r-cran-git2r-0.27.1/src/libgit2/src/refs.c:1437: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).
		return name + strlen(GIT_REFS_DIR);
data/r-cran-git2r-0.27.1/src/libgit2/src/refspec.c:55: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).
		size_t rlen = strlen(++rhs);
data/r-cran-git2r-0.27.1/src/libgit2/src/refspec.c:62: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).
	llen = (rhs ? (size_t)(rhs - lhs - 1) : strlen(lhs));
data/r-cran-git2r-0.27.1/src/libgit2/src/refspec.c:318: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).
	return (spec->src[strlen(spec->src) - 1] == '*');
data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c:170:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (in == NULL || strlen(in) == 0) {
data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c:519:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (found && strlen(val) > 0) {
data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c:539:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (found && strlen(val) > 0) {
data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c:1730: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).
	const char *name = entry->name + strlen("remote.");
data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c:1731: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).
	size_t namelen = strlen(name);
data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c:1908: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).
	pfx_len = strlen(GIT_REFS_REMOTES_DIR) + strlen(old_remote_name) + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c:1908:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pfx_len = strlen(GIT_REFS_REMOTES_DIR) + strlen(old_remote_name) + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c:2217: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).
	prefix_len = strlen("remote.");
data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c:2546: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).
	prefix_length = strlen(PREFIX) + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c:2549: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).
		suffix_length = strlen(SUFFIX_FETCH) + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c:2552: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).
		suffix_length = strlen(SUFFIX_PUSH) + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c:2567: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 ((n = strlen(entry->value)) <= match_length)
data/r-cran-git2r-0.27.1/src/libgit2/src/remote.c:2575: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(entry->name) - (prefix_length + suffix_length);
data/r-cran-git2r-0.27.1/src/libgit2/src/repository.c:372:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, ceil, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/repository.c:378: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(buf2);
data/r-cran-git2r-0.27.1/src/libgit2/src/repository.c:402: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).
	size_t  prefix_len = strlen(GIT_FILE_CONTENT_PREFIX);
data/r-cran-git2r-0.27.1/src/libgit2/src/repository.c:889: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(wt->gitlink_path);
data/r-cran-git2r-0.27.1/src/libgit2/src/repository.c:1248: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).
	name_len = strlen(name);
data/r-cran-git2r-0.27.1/src/libgit2/src/repository.c:1694: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).
		error = p_write(fd, content, strlen(content));
data/r-cran-git2r-0.27.1/src/libgit2/src/repository.c:1973: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).
		wd_path->size + strlen(GIT_DIR) == repo_path->size &&
data/r-cran-git2r-0.27.1/src/libgit2/src/repository.c:2558: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(as_path) > 0) {
data/r-cran-git2r-0.27.1/src/libgit2/src/revparse.c:30: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).
	size_t speclen = strlen(spec);
data/r-cran-git2r-0.27.1/src/libgit2/src/revparse.c:40: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).
	size_t speclen = strlen(spec);
data/r-cran-git2r-0.27.1/src/libgit2/src/revparse.c:115: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(spec) < GIT_OID_HEXSZ) &&
data/r-cran-git2r-0.27.1/src/libgit2/src/revparse.c:131:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (git__strntol32(&content, curly_braces_content, strlen(curly_braces_content),
data/r-cran-git2r-0.27.1/src/libgit2/src/revparse.c:582:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (git__strntol32(&parsed, spec + *pos, strlen(spec + *pos), &end_ptr, 10) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/signature.c:81: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).
	p->name = extract_trimmed(name, strlen(name));
data/r-cran-git2r-0.27.1/src/libgit2/src/signature.c:83: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).
	p->email = extract_trimmed(email, strlen(email));
data/r-cran-git2r-0.27.1/src/libgit2/src/signature.c:211:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		const size_t header_len = strlen(header);
data/r-cran-git2r-0.27.1/src/libgit2/src/signature.c:289: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).
	buf_end = buf + strlen(buf);
data/r-cran-git2r-0.27.1/src/libgit2/src/sortedcache.c:21: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).
	pathlen = path ? strlen(path) : 0;
data/r-cran-git2r-0.27.1/src/libgit2/src/sortedcache.c:285: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).
	keylen  = strlen(key);
data/r-cran-git2r-0.27.1/src/libgit2/src/stash.c:91: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).
			git_reference_name(head) + strlen(GIT_REFS_HEADS_DIR));
data/r-cran-git2r-0.27.1/src/libgit2/src/stream.h:50:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return st->read(st, data, len);
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/openssl.c:82:54:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static int BIO_meth_set_read(BIO_METHOD *biom, int (*read) (BIO *, char *, int))
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/openssl.c:84:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	biom->bread = read;
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/openssl.c:339: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).
	return bio_write(b, str, strlen(str));
data/r-cran-git2r-0.27.1/src/libgit2/src/streams/stransport.c:274: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).
	    (ret = SSLSetPeerDomainName(st->ctx, host, strlen(host))) != noErr) {
data/r-cran-git2r-0.27.1/src/libgit2/src/submodule.c:382:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		git_buf_attach_notowned(&buf, name, strlen(name));
data/r-cran-git2r-0.27.1/src/libgit2/src/submodule.c:743: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).
		path += strlen(git_repository_workdir(repo));
data/r-cran-git2r-0.27.1/src/libgit2/src/submodule.c:1727: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).
	if (!name || !(namelen = strlen(name))) {
data/r-cran-git2r-0.27.1/src/libgit2/src/submodule.c:1947: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).
	namestart = entry->name + strlen("submodule.");
data/r-cran-git2r-0.27.1/src/libgit2/src/sysdir.c:270: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).
	expand_path += strlen(PATH_MAGIC);
data/r-cran-git2r-0.27.1/src/libgit2/src/tag.c:90:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t type_length = strlen(tag_types[i]);
data/r-cran-git2r-0.27.1/src/libgit2/src/tag.c:349:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (tag_parse(&tag, buffer, buffer + strlen(buffer)) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/tag.c:380: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).
			&stream, odb, strlen(buffer), GIT_OBJECT_TAG)) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/tag.c:383:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!(error = git_odb_stream_write(stream, buffer, strlen(buffer))))
data/r-cran-git2r-0.27.1/src/libgit2/src/tag.c:470: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 GIT_REFS_TAGS_DIR_LEN strlen(GIT_REFS_TAGS_DIR)
data/r-cran-git2r-0.27.1/src/libgit2/src/trailer.c:40: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).
		return str + strlen(str);
data/r-cran-git2r-0.27.1/src/libgit2/src/transport.c:55:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncasecmp(url, d->prefix, strlen(d->prefix)) == 0) {
data/r-cran-git2r-0.27.1/src/libgit2/src/transport.c:64:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncasecmp(url, d->prefix, strlen(d->prefix)) == 0) {
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/cred.c:73:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t pass_len = strlen(c->password);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/cred.c:123:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t key_len = strlen(c->privatekey);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/cred.c:130:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t pass_len = strlen(c->passphrase);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/cred.c:137:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t key_len = strlen(c->publickey);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/cred.c:162:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t key_len = strlen(c->publickey);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/cred.c:369: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(username);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/git.c:62:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = 4 + strlen(cmd) + 1 + strlen(repo) + 1 + strlen(host) + (delim - url) + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/git.c:62: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).
	len = 4 + strlen(cmd) + 1 + strlen(repo) + 1 + strlen(host) + (delim - url) + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/git.c:62:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = 4 + strlen(cmd) + 1 + strlen(repo) + 1 + strlen(host) + (delim - url) + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/git.c:203: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).
		stream_url += strlen(prefix_git);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/git.c:261: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).
		stream_url += strlen(prefix_git);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/http.c:136: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).
	scheme_len = strlen(scheme_name);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart.c:25:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((error = t->current_stream->read(t->current_stream, buf->data + buf->offset, buf->len - buf->offset, &bytes_read)) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:248: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(pkt->head.name) < len)
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:527:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return git_buf_put(buf, pkt_flush_str, strlen(pkt_flush_str));
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:560: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("XXXXwant ") + GIT_OID_HEXSZ + 1 /* NUL */ +
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_pkt.c:615: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).
		git_buf_put(buf, pkt_want_prefix, strlen(pkt_want_prefix));
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:92: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).
	ptr += strlen(GIT_CAP_SYMREF);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:148: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).
			ptr += strlen(GIT_CAP_OFS_DELTA);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:155: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).
			ptr += strlen(GIT_CAP_MULTI_ACK_DETAILED);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:161: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).
			ptr += strlen(GIT_CAP_MULTI_ACK);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:167: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).
			ptr += strlen(GIT_CAP_INCLUDE_TAG);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:174: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).
			ptr += strlen(GIT_CAP_SIDE_BAND_64K);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:180: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).
			ptr += strlen(GIT_CAP_SIDE_BAND);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:186: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).
			ptr += strlen(GIT_CAP_DELETE_REFS);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:192: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).
			ptr += strlen(GIT_CAP_THIN_PACK);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:665:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = 2*GIT_OID_HEXSZ + 7 + strlen(spec->refspec.dst);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:670:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len += strlen(GIT_CAP_REPORT_STATUS) + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/smart_protocol.c:671: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(GIT_CAP_SIDE_BAND_64K) + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c:75: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).
			url = url + strlen(p);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c:92: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(cmd) + 1 /* Space */ + 1 /* Quote */ + strlen(repo) + 1 /* Quote */ + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c:92:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(cmd) + 1 /* Space */ + 1 /* Quote */ + strlen(repo) + 1 /* Quote */ + 1;
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c:97: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).
	git_buf_decode_percent(request, repo, strlen(repo));
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c:411:5:  [1] (buffer) strlen:
  Does not handle 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(c->username),
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c:413: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).
				c->publickey ? strlen(c->publickey) : 0,
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c:415:5:  [1] (buffer) strlen:
  Does not handle 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(c->privatekey),
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c:785:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	list = libssh2_userauth_list(session, username, strlen(username));
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c:804: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).
			ptr += strlen(SSH_AUTH_PUBLICKEY);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c:810: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).
			ptr += strlen(SSH_AUTH_PASSWORD);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/ssh.c:816: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).
			ptr += strlen(SSH_AUTH_KEYBOARD_INTERACTIVE);
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/winhttp.c:749:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen(t->connection_data.port), NULL, 10) < 0)
data/r-cran-git2r-0.27.1/src/libgit2/src/transports/winhttp.c:1279:8:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = wcslen(buffer);
data/r-cran-git2r-0.27.1/src/libgit2/src/tree-cache.c:16:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t i, dirlen = end ? (size_t)(end - path) : strlen(path);
data/r-cran-git2r-0.27.1/src/libgit2/src/tree-cache.c:238: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).
	name_len = strlen(name);
data/r-cran-git2r-0.27.1/src/libgit2/src/tree.c:311: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).
	return entry_fromname(tree, filename, strlen(filename));
data/r-cran-git2r-0.27.1/src/libgit2/src/tree.c:449: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).
	dirlen = strlen(dirname);
data/r-cran-git2r-0.27.1/src/libgit2/src/tree.c:452: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(entry->path) < dirlen ||
data/r-cran-git2r-0.27.1/src/libgit2/src/tree.c:505: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).
	entry = alloc_entry(filename, strlen(filename), id);
data/r-cran-git2r-0.27.1/src/libgit2/src/tree.c:531: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).
	size_t dirname_len = strlen(dirname);
data/r-cran-git2r-0.27.1/src/libgit2/src/tree.c:560: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(entry->path) < dirname_len ||
data/r-cran-git2r-0.27.1/src/libgit2/src/tree.c:738: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).
		entry = alloc_entry(filename, strlen(filename), id);
data/r-cran-git2r-0.27.1/src/libgit2/src/tree.c:893: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).
		return strlen(path);
data/r-cran-git2r-0.27.1/src/libgit2/src/util.c:276: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).
	git__strntolower(str, strlen(str));
data/r-cran-git2r-0.27.1/src/libgit2/src/util.c:324: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).
	size_t a = strlen(str);
data/r-cran-git2r-0.27.1/src/libgit2/src/util.c:325: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).
	size_t b = strlen(suffix);
data/r-cran-git2r-0.27.1/src/libgit2/src/worktree.c:409:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		git_buf_attach_notowned(&buf, reason, strlen(reason));
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xemit.c:34: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).
	long size, psize = (long)strlen(pre);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xmerge.c:211: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).
	int marker1_size = (name1 ? (int)strlen(name1) + 1 : 0);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xmerge.c:212: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).
	int marker2_size = (name2 ? (int)strlen(name2) + 1 : 0);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xmerge.c:213: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).
	int marker3_size = (name3 ? (int)strlen(name3) + 1 : 0);
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xpatience.c:83:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp(line, xpp->anchors[i], strlen(xpp->anchors[i])))
data/r-cran-git2r-0.27.1/src/libgit2/src/xdiff/xutils.c:52: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).
		mb[2].size = strlen(mb[2].ptr);

ANALYSIS SUMMARY:

Hits = 788
Lines analyzed = 158540 in approximately 3.56 seconds (44558 lines/second)
Physical Source Lines of Code (SLOC) = 102065
Hits@level = [0]  29 [1] 351 [2] 420 [3]   4 [4]   8 [5]   5
Hits@level+ = [0+] 817 [1+] 788 [2+] 437 [3+]  17 [4+]  13 [5+]   5
Hits/KSLOC@level+ = [0+] 8.0047 [1+] 7.72057 [2+] 4.28159 [3+] 0.166561 [4+] 0.12737 [5+] 0.0489884
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.