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/libgit2-1.0.1+dfsg.1/examples/add.c
Examining data/libgit2-1.0.1+dfsg.1/examples/args.c
Examining data/libgit2-1.0.1+dfsg.1/examples/args.h
Examining data/libgit2-1.0.1+dfsg.1/examples/blame.c
Examining data/libgit2-1.0.1+dfsg.1/examples/cat-file.c
Examining data/libgit2-1.0.1+dfsg.1/examples/checkout.c
Examining data/libgit2-1.0.1+dfsg.1/examples/clone.c
Examining data/libgit2-1.0.1+dfsg.1/examples/common.c
Examining data/libgit2-1.0.1+dfsg.1/examples/common.h
Examining data/libgit2-1.0.1+dfsg.1/examples/config.c
Examining data/libgit2-1.0.1+dfsg.1/examples/describe.c
Examining data/libgit2-1.0.1+dfsg.1/examples/diff.c
Examining data/libgit2-1.0.1+dfsg.1/examples/fetch.c
Examining data/libgit2-1.0.1+dfsg.1/examples/for-each-ref.c
Examining data/libgit2-1.0.1+dfsg.1/examples/general.c
Examining data/libgit2-1.0.1+dfsg.1/examples/index-pack.c
Examining data/libgit2-1.0.1+dfsg.1/examples/init.c
Examining data/libgit2-1.0.1+dfsg.1/examples/lg2.c
Examining data/libgit2-1.0.1+dfsg.1/examples/log.c
Examining data/libgit2-1.0.1+dfsg.1/examples/ls-files.c
Examining data/libgit2-1.0.1+dfsg.1/examples/ls-remote.c
Examining data/libgit2-1.0.1+dfsg.1/examples/merge.c
Examining data/libgit2-1.0.1+dfsg.1/examples/remote.c
Examining data/libgit2-1.0.1+dfsg.1/examples/rev-list.c
Examining data/libgit2-1.0.1+dfsg.1/examples/rev-parse.c
Examining data/libgit2-1.0.1+dfsg.1/examples/show-index.c
Examining data/libgit2-1.0.1+dfsg.1/examples/stash.c
Examining data/libgit2-1.0.1+dfsg.1/examples/status.c
Examining data/libgit2-1.0.1+dfsg.1/examples/tag.c
Examining data/libgit2-1.0.1+dfsg.1/fuzzers/config_file_fuzzer.c
Examining data/libgit2-1.0.1+dfsg.1/fuzzers/download_refs_fuzzer.c
Examining data/libgit2-1.0.1+dfsg.1/fuzzers/objects_fuzzer.c
Examining data/libgit2-1.0.1+dfsg.1/fuzzers/packfile_fuzzer.c
Examining data/libgit2-1.0.1+dfsg.1/fuzzers/patch_parse_fuzzer.c
Examining data/libgit2-1.0.1+dfsg.1/fuzzers/standalone_driver.c
Examining data/libgit2-1.0.1+dfsg.1/include/git2.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/annotated_commit.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/apply.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/attr.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/blame.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/blob.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/branch.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/buffer.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/cert.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/checkout.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/cherrypick.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/clone.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/commit.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/common.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/config.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/cred_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/credential.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/credential_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/deprecated.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/describe.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/diff.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/errors.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/filter.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/global.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/graph.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/ignore.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/index.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/indexer.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/mailmap.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/merge.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/message.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/net.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/notes.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/object.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/odb.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/odb_backend.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/oid.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/oidarray.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/pack.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/patch.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/pathspec.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/proxy.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/rebase.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/refdb.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/reflog.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/refs.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/refspec.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/remote.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/repository.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/reset.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/revert.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/revparse.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/revwalk.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/signature.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/stash.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/status.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/stdint.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/strarray.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/submodule.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/alloc.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/commit.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/config.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/cred.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/credential.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/diff.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/filter.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/hashsig.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/index.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/mempack.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/merge.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/odb_backend.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/openssl.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/path.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/refdb_backend.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/reflog.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/refs.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/repository.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/stream.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/sys/transport.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/tag.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/trace.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/transaction.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/transport.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/tree.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/types.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/version.h
Examining data/libgit2-1.0.1+dfsg.1/include/git2/worktree.h
Examining data/libgit2-1.0.1+dfsg.1/script/user_model.c
Examining data/libgit2-1.0.1+dfsg.1/script/user_nodefs.h
Examining data/libgit2-1.0.1+dfsg.1/src/alloc.c
Examining data/libgit2-1.0.1+dfsg.1/src/alloc.h
Examining data/libgit2-1.0.1+dfsg.1/src/allocators/stdalloc.c
Examining data/libgit2-1.0.1+dfsg.1/src/allocators/stdalloc.h
Examining data/libgit2-1.0.1+dfsg.1/src/allocators/win32_crtdbg.c
Examining data/libgit2-1.0.1+dfsg.1/src/allocators/win32_crtdbg.h
Examining data/libgit2-1.0.1+dfsg.1/src/annotated_commit.c
Examining data/libgit2-1.0.1+dfsg.1/src/annotated_commit.h
Examining data/libgit2-1.0.1+dfsg.1/src/apply.c
Examining data/libgit2-1.0.1+dfsg.1/src/apply.h
Examining data/libgit2-1.0.1+dfsg.1/src/array.h
Examining data/libgit2-1.0.1+dfsg.1/src/attr.c
Examining data/libgit2-1.0.1+dfsg.1/src/attr.h
Examining data/libgit2-1.0.1+dfsg.1/src/attr_file.c
Examining data/libgit2-1.0.1+dfsg.1/src/attr_file.h
Examining data/libgit2-1.0.1+dfsg.1/src/attrcache.c
Examining data/libgit2-1.0.1+dfsg.1/src/attrcache.h
Examining data/libgit2-1.0.1+dfsg.1/src/bitvec.h
Examining data/libgit2-1.0.1+dfsg.1/src/blame.c
Examining data/libgit2-1.0.1+dfsg.1/src/blame.h
Examining data/libgit2-1.0.1+dfsg.1/src/blame_git.c
Examining data/libgit2-1.0.1+dfsg.1/src/blame_git.h
Examining data/libgit2-1.0.1+dfsg.1/src/blob.c
Examining data/libgit2-1.0.1+dfsg.1/src/blob.h
Examining data/libgit2-1.0.1+dfsg.1/src/branch.c
Examining data/libgit2-1.0.1+dfsg.1/src/branch.h
Examining data/libgit2-1.0.1+dfsg.1/src/buf_text.c
Examining data/libgit2-1.0.1+dfsg.1/src/buf_text.h
Examining data/libgit2-1.0.1+dfsg.1/src/buffer.c
Examining data/libgit2-1.0.1+dfsg.1/src/buffer.h
Examining data/libgit2-1.0.1+dfsg.1/src/cache.c
Examining data/libgit2-1.0.1+dfsg.1/src/cache.h
Examining data/libgit2-1.0.1+dfsg.1/src/cc-compat.h
Examining data/libgit2-1.0.1+dfsg.1/src/checkout.c
Examining data/libgit2-1.0.1+dfsg.1/src/checkout.h
Examining data/libgit2-1.0.1+dfsg.1/src/cherrypick.c
Examining data/libgit2-1.0.1+dfsg.1/src/clone.c
Examining data/libgit2-1.0.1+dfsg.1/src/clone.h
Examining data/libgit2-1.0.1+dfsg.1/src/commit.c
Examining data/libgit2-1.0.1+dfsg.1/src/commit.h
Examining data/libgit2-1.0.1+dfsg.1/src/commit_list.c
Examining data/libgit2-1.0.1+dfsg.1/src/commit_list.h
Examining data/libgit2-1.0.1+dfsg.1/src/common.h
Examining data/libgit2-1.0.1+dfsg.1/src/config.c
Examining data/libgit2-1.0.1+dfsg.1/src/config.h
Examining data/libgit2-1.0.1+dfsg.1/src/config_backend.h
Examining data/libgit2-1.0.1+dfsg.1/src/config_cache.c
Examining data/libgit2-1.0.1+dfsg.1/src/config_entries.c
Examining data/libgit2-1.0.1+dfsg.1/src/config_entries.h
Examining data/libgit2-1.0.1+dfsg.1/src/config_file.c
Examining data/libgit2-1.0.1+dfsg.1/src/config_mem.c
Examining data/libgit2-1.0.1+dfsg.1/src/config_parse.c
Examining data/libgit2-1.0.1+dfsg.1/src/config_parse.h
Examining data/libgit2-1.0.1+dfsg.1/src/config_snapshot.c
Examining data/libgit2-1.0.1+dfsg.1/src/crlf.c
Examining data/libgit2-1.0.1+dfsg.1/src/date.c
Examining data/libgit2-1.0.1+dfsg.1/src/delta.c
Examining data/libgit2-1.0.1+dfsg.1/src/delta.h
Examining data/libgit2-1.0.1+dfsg.1/src/describe.c
Examining data/libgit2-1.0.1+dfsg.1/src/diff.c
Examining data/libgit2-1.0.1+dfsg.1/src/diff.h
Examining data/libgit2-1.0.1+dfsg.1/src/diff_driver.c
Examining data/libgit2-1.0.1+dfsg.1/src/diff_driver.h
Examining data/libgit2-1.0.1+dfsg.1/src/diff_file.c
Examining data/libgit2-1.0.1+dfsg.1/src/diff_file.h
Examining data/libgit2-1.0.1+dfsg.1/src/diff_generate.c
Examining data/libgit2-1.0.1+dfsg.1/src/diff_generate.h
Examining data/libgit2-1.0.1+dfsg.1/src/diff_parse.c
Examining data/libgit2-1.0.1+dfsg.1/src/diff_parse.h
Examining data/libgit2-1.0.1+dfsg.1/src/diff_print.c
Examining data/libgit2-1.0.1+dfsg.1/src/diff_stats.c
Examining data/libgit2-1.0.1+dfsg.1/src/diff_tform.c
Examining data/libgit2-1.0.1+dfsg.1/src/diff_tform.h
Examining data/libgit2-1.0.1+dfsg.1/src/diff_xdiff.c
Examining data/libgit2-1.0.1+dfsg.1/src/diff_xdiff.h
Examining data/libgit2-1.0.1+dfsg.1/src/errors.c
Examining data/libgit2-1.0.1+dfsg.1/src/errors.h
Examining data/libgit2-1.0.1+dfsg.1/src/fetch.c
Examining data/libgit2-1.0.1+dfsg.1/src/fetch.h
Examining data/libgit2-1.0.1+dfsg.1/src/fetchhead.c
Examining data/libgit2-1.0.1+dfsg.1/src/fetchhead.h
Examining data/libgit2-1.0.1+dfsg.1/src/filebuf.c
Examining data/libgit2-1.0.1+dfsg.1/src/filebuf.h
Examining data/libgit2-1.0.1+dfsg.1/src/filter.c
Examining data/libgit2-1.0.1+dfsg.1/src/filter.h
Examining data/libgit2-1.0.1+dfsg.1/src/futils.c
Examining data/libgit2-1.0.1+dfsg.1/src/futils.h
Examining data/libgit2-1.0.1+dfsg.1/src/global.c
Examining data/libgit2-1.0.1+dfsg.1/src/global.h
Examining data/libgit2-1.0.1+dfsg.1/src/graph.c
Examining data/libgit2-1.0.1+dfsg.1/src/hash.c
Examining data/libgit2-1.0.1+dfsg.1/src/hash.h
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1.h
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/collisiondetect.c
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/collisiondetect.h
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/common_crypto.c
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/common_crypto.h
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/generic.c
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/generic.h
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/mbedtls.c
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/mbedtls.h
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/openssl.c
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/openssl.h
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/sha1dc/sha1.c
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/sha1dc/sha1.h
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/sha1dc/ubc_check.c
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/sha1dc/ubc_check.h
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/win32.c
Examining data/libgit2-1.0.1+dfsg.1/src/hash/sha1/win32.h
Examining data/libgit2-1.0.1+dfsg.1/src/hashsig.c
Examining data/libgit2-1.0.1+dfsg.1/src/ident.c
Examining data/libgit2-1.0.1+dfsg.1/src/idxmap.c
Examining data/libgit2-1.0.1+dfsg.1/src/idxmap.h
Examining data/libgit2-1.0.1+dfsg.1/src/ignore.c
Examining data/libgit2-1.0.1+dfsg.1/src/ignore.h
Examining data/libgit2-1.0.1+dfsg.1/src/index.c
Examining data/libgit2-1.0.1+dfsg.1/src/index.h
Examining data/libgit2-1.0.1+dfsg.1/src/indexer.c
Examining data/libgit2-1.0.1+dfsg.1/src/indexer.h
Examining data/libgit2-1.0.1+dfsg.1/src/integer.h
Examining data/libgit2-1.0.1+dfsg.1/src/iterator.c
Examining data/libgit2-1.0.1+dfsg.1/src/iterator.h
Examining data/libgit2-1.0.1+dfsg.1/src/khash.h
Examining data/libgit2-1.0.1+dfsg.1/src/mailmap.c
Examining data/libgit2-1.0.1+dfsg.1/src/mailmap.h
Examining data/libgit2-1.0.1+dfsg.1/src/map.h
Examining data/libgit2-1.0.1+dfsg.1/src/merge.c
Examining data/libgit2-1.0.1+dfsg.1/src/merge.h
Examining data/libgit2-1.0.1+dfsg.1/src/merge_driver.c
Examining data/libgit2-1.0.1+dfsg.1/src/merge_driver.h
Examining data/libgit2-1.0.1+dfsg.1/src/merge_file.c
Examining data/libgit2-1.0.1+dfsg.1/src/message.c
Examining data/libgit2-1.0.1+dfsg.1/src/message.h
Examining data/libgit2-1.0.1+dfsg.1/src/mwindow.c
Examining data/libgit2-1.0.1+dfsg.1/src/mwindow.h
Examining data/libgit2-1.0.1+dfsg.1/src/net.c
Examining data/libgit2-1.0.1+dfsg.1/src/net.h
Examining data/libgit2-1.0.1+dfsg.1/src/netops.c
Examining data/libgit2-1.0.1+dfsg.1/src/netops.h
Examining data/libgit2-1.0.1+dfsg.1/src/notes.c
Examining data/libgit2-1.0.1+dfsg.1/src/notes.h
Examining data/libgit2-1.0.1+dfsg.1/src/object.c
Examining data/libgit2-1.0.1+dfsg.1/src/object.h
Examining data/libgit2-1.0.1+dfsg.1/src/object_api.c
Examining data/libgit2-1.0.1+dfsg.1/src/odb.c
Examining data/libgit2-1.0.1+dfsg.1/src/odb.h
Examining data/libgit2-1.0.1+dfsg.1/src/odb_loose.c
Examining data/libgit2-1.0.1+dfsg.1/src/odb_mempack.c
Examining data/libgit2-1.0.1+dfsg.1/src/odb_pack.c
Examining data/libgit2-1.0.1+dfsg.1/src/offmap.c
Examining data/libgit2-1.0.1+dfsg.1/src/offmap.h
Examining data/libgit2-1.0.1+dfsg.1/src/oid.c
Examining data/libgit2-1.0.1+dfsg.1/src/oid.h
Examining data/libgit2-1.0.1+dfsg.1/src/oidarray.c
Examining data/libgit2-1.0.1+dfsg.1/src/oidarray.h
Examining data/libgit2-1.0.1+dfsg.1/src/oidmap.c
Examining data/libgit2-1.0.1+dfsg.1/src/oidmap.h
Examining data/libgit2-1.0.1+dfsg.1/src/pack-objects.c
Examining data/libgit2-1.0.1+dfsg.1/src/pack-objects.h
Examining data/libgit2-1.0.1+dfsg.1/src/pack.c
Examining data/libgit2-1.0.1+dfsg.1/src/pack.h
Examining data/libgit2-1.0.1+dfsg.1/src/parse.c
Examining data/libgit2-1.0.1+dfsg.1/src/parse.h
Examining data/libgit2-1.0.1+dfsg.1/src/patch.c
Examining data/libgit2-1.0.1+dfsg.1/src/patch.h
Examining data/libgit2-1.0.1+dfsg.1/src/patch_generate.c
Examining data/libgit2-1.0.1+dfsg.1/src/patch_generate.h
Examining data/libgit2-1.0.1+dfsg.1/src/patch_parse.c
Examining data/libgit2-1.0.1+dfsg.1/src/patch_parse.h
Examining data/libgit2-1.0.1+dfsg.1/src/path.c
Examining data/libgit2-1.0.1+dfsg.1/src/path.h
Examining data/libgit2-1.0.1+dfsg.1/src/pathspec.c
Examining data/libgit2-1.0.1+dfsg.1/src/pathspec.h
Examining data/libgit2-1.0.1+dfsg.1/src/pool.c
Examining data/libgit2-1.0.1+dfsg.1/src/pool.h
Examining data/libgit2-1.0.1+dfsg.1/src/posix.c
Examining data/libgit2-1.0.1+dfsg.1/src/posix.h
Examining data/libgit2-1.0.1+dfsg.1/src/pqueue.c
Examining data/libgit2-1.0.1+dfsg.1/src/pqueue.h
Examining data/libgit2-1.0.1+dfsg.1/src/proxy.c
Examining data/libgit2-1.0.1+dfsg.1/src/proxy.h
Examining data/libgit2-1.0.1+dfsg.1/src/push.c
Examining data/libgit2-1.0.1+dfsg.1/src/push.h
Examining data/libgit2-1.0.1+dfsg.1/src/reader.c
Examining data/libgit2-1.0.1+dfsg.1/src/reader.h
Examining data/libgit2-1.0.1+dfsg.1/src/rebase.c
Examining data/libgit2-1.0.1+dfsg.1/src/refdb.c
Examining data/libgit2-1.0.1+dfsg.1/src/refdb.h
Examining data/libgit2-1.0.1+dfsg.1/src/refdb_fs.c
Examining data/libgit2-1.0.1+dfsg.1/src/refdb_fs.h
Examining data/libgit2-1.0.1+dfsg.1/src/reflog.c
Examining data/libgit2-1.0.1+dfsg.1/src/reflog.h
Examining data/libgit2-1.0.1+dfsg.1/src/refs.c
Examining data/libgit2-1.0.1+dfsg.1/src/refs.h
Examining data/libgit2-1.0.1+dfsg.1/src/refspec.c
Examining data/libgit2-1.0.1+dfsg.1/src/refspec.h
Examining data/libgit2-1.0.1+dfsg.1/src/regexp.c
Examining data/libgit2-1.0.1+dfsg.1/src/regexp.h
Examining data/libgit2-1.0.1+dfsg.1/src/remote.c
Examining data/libgit2-1.0.1+dfsg.1/src/remote.h
Examining data/libgit2-1.0.1+dfsg.1/src/repo_template.h
Examining data/libgit2-1.0.1+dfsg.1/src/repository.c
Examining data/libgit2-1.0.1+dfsg.1/src/repository.h
Examining data/libgit2-1.0.1+dfsg.1/src/reset.c
Examining data/libgit2-1.0.1+dfsg.1/src/revert.c
Examining data/libgit2-1.0.1+dfsg.1/src/revparse.c
Examining data/libgit2-1.0.1+dfsg.1/src/revwalk.c
Examining data/libgit2-1.0.1+dfsg.1/src/revwalk.h
Examining data/libgit2-1.0.1+dfsg.1/src/settings.c
Examining data/libgit2-1.0.1+dfsg.1/src/signature.c
Examining data/libgit2-1.0.1+dfsg.1/src/signature.h
Examining data/libgit2-1.0.1+dfsg.1/src/sortedcache.c
Examining data/libgit2-1.0.1+dfsg.1/src/sortedcache.h
Examining data/libgit2-1.0.1+dfsg.1/src/stash.c
Examining data/libgit2-1.0.1+dfsg.1/src/status.c
Examining data/libgit2-1.0.1+dfsg.1/src/status.h
Examining data/libgit2-1.0.1+dfsg.1/src/stream.h
Examining data/libgit2-1.0.1+dfsg.1/src/streams/mbedtls.c
Examining data/libgit2-1.0.1+dfsg.1/src/streams/mbedtls.h
Examining data/libgit2-1.0.1+dfsg.1/src/streams/openssl.c
Examining data/libgit2-1.0.1+dfsg.1/src/streams/openssl.h
Examining data/libgit2-1.0.1+dfsg.1/src/streams/registry.c
Examining data/libgit2-1.0.1+dfsg.1/src/streams/registry.h
Examining data/libgit2-1.0.1+dfsg.1/src/streams/socket.c
Examining data/libgit2-1.0.1+dfsg.1/src/streams/socket.h
Examining data/libgit2-1.0.1+dfsg.1/src/streams/stransport.c
Examining data/libgit2-1.0.1+dfsg.1/src/streams/stransport.h
Examining data/libgit2-1.0.1+dfsg.1/src/streams/tls.c
Examining data/libgit2-1.0.1+dfsg.1/src/streams/tls.h
Examining data/libgit2-1.0.1+dfsg.1/src/strmap.c
Examining data/libgit2-1.0.1+dfsg.1/src/strmap.h
Examining data/libgit2-1.0.1+dfsg.1/src/strnlen.h
Examining data/libgit2-1.0.1+dfsg.1/src/submodule.c
Examining data/libgit2-1.0.1+dfsg.1/src/submodule.h
Examining data/libgit2-1.0.1+dfsg.1/src/sysdir.c
Examining data/libgit2-1.0.1+dfsg.1/src/sysdir.h
Examining data/libgit2-1.0.1+dfsg.1/src/tag.c
Examining data/libgit2-1.0.1+dfsg.1/src/tag.h
Examining data/libgit2-1.0.1+dfsg.1/src/thread-utils.c
Examining data/libgit2-1.0.1+dfsg.1/src/thread-utils.h
Examining data/libgit2-1.0.1+dfsg.1/src/trace.c
Examining data/libgit2-1.0.1+dfsg.1/src/trace.h
Examining data/libgit2-1.0.1+dfsg.1/src/trailer.c
Examining data/libgit2-1.0.1+dfsg.1/src/transaction.c
Examining data/libgit2-1.0.1+dfsg.1/src/transaction.h
Examining data/libgit2-1.0.1+dfsg.1/src/transport.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/auth.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/auth.h
Examining data/libgit2-1.0.1+dfsg.1/src/transports/auth_negotiate.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/auth_negotiate.h
Examining data/libgit2-1.0.1+dfsg.1/src/transports/auth_ntlm.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/auth_ntlm.h
Examining data/libgit2-1.0.1+dfsg.1/src/transports/credential.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/credential_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/git.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/http.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/http.h
Examining data/libgit2-1.0.1+dfsg.1/src/transports/httpclient.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/httpclient.h
Examining data/libgit2-1.0.1+dfsg.1/src/transports/local.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/smart.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/smart.h
Examining data/libgit2-1.0.1+dfsg.1/src/transports/smart_pkt.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/ssh.c
Examining data/libgit2-1.0.1+dfsg.1/src/transports/ssh.h
Examining data/libgit2-1.0.1+dfsg.1/src/transports/winhttp.c
Examining data/libgit2-1.0.1+dfsg.1/src/tree-cache.c
Examining data/libgit2-1.0.1+dfsg.1/src/tree-cache.h
Examining data/libgit2-1.0.1+dfsg.1/src/tree.c
Examining data/libgit2-1.0.1+dfsg.1/src/tree.h
Examining data/libgit2-1.0.1+dfsg.1/src/tsort.c
Examining data/libgit2-1.0.1+dfsg.1/src/unix/map.c
Examining data/libgit2-1.0.1+dfsg.1/src/unix/posix.h
Examining data/libgit2-1.0.1+dfsg.1/src/unix/pthread.h
Examining data/libgit2-1.0.1+dfsg.1/src/unix/realpath.c
Examining data/libgit2-1.0.1+dfsg.1/src/userdiff.h
Examining data/libgit2-1.0.1+dfsg.1/src/util.c
Examining data/libgit2-1.0.1+dfsg.1/src/util.h
Examining data/libgit2-1.0.1+dfsg.1/src/varint.c
Examining data/libgit2-1.0.1+dfsg.1/src/varint.h
Examining data/libgit2-1.0.1+dfsg.1/src/vector.c
Examining data/libgit2-1.0.1+dfsg.1/src/vector.h
Examining data/libgit2-1.0.1+dfsg.1/src/wildmatch.c
Examining data/libgit2-1.0.1+dfsg.1/src/wildmatch.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/dir.c
Examining data/libgit2-1.0.1+dfsg.1/src/win32/dir.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/error.c
Examining data/libgit2-1.0.1+dfsg.1/src/win32/error.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/findfile.c
Examining data/libgit2-1.0.1+dfsg.1/src/win32/findfile.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/map.c
Examining data/libgit2-1.0.1+dfsg.1/src/win32/mingw-compat.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/msvc-compat.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/path_w32.c
Examining data/libgit2-1.0.1+dfsg.1/src/win32/path_w32.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/posix.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/posix_w32.c
Examining data/libgit2-1.0.1+dfsg.1/src/win32/precompiled.c
Examining data/libgit2-1.0.1+dfsg.1/src/win32/precompiled.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/reparse.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/thread.c
Examining data/libgit2-1.0.1+dfsg.1/src/win32/thread.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/utf-conv.c
Examining data/libgit2-1.0.1+dfsg.1/src/win32/utf-conv.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/version.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/w32_buffer.c
Examining data/libgit2-1.0.1+dfsg.1/src/win32/w32_buffer.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/w32_common.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c
Examining data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/w32_stack.c
Examining data/libgit2-1.0.1+dfsg.1/src/win32/w32_stack.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/w32_util.c
Examining data/libgit2-1.0.1+dfsg.1/src/win32/w32_util.h
Examining data/libgit2-1.0.1+dfsg.1/src/win32/win32-compat.h
Examining data/libgit2-1.0.1+dfsg.1/src/worktree.c
Examining data/libgit2-1.0.1+dfsg.1/src/worktree.h
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xdiff.h
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xdiffi.c
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xdiffi.h
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xemit.c
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xemit.h
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xhistogram.c
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xinclude.h
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xmacros.h
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xmerge.c
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xpatience.c
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xprepare.c
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xprepare.h
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xtypes.h
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xutils.c
Examining data/libgit2-1.0.1+dfsg.1/src/xdiff/xutils.h
Examining data/libgit2-1.0.1+dfsg.1/src/zstream.c
Examining data/libgit2-1.0.1+dfsg.1/src/zstream.h
Examining data/libgit2-1.0.1+dfsg.1/tests/apply/apply_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/apply/apply_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/apply/both.c
Examining data/libgit2-1.0.1+dfsg.1/tests/apply/callbacks.c
Examining data/libgit2-1.0.1+dfsg.1/tests/apply/check.c
Examining data/libgit2-1.0.1+dfsg.1/tests/apply/fromdiff.c
Examining data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c
Examining data/libgit2-1.0.1+dfsg.1/tests/apply/index.c
Examining data/libgit2-1.0.1+dfsg.1/tests/apply/partial.c
Examining data/libgit2-1.0.1+dfsg.1/tests/apply/tree.c
Examining data/libgit2-1.0.1+dfsg.1/tests/apply/workdir.c
Examining data/libgit2-1.0.1+dfsg.1/tests/attr/attr_expect.h
Examining data/libgit2-1.0.1+dfsg.1/tests/attr/file.c
Examining data/libgit2-1.0.1+dfsg.1/tests/attr/flags.c
Examining data/libgit2-1.0.1+dfsg.1/tests/attr/lookup.c
Examining data/libgit2-1.0.1+dfsg.1/tests/attr/macro.c
Examining data/libgit2-1.0.1+dfsg.1/tests/attr/repo.c
Examining data/libgit2-1.0.1+dfsg.1/tests/blame/blame_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/blame/blame_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/blame/buffer.c
Examining data/libgit2-1.0.1+dfsg.1/tests/blame/getters.c
Examining data/libgit2-1.0.1+dfsg.1/tests/blame/harder.c
Examining data/libgit2-1.0.1+dfsg.1/tests/blame/simple.c
Examining data/libgit2-1.0.1+dfsg.1/tests/buf/basic.c
Examining data/libgit2-1.0.1+dfsg.1/tests/buf/oom.c
Examining data/libgit2-1.0.1+dfsg.1/tests/buf/percent.c
Examining data/libgit2-1.0.1+dfsg.1/tests/buf/quote.c
Examining data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c
Examining data/libgit2-1.0.1+dfsg.1/tests/checkout/binaryunicode.c
Examining data/libgit2-1.0.1+dfsg.1/tests/checkout/checkout_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/checkout/checkout_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/checkout/conflict.c
Examining data/libgit2-1.0.1+dfsg.1/tests/checkout/crlf.c
Examining data/libgit2-1.0.1+dfsg.1/tests/checkout/head.c
Examining data/libgit2-1.0.1+dfsg.1/tests/checkout/icase.c
Examining data/libgit2-1.0.1+dfsg.1/tests/checkout/index.c
Examining data/libgit2-1.0.1+dfsg.1/tests/checkout/nasty.c
Examining data/libgit2-1.0.1+dfsg.1/tests/checkout/tree.c
Examining data/libgit2-1.0.1+dfsg.1/tests/checkout/typechange.c
Examining data/libgit2-1.0.1+dfsg.1/tests/cherrypick/bare.c
Examining data/libgit2-1.0.1+dfsg.1/tests/cherrypick/workdir.c
Examining data/libgit2-1.0.1+dfsg.1/tests/clar.c
Examining data/libgit2-1.0.1+dfsg.1/tests/clar.h
Examining data/libgit2-1.0.1+dfsg.1/tests/clar/fixtures.h
Examining data/libgit2-1.0.1+dfsg.1/tests/clar/fs.h
Examining data/libgit2-1.0.1+dfsg.1/tests/clar/print.h
Examining data/libgit2-1.0.1+dfsg.1/tests/clar/sandbox.h
Examining data/libgit2-1.0.1+dfsg.1/tests/clar/summary.h
Examining data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c
Examining data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.h
Examining data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2_timer.c
Examining data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2_timer.h
Examining data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2_trace.c
Examining data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2_trace.h
Examining data/libgit2-1.0.1+dfsg.1/tests/clone/empty.c
Examining data/libgit2-1.0.1+dfsg.1/tests/clone/local.c
Examining data/libgit2-1.0.1+dfsg.1/tests/clone/nonetwork.c
Examining data/libgit2-1.0.1+dfsg.1/tests/clone/transport.c
Examining data/libgit2-1.0.1+dfsg.1/tests/commit/commit.c
Examining data/libgit2-1.0.1+dfsg.1/tests/commit/parent.c
Examining data/libgit2-1.0.1+dfsg.1/tests/commit/parse.c
Examining data/libgit2-1.0.1+dfsg.1/tests/commit/signature.c
Examining data/libgit2-1.0.1+dfsg.1/tests/commit/write.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/add.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/backend.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/conditionals.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/config_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/config_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/config/configlevel.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/global.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/include.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/memory.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/multivar.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/new.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/read.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/readonly.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/rename.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/snapshot.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/stress.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/validkeyname.c
Examining data/libgit2-1.0.1+dfsg.1/tests/config/write.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/array.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/bitvec.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/buffer.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/copy.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/dirent.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/encoding.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/env.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/errors.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/features.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/filebuf.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/ftruncate.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/futils.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/hex.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/iconv.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/init.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/link.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/memmem.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/mkdir.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/oid.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/oidmap.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/opts.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/path.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/pool.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/posix.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/pqueue.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/qsort.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/regexp.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/rmdir.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/sha1.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/sortedcache.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/stat.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/string.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/strmap.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/strtol.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/structinit.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/useragent.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/vector.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/wildmatch.c
Examining data/libgit2-1.0.1+dfsg.1/tests/core/zstream.c
Examining data/libgit2-1.0.1+dfsg.1/tests/date/date.c
Examining data/libgit2-1.0.1+dfsg.1/tests/date/rfc2822.c
Examining data/libgit2-1.0.1+dfsg.1/tests/delta/apply.c
Examining data/libgit2-1.0.1+dfsg.1/tests/describe/describe.c
Examining data/libgit2-1.0.1+dfsg.1/tests/describe/describe_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/describe/describe_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/describe/t6120.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/binary.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/blob.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/diff_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/diff_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/diffiter.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/drivers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/format_email.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/index.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/notify.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/patch.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/patchid.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/pathspec.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/racediffiter.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/rename.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/stats.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/submodules.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/tree.c
Examining data/libgit2-1.0.1+dfsg.1/tests/diff/workdir.c
Examining data/libgit2-1.0.1+dfsg.1/tests/fetchhead/fetchhead_data.h
Examining data/libgit2-1.0.1+dfsg.1/tests/fetchhead/nonetwork.c
Examining data/libgit2-1.0.1+dfsg.1/tests/filter/bare.c
Examining data/libgit2-1.0.1+dfsg.1/tests/filter/blob.c
Examining data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c
Examining data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.h
Examining data/libgit2-1.0.1+dfsg.1/tests/filter/custom.c
Examining data/libgit2-1.0.1+dfsg.1/tests/filter/custom_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/filter/custom_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/filter/file.c
Examining data/libgit2-1.0.1+dfsg.1/tests/filter/ident.c
Examining data/libgit2-1.0.1+dfsg.1/tests/filter/query.c
Examining data/libgit2-1.0.1+dfsg.1/tests/filter/stream.c
Examining data/libgit2-1.0.1+dfsg.1/tests/filter/systemattrs.c
Examining data/libgit2-1.0.1+dfsg.1/tests/filter/wildcard.c
Examining data/libgit2-1.0.1+dfsg.1/tests/graph/ahead_behind.c
Examining data/libgit2-1.0.1+dfsg.1/tests/graph/descendant_of.c
Examining data/libgit2-1.0.1+dfsg.1/tests/ignore/path.c
Examining data/libgit2-1.0.1+dfsg.1/tests/ignore/status.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/add.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/addall.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/bypath.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/cache.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/collision.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/conflicts.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/conflicts.h
Examining data/libgit2-1.0.1+dfsg.1/tests/index/crlf.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/filemodes.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/inmemory.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/names.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/nsec.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/racy.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/read_index.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/read_tree.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/rename.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/reuc.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/splitindex.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/stage.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/tests.c
Examining data/libgit2-1.0.1+dfsg.1/tests/index/version.c
Examining data/libgit2-1.0.1+dfsg.1/tests/iterator/index.c
Examining data/libgit2-1.0.1+dfsg.1/tests/iterator/iterator_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/iterator/iterator_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/iterator/tree.c
Examining data/libgit2-1.0.1+dfsg.1/tests/iterator/workdir.c
Examining data/libgit2-1.0.1+dfsg.1/tests/mailmap/basic.c
Examining data/libgit2-1.0.1+dfsg.1/tests/mailmap/blame.c
Examining data/libgit2-1.0.1+dfsg.1/tests/mailmap/mailmap_testdata.h
Examining data/libgit2-1.0.1+dfsg.1/tests/mailmap/parsing.c
Examining data/libgit2-1.0.1+dfsg.1/tests/main.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/analysis.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/annotated_commit.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/conflict_data.h
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/driver.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/files.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/trees/automerge.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/trees/commits.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/trees/modeconflict.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/trees/recursive.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/trees/renames.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/trees/treediff.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/trees/trivial.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/trees/whitespace.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/workdir/dirty.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/workdir/recursive.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/workdir/renames.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/workdir/setup.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/workdir/simple.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/workdir/submodules.c
Examining data/libgit2-1.0.1+dfsg.1/tests/merge/workdir/trivial.c
Examining data/libgit2-1.0.1+dfsg.1/tests/message/trailer.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/cred.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/fetchlocal.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/joinpath.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/matchhost.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/redirect.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/refspecs.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/remote/defaultbranch.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/remote/delete.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/remote/isvalidname.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/remote/local.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/remote/push.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/remote/remotes.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/remote/rename.c
Examining data/libgit2-1.0.1+dfsg.1/tests/network/urlparse.c
Examining data/libgit2-1.0.1+dfsg.1/tests/notes/notes.c
Examining data/libgit2-1.0.1+dfsg.1/tests/notes/notesref.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/blob/filter.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/blob/fromstream.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/blob/write.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/cache.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/commit/commitstagedfile.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/commit/parse.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/lookup.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/lookupbypath.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/message.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/peel.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/raw/chars.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/raw/compare.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/raw/convert.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/raw/data.h
Examining data/libgit2-1.0.1+dfsg.1/tests/object/raw/fromstr.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/raw/hash.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/raw/short.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/raw/size.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/raw/type2string.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/raw/write.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/shortid.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/tag/list.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/tag/parse.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/tag/peel.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/tag/read.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/tag/write.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/tree/attributes.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/tree/duplicateentries.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/tree/frompath.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/tree/parse.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/tree/read.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/tree/update.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/tree/walk.c
Examining data/libgit2-1.0.1+dfsg.1/tests/object/tree/write.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/alternates.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/backend/backend_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/backend/backend_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/backend/mempack.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/backend/multiple.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/backend/nobackend.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/backend/nonrefreshing.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/backend/simple.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/emptyobjects.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/foreach.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/freshen.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/largefiles.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/loose.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/loose_data.h
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/pack_data.h
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/pack_data_one.h
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/packed.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/packed_one.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/sorting.c
Examining data/libgit2-1.0.1+dfsg.1/tests/odb/streamwrite.c
Examining data/libgit2-1.0.1+dfsg.1/tests/online/badssl.c
Examining data/libgit2-1.0.1+dfsg.1/tests/online/clone.c
Examining data/libgit2-1.0.1+dfsg.1/tests/online/fetch.c
Examining data/libgit2-1.0.1+dfsg.1/tests/online/fetchhead.c
Examining data/libgit2-1.0.1+dfsg.1/tests/online/push.c
Examining data/libgit2-1.0.1+dfsg.1/tests/online/push_util.c
Examining data/libgit2-1.0.1+dfsg.1/tests/online/push_util.h
Examining data/libgit2-1.0.1+dfsg.1/tests/online/remotes.c
Examining data/libgit2-1.0.1+dfsg.1/tests/pack/indexer.c
Examining data/libgit2-1.0.1+dfsg.1/tests/pack/packbuilder.c
Examining data/libgit2-1.0.1+dfsg.1/tests/pack/sharing.c
Examining data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c
Examining data/libgit2-1.0.1+dfsg.1/tests/patch/patch_common.h
Examining data/libgit2-1.0.1+dfsg.1/tests/patch/print.c
Examining data/libgit2-1.0.1+dfsg.1/tests/path/core.c
Examining data/libgit2-1.0.1+dfsg.1/tests/path/dotgit.c
Examining data/libgit2-1.0.1+dfsg.1/tests/path/win32.c
Examining data/libgit2-1.0.1+dfsg.1/tests/perf/helper__perf__do_merge.c
Examining data/libgit2-1.0.1+dfsg.1/tests/perf/helper__perf__do_merge.h
Examining data/libgit2-1.0.1+dfsg.1/tests/perf/helper__perf__timer.c
Examining data/libgit2-1.0.1+dfsg.1/tests/perf/helper__perf__timer.h
Examining data/libgit2-1.0.1+dfsg.1/tests/perf/merge.c
Examining data/libgit2-1.0.1+dfsg.1/tests/precompiled.c
Examining data/libgit2-1.0.1+dfsg.1/tests/precompiled.h
Examining data/libgit2-1.0.1+dfsg.1/tests/rebase/abort.c
Examining data/libgit2-1.0.1+dfsg.1/tests/rebase/inmemory.c
Examining data/libgit2-1.0.1+dfsg.1/tests/rebase/iterator.c
Examining data/libgit2-1.0.1+dfsg.1/tests/rebase/merge.c
Examining data/libgit2-1.0.1+dfsg.1/tests/rebase/setup.c
Examining data/libgit2-1.0.1+dfsg.1/tests/rebase/sign.c
Examining data/libgit2-1.0.1+dfsg.1/tests/rebase/submodule.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/basic.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/branches/checkedout.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/branches/create.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/branches/delete.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/branches/ishead.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/branches/iterator.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/branches/lookup.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/branches/move.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/branches/name.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/branches/remote.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/branches/upstream.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/branches/upstreamname.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/crashes.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/create.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/delete.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/dup.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/foreachglob.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/isvalidname.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/iterator.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/list.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/listall.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/lookup.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/namespaces.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/normalize.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/overwrite.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/pack.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/peel.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/races.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/read.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/ref_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/ref_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/reflog/drop.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/reflog/messages.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/reflog/reflog.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/reflog/reflog_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/reflog/reflog_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/rename.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/revparse.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/setter.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/shorthand.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/transactions.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/unicode.c
Examining data/libgit2-1.0.1+dfsg.1/tests/refs/update.c
Examining data/libgit2-1.0.1+dfsg.1/tests/remote/create.c
Examining data/libgit2-1.0.1+dfsg.1/tests/remote/insteadof.c
Examining data/libgit2-1.0.1+dfsg.1/tests/remote/list.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/config.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/discover.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/env.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/getters.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/hashfile.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/head.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/headtree.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/init.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/message.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/new.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/open.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/pathspec.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/repo_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/repo_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/reservedname.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/setters.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/shallow.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/state.c
Examining data/libgit2-1.0.1+dfsg.1/tests/repo/template.c
Examining data/libgit2-1.0.1+dfsg.1/tests/reset/default.c
Examining data/libgit2-1.0.1+dfsg.1/tests/reset/hard.c
Examining data/libgit2-1.0.1+dfsg.1/tests/reset/mixed.c
Examining data/libgit2-1.0.1+dfsg.1/tests/reset/reset_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/reset/reset_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/reset/soft.c
Examining data/libgit2-1.0.1+dfsg.1/tests/revert/bare.c
Examining data/libgit2-1.0.1+dfsg.1/tests/revert/workdir.c
Examining data/libgit2-1.0.1+dfsg.1/tests/revwalk/basic.c
Examining data/libgit2-1.0.1+dfsg.1/tests/revwalk/hidecb.c
Examining data/libgit2-1.0.1+dfsg.1/tests/revwalk/mergebase.c
Examining data/libgit2-1.0.1+dfsg.1/tests/revwalk/signatureparsing.c
Examining data/libgit2-1.0.1+dfsg.1/tests/revwalk/simplify.c
Examining data/libgit2-1.0.1+dfsg.1/tests/stash/apply.c
Examining data/libgit2-1.0.1+dfsg.1/tests/stash/drop.c
Examining data/libgit2-1.0.1+dfsg.1/tests/stash/foreach.c
Examining data/libgit2-1.0.1+dfsg.1/tests/stash/save.c
Examining data/libgit2-1.0.1+dfsg.1/tests/stash/stash_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/stash/stash_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/stash/submodules.c
Examining data/libgit2-1.0.1+dfsg.1/tests/status/renames.c
Examining data/libgit2-1.0.1+dfsg.1/tests/status/single.c
Examining data/libgit2-1.0.1+dfsg.1/tests/status/status_data.h
Examining data/libgit2-1.0.1+dfsg.1/tests/status/status_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/status/status_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/status/submodules.c
Examining data/libgit2-1.0.1+dfsg.1/tests/status/worktree.c
Examining data/libgit2-1.0.1+dfsg.1/tests/status/worktree_init.c
Examining data/libgit2-1.0.1+dfsg.1/tests/stream/deprecated.c
Examining data/libgit2-1.0.1+dfsg.1/tests/stream/registration.c
Examining data/libgit2-1.0.1+dfsg.1/tests/stress/diff.c
Examining data/libgit2-1.0.1+dfsg.1/tests/submodule/add.c
Examining data/libgit2-1.0.1+dfsg.1/tests/submodule/escape.c
Examining data/libgit2-1.0.1+dfsg.1/tests/submodule/init.c
Examining data/libgit2-1.0.1+dfsg.1/tests/submodule/inject_option.c
Examining data/libgit2-1.0.1+dfsg.1/tests/submodule/lookup.c
Examining data/libgit2-1.0.1+dfsg.1/tests/submodule/modify.c
Examining data/libgit2-1.0.1+dfsg.1/tests/submodule/nosubs.c
Examining data/libgit2-1.0.1+dfsg.1/tests/submodule/open.c
Examining data/libgit2-1.0.1+dfsg.1/tests/submodule/repository_init.c
Examining data/libgit2-1.0.1+dfsg.1/tests/submodule/status.c
Examining data/libgit2-1.0.1+dfsg.1/tests/submodule/submodule_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/submodule/submodule_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/submodule/update.c
Examining data/libgit2-1.0.1+dfsg.1/tests/threads/basic.c
Examining data/libgit2-1.0.1+dfsg.1/tests/threads/diff.c
Examining data/libgit2-1.0.1+dfsg.1/tests/threads/iterator.c
Examining data/libgit2-1.0.1+dfsg.1/tests/threads/refdb.c
Examining data/libgit2-1.0.1+dfsg.1/tests/threads/thread_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/threads/thread_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/tests/trace/trace.c
Examining data/libgit2-1.0.1+dfsg.1/tests/trace/windows/stacktrace.c
Examining data/libgit2-1.0.1+dfsg.1/tests/transport/register.c
Examining data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c
Examining data/libgit2-1.0.1+dfsg.1/tests/win32/forbidden.c
Examining data/libgit2-1.0.1+dfsg.1/tests/win32/longpath.c
Examining data/libgit2-1.0.1+dfsg.1/tests/worktree/bare.c
Examining data/libgit2-1.0.1+dfsg.1/tests/worktree/config.c
Examining data/libgit2-1.0.1+dfsg.1/tests/worktree/merge.c
Examining data/libgit2-1.0.1+dfsg.1/tests/worktree/open.c
Examining data/libgit2-1.0.1+dfsg.1/tests/worktree/reflog.c
Examining data/libgit2-1.0.1+dfsg.1/tests/worktree/refs.c
Examining data/libgit2-1.0.1+dfsg.1/tests/worktree/repository.c
Examining data/libgit2-1.0.1+dfsg.1/tests/worktree/submodule.c
Examining data/libgit2-1.0.1+dfsg.1/tests/worktree/worktree.c
Examining data/libgit2-1.0.1+dfsg.1/tests/worktree/worktree_helpers.c
Examining data/libgit2-1.0.1+dfsg.1/tests/worktree/worktree_helpers.h
Examining data/libgit2-1.0.1+dfsg.1/debian/tests/libgit2_test.c

FINAL RESULTS:

data/libgit2-1.0.1+dfsg.1/src/repository.c:1872: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/examples/blame.c:80:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(spec, o.path);
data/libgit2-1.0.1+dfsg.1/examples/blame.c:195:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(spec, "%s..%s", bare_args[0], bare_args[1]);
data/libgit2-1.0.1+dfsg.1/examples/common.h:48:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf sprintf_s
data/libgit2-1.0.1+dfsg.1/examples/general.c:735:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(config_path, "%s/config", repo_path);
data/libgit2-1.0.1+dfsg.1/examples/merge.c:241:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	msglen = snprintf(NULL, 0, MERGE_COMMIT_MSG, (merge_ref ? "branch" : "commit"), msg_target);
data/libgit2-1.0.1+dfsg.1/examples/merge.c:244:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	err = snprintf(msg, msglen, MERGE_COMMIT_MSG, (merge_ref ? "branch" : "commit"), msg_target);
data/libgit2-1.0.1+dfsg.1/examples/stash.c:42:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/libgit2-1.0.1+dfsg.1/include/git2/common.h:69: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/unix/posix.h:62:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define p_snprintf snprintf
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/win32/findfile.c:92:3:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
		wcscpy(&root.path[root.len], gitexe);
data/libgit2-1.0.1+dfsg.1/src/win32/findfile.c:96:4:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
			wcscpy(&root.path[root.len - 4], subdir);
data/libgit2-1.0.1+dfsg.1/src/win32/findfile.c:127:4:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
			wcscat(path, subdir);
data/libgit2-1.0.1+dfsg.1/src/win32/path_w32.c:411:4:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
			wcscpy(dest, target);
data/libgit2-1.0.1+dfsg.1/src/win32/posix_w32.c:464:8:  [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.
	DWORD access;
data/libgit2-1.0.1+dfsg.1/src/win32/posix_w32.c:524:42:  [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.
	HANDLE handle = CreateFileW(path, opts->access, opts->sharing,
data/libgit2-1.0.1+dfsg.1/src/win32/posix_w32.c:840:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	return vsnprintf(buffer, count, format, argptr);
data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c:191:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "LEAK CHECKPOINT %d: leaks %d unique %d: %s\n",
data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c:195:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "LEAK SUMMARY: TOTAL leaks %d de-duped %d: %s\n",
data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c:203:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(buf, "LEAK: %s leaked %d of %d times:\n",
data/libgit2-1.0.1+dfsg.1/src/win32/w32_util.c:41:2:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
	wcscat(dest, suffix);
data/libgit2-1.0.1+dfsg.1/tests/blame/blame_helpers.c:11:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, arglist);
data/libgit2-1.0.1+dfsg.1/tests/checkout/tree.c:926:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "testrepo/%s.txt", longname);
data/libgit2-1.0.1+dfsg.1/tests/clar.c:37:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#	ifndef access
data/libgit2-1.0.1+dfsg.1/tests/clar.c:38:11:  [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 access(path, mode) _access(path, mode)
data/libgit2-1.0.1+dfsg.1/tests/clar.c:60:22:  [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 snprintf
data/libgit2-1.0.1+dfsg.1/tests/clar.c:79:21:  [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 snprintf
data/libgit2-1.0.1+dfsg.1/tests/clar/fs.h:10:27:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
#define wcscpy_s(a, b, c) wcscpy((a), (c))
data/libgit2-1.0.1+dfsg.1/tests/clar/fs.h:11:27:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
#define wcscat_s(a, b, c) wcscat((a), (c))
data/libgit2-1.0.1+dfsg.1/tests/clar/fs.h:274:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execv(argv[0], argv);
data/libgit2-1.0.1+dfsg.1/tests/clar/print.h:65:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, msg, argp);
data/libgit2-1.0.1+dfsg.1/tests/clar/sandbox.h:18:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return (access(path, W_OK) == 0);
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c:439:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(buf, CL_COMMIT_MSG);
data/libgit2-1.0.1+dfsg.1/tests/iterator/workdir.c:728:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	cl_assert(!access("empty_standard_repo/fifo", F_OK));
data/libgit2-1.0.1+dfsg.1/tests/main.c:34:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		int at_exit = system(at_exit_cmd);
data/libgit2-1.0.1+dfsg.1/tests/network/remote/local.c:383:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(expected_reflog_msg, "fetch %s", git_remote_url(remote));
data/libgit2-1.0.1+dfsg.1/tests/path/win32.c:178:2:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	wcscpy(canonical, in);
data/libgit2-1.0.1+dfsg.1/tests/path/win32.c:191:2:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	wcscpy(canonical, in);
data/libgit2-1.0.1+dfsg.1/tests/perf/helper__perf__timer.c:32:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, arglist);
data/libgit2-1.0.1+dfsg.1/tests/perf/helper__perf__timer.c:67:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, arglist);
data/libgit2-1.0.1+dfsg.1/tests/status/worktree.c:961:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "empty_standard_repo/%s", longname);
data/libgit2-1.0.1+dfsg.1/tests/status/worktree.c:963:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "empty_standard_repo/%s/foo", longname);
data/libgit2-1.0.1+dfsg.1/tests/status/worktree.c:966:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/foo", longname);
data/libgit2-1.0.1+dfsg.1/fuzzers/download_refs_fuzzer.c:174:6:  [3] (tmpfile) GetTempFileName:
  Temporary file race condition in certain cases (e.g., if run as SYSTEM in
  many versions of Windows) (CWE-377).
	if (GetTempFileName(tmpdir, "lg2", 1, path) == 0)
data/libgit2-1.0.1+dfsg.1/src/hash/sha1/win32.c:47:29:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
		(hash_prov.prov.cng.dll = LoadLibrary(dll_path)) == NULL) {
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/util.c:919: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/libgit2-1.0.1+dfsg.1/src/win32/thread.c:114:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(mutex);
data/libgit2-1.0.1+dfsg.1/src/win32/thread.c:126:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(mutex);
data/libgit2-1.0.1+dfsg.1/src/win32/thread.c:202:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
		InitializeCriticalSection(&lock->native.csec);
data/libgit2-1.0.1+dfsg.1/src/win32/thread.c:212:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&lock->native.csec);
data/libgit2-1.0.1+dfsg.1/src/win32/thread.c:232:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&lock->native.csec);
data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c:224:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&g_crtdbg_stacktrace_cs);
data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c:226:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&g_crtdbg_stacktrace_cs);
data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c:265:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&g_crtdbg_stacktrace_cs);
data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c:329:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&g_crtdbg_stacktrace_cs);
data/libgit2-1.0.1+dfsg.1/tests/clar.c:496:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((_clar.summary_filename = getenv("CLAR_SUMMARY")) != NULL) {
data/libgit2-1.0.1+dfsg.1/tests/clar/sandbox.h:33:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char *env = getenv(env_vars[i]);
data/libgit2-1.0.1+dfsg.1/tests/clar/sandbox.h:39:30:  [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 (length >= PATH_MAX && realpath(env, buffer) != NULL)
data/libgit2-1.0.1+dfsg.1/tests/clar/sandbox.h:50:29:  [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 (length >= PATH_MAX && realpath("/tmp", buffer) != NULL)
data/libgit2-1.0.1+dfsg.1/tests/core/zstream.c:160:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand(0xabad1dea);
data/libgit2-1.0.1+dfsg.1/tests/diff/diffiter.c:294:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(121212);
data/libgit2-1.0.1+dfsg.1/tests/main.c:32:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	at_exit_cmd = getenv("CLAR_AT_EXIT");
data/libgit2-1.0.1+dfsg.1/examples/blame.c:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char spec[1024] = {0};
data/libgit2-1.0.1+dfsg.1/examples/blame.c:76:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(spec, "HEAD");
data/libgit2-1.0.1+dfsg.1/examples/blame.c:95: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[10] = {0};
data/libgit2-1.0.1+dfsg.1/examples/blame.c:102: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 sig[128] = {0};
data/libgit2-1.0.1+dfsg.1/examples/blame.c:149:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *bare_args[3] = {0};
data/libgit2-1.0.1+dfsg.1/examples/blame.c:193: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 spec[128] = {0};
data/libgit2-1.0.1+dfsg.1/examples/cat-file.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char oidstr[GIT_OID_HEXSZ + 1];
data/libgit2-1.0.1+dfsg.1/examples/cat-file.c:73:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char oidstr[GIT_OID_HEXSZ + 1];
data/libgit2-1.0.1+dfsg.1/examples/cat-file.c:93:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char oidstr[GIT_OID_HEXSZ + 1];
data/libgit2-1.0.1+dfsg.1/examples/cat-file.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 oidstr[GIT_OID_HEXSZ + 1];
data/libgit2-1.0.1+dfsg.1/examples/cat-file.c:136: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 oidstr[GIT_OID_HEXSZ + 1];
data/libgit2-1.0.1+dfsg.1/examples/common.c:235:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(path, O_RDONLY)) < 0 || fstat(fd, &st) < 0)
data/libgit2-1.0.1+dfsg.1/examples/common.h:29:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
# define open _open
data/libgit2-1.0.1+dfsg.1/examples/fetch.c:18:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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], b_str[GIT_OID_HEXSZ+1];
data/libgit2-1.0.1+dfsg.1/examples/for-each-ref.c:8:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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];
data/libgit2-1.0.1+dfsg.1/examples/general.c:132:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char out[GIT_OID_HEXSZ+1];
data/libgit2-1.0.1+dfsg.1/examples/general.c:181:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_hex[GIT_OID_HEXSZ+1] = { 0 };
data/libgit2-1.0.1+dfsg.1/examples/general.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 oid_hex[GIT_OID_HEXSZ+1] = { 0 };
data/libgit2-1.0.1+dfsg.1/examples/general.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 oid_hex[GIT_OID_HEXSZ+1];
data/libgit2-1.0.1+dfsg.1/examples/general.c:687: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_hex[GIT_OID_HEXSZ+1] = GIT_OID_HEX_ZERO;
data/libgit2-1.0.1+dfsg.1/examples/general.c:724:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char config_path[256];
data/libgit2-1.0.1+dfsg.1/examples/index-pack.c: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 hash[GIT_OID_HEXSZ + 1] = {0};
data/libgit2-1.0.1+dfsg.1/examples/index-pack.c:23:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512];
data/libgit2-1.0.1+dfsg.1/examples/index-pack.c:37:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(argv[1], 0)) < 0) {
data/libgit2-1.0.1+dfsg.1/examples/log.c:305:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sign, out[32];
data/libgit2-1.0.1+dfsg.1/examples/log.c:332:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[GIT_OID_HEXSZ + 1];
data/libgit2-1.0.1+dfsg.1/examples/ls-files.c:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *files[1024];
data/libgit2-1.0.1+dfsg.1/examples/ls-remote.c:37: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] = {0};
data/libgit2-1.0.1+dfsg.1/examples/rev-list.c:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_OID_HEXSZ+1];
data/libgit2-1.0.1+dfsg.1/examples/rev-parse.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[GIT_OID_HEXSZ + 1];
data/libgit2-1.0.1+dfsg.1/examples/show-index.c:23:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char out[GIT_OID_HEXSZ+1];
data/libgit2-1.0.1+dfsg.1/examples/status.c:49:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *pathspec[MAX_PATHSPEC];
data/libgit2-1.0.1+dfsg.1/fuzzers/download_refs_fuzzer.c:48: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, fs->readp, *bytes_read);
data/libgit2-1.0.1+dfsg.1/fuzzers/download_refs_fuzzer.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 tmpdir[MAX_PATH], path[MAX_PATH];
data/libgit2-1.0.1+dfsg.1/fuzzers/objects_fuzzer.c:40:44:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		if (git_object__from_raw(&object, (const char *) data, size, types[i]) < 0)
data/libgit2-1.0.1+dfsg.1/include/git2/cert.h:101: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/libgit2-1.0.1+dfsg.1/include/git2/cert.h:107: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/libgit2-1.0.1+dfsg.1/include/git2/cert.h:113: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_sha256[32];
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/include/git2/sys/credential.h: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 username[1];      /**< The username to authenticate as */
data/libgit2-1.0.1+dfsg.1/src/alloc.c:41: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/libgit2-1.0.1+dfsg.1/src/allocators/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/libgit2-1.0.1+dfsg.1/src/allocators/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/libgit2-1.0.1+dfsg.1/src/allocators/win32_crtdbg.c:47:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ptr, str, length);
data/libgit2-1.0.1+dfsg.1/src/allocators/win32_crtdbg.c:63: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/apply.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(&ctx.opts, given_opts, sizeof(git_apply_options));
data/libgit2-1.0.1+dfsg.1/src/apply.c:628: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/libgit2-1.0.1+dfsg.1/src/apply.c:810: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/libgit2-1.0.1+dfsg.1/src/attr_file.h:98:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/attrcache.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(ce->fullpath, base, baselen);
data/libgit2-1.0.1+dfsg.1/src/attrcache.c:66: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/blame_git.c:233: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/libgit2-1.0.1+dfsg.1/src/blame_git.c:239: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/libgit2-1.0.1+dfsg.1/src/blame_git.c:252: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/libgit2-1.0.1+dfsg.1/src/blame_git.c:259: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/blob.c:422: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_blob_filter_options));
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/buffer.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(buf->ptr + strlen_a + need_sep, str_b, strlen_b);
data/libgit2-1.0.1+dfsg.1/src/buffer.c:835: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/libgit2-1.0.1+dfsg.1/src/buffer.c:841: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/libgit2-1.0.1+dfsg.1/src/buffer.c:847: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/libgit2-1.0.1+dfsg.1/src/buffer.c:900: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/checkout.c:1468: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/libgit2-1.0.1+dfsg.1/src/checkout.c:1486: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/clone.c:261:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/clone.c:340: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/libgit2-1.0.1+dfsg.1/src/clone.c:400: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/libgit2-1.0.1+dfsg.1/src/common.h:145: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/libgit2-1.0.1+dfsg.1/src/config.c:323: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/libgit2-1.0.1+dfsg.1/src/config.c:629:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str_value[32]; /* All numbers should fit in here */
data/libgit2-1.0.1+dfsg.1/src/config_backend.h:51: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/describe.c:187: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/libgit2-1.0.1+dfsg.1/src/describe.c:263: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/libgit2-1.0.1+dfsg.1/src/describe.c:399:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hex_oid[GIT_OID_HEXSZ];
data/libgit2-1.0.1+dfsg.1/src/describe.c:416:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/describe.c:767: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/libgit2-1.0.1+dfsg.1/src/describe.c:816: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/diff_driver.c: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 name[GIT_FLEX_ARRAY];
data/libgit2-1.0.1+dfsg.1/src/diff_driver.c:173: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/libgit2-1.0.1+dfsg.1/src/diff_driver.c:359: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/libgit2-1.0.1+dfsg.1/src/diff_driver.c:493: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/diff_print.c:275:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/filter.c:960:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/futils.c:649: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/libgit2-1.0.1+dfsg.1/src/futils.c:851:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/futils.c:1133: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/hash/sha1/generic.c:262: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(lenW + (char *)ctx->W, data, left);
data/libgit2-1.0.1+dfsg.1/src/hash/sha1/generic.c:276: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->W, data, len);
data/libgit2-1.0.1+dfsg.1/src/hash/sha1/generic.c:283:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const unsigned char pad[64] = { 0x80 };
data/libgit2-1.0.1+dfsg.1/src/hash/sha1/sha1dc/sha1.c:197: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/libgit2-1.0.1+dfsg.1/src/hash/sha1/sha1dc/sha1.c:1834: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/libgit2-1.0.1+dfsg.1/src/hash/sha1/sha1dc/sha1.c:1847: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/libgit2-1.0.1+dfsg.1/src/hash/sha1/sha1dc/sha1.c:1856: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/libgit2-1.0.1+dfsg.1/src/hash/sha1/sha1dc/sha1.c:1860: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/libgit2-1.0.1+dfsg.1/src/hash/sha1/sha1dc/sha1.c:1868: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/libgit2-1.0.1+dfsg.1/src/hash/sha1/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/libgit2-1.0.1+dfsg.1/src/hash/sha1/win32.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dll_path[MAX_PATH];
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/index.c:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char signature[4];
data/libgit2-1.0.1+dfsg.1/src/index.c:79:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[1]; /* arbitrary length */
data/libgit2-1.0.1+dfsg.1/src/index.c: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 path[1]; /* arbitrary length */
data/libgit2-1.0.1+dfsg.1/src/index.c:106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[GIT_FLEX_ARRAY];
data/libgit2-1.0.1+dfsg.1/src/index.c:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/index.c:950: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/libgit2-1.0.1+dfsg.1/src/index.c:1027: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/libgit2-1.0.1+dfsg.1/src/index.c:1069: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/libgit2-1.0.1+dfsg.1/src/index.c:1213: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/libgit2-1.0.1+dfsg.1/src/index.c:1263: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/libgit2-1.0.1+dfsg.1/src/index.c:1401: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/libgit2-1.0.1+dfsg.1/src/index.c:2371: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/libgit2-1.0.1+dfsg.1/src/index.c:2442: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/libgit2-1.0.1+dfsg.1/src/index.c:2466: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/libgit2-1.0.1+dfsg.1/src/index.c:2510: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/libgit2-1.0.1+dfsg.1/src/index.c:2511: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/libgit2-1.0.1+dfsg.1/src/index.c:2555: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/libgit2-1.0.1+dfsg.1/src/index.c:2784: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/libgit2-1.0.1+dfsg.1/src/index.c:2787: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/libgit2-1.0.1+dfsg.1/src/index.c:2791: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/libgit2-1.0.1+dfsg.1/src/index.c:2817: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/libgit2-1.0.1+dfsg.1/src/index.c:2861: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/libgit2-1.0.1+dfsg.1/src/index.c:2912: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/libgit2-1.0.1+dfsg.1/src/index.c:2960: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/libgit2-1.0.1+dfsg.1/src/index.c:2984: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/libgit2-1.0.1+dfsg.1/src/indexer.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char objbuf[8*1024];
data/libgit2-1.0.1+dfsg.1/src/indexer.c:72:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char inbuf[GIT_OID_RAWSZ];
data/libgit2-1.0.1+dfsg.1/src/indexer.c:94: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/libgit2-1.0.1+dfsg.1/src/indexer.c:225:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[64];
data/libgit2-1.0.1+dfsg.1/src/indexer.c:576: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/libgit2-1.0.1+dfsg.1/src/indexer.c:583: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/libgit2-1.0.1+dfsg.1/src/indexer.c:595: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/libgit2-1.0.1+dfsg.1/src/indexer.c:622: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/libgit2-1.0.1+dfsg.1/src/indexer.c:866: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/iterator.c:1929: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/libgit2-1.0.1+dfsg.1/src/iterator.c:1996: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/libgit2-1.0.1+dfsg.1/src/merge.c:808: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/libgit2-1.0.1+dfsg.1/src/merge.c:810: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/libgit2-1.0.1+dfsg.1/src/merge.c:1409: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/libgit2-1.0.1+dfsg.1/src/merge.c:1678: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/libgit2-1.0.1+dfsg.1/src/merge.c:1852: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/libgit2-1.0.1+dfsg.1/src/merge.c:1855: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/libgit2-1.0.1+dfsg.1/src/merge.c:2107: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/libgit2-1.0.1+dfsg.1/src/merge.c:2247: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/libgit2-1.0.1+dfsg.1/src/merge.c:2286: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/libgit2-1.0.1+dfsg.1/src/merge.c:2877: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/libgit2-1.0.1+dfsg.1/src/merge.c:2879: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/net.c:346:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&tmp, a, sizeof(git_net_url));
data/libgit2-1.0.1+dfsg.1/src/net.c:347: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(git_net_url));
data/libgit2-1.0.1+dfsg.1/src/net.c:348: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, &tmp, sizeof(git_net_url));
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/object.c:351:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/object.c:508: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/odb.c:381: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/libgit2-1.0.1+dfsg.1/src/odb.c:1330:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/odb.c:1545:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/odb.c:1560: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/odb_loose.c:478: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/libgit2-1.0.1+dfsg.1/src/odb_loose.c:831:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/odb_loose.c:887: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/libgit2-1.0.1+dfsg.1/src/odb_loose.c:948: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/libgit2-1.0.1+dfsg.1/src/odb_loose.c:974: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/libgit2-1.0.1+dfsg.1/src/odb_loose.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 header[MAX_HEADER_LEN];
data/libgit2-1.0.1+dfsg.1/src/odb_loose.c:1140: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/odb_mempack.c:49: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/libgit2-1.0.1+dfsg.1/src/odb_mempack.c:86:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*buffer_p, obj->data, obj->len);
data/libgit2-1.0.1+dfsg.1/src/oid.c:166:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/pack-objects.c:325: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/libgit2-1.0.1+dfsg.1/src/pack-objects.c:804: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/libgit2-1.0.1+dfsg.1/src/pack-objects.c:826: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/libgit2-1.0.1+dfsg.1/src/pack-objects.c:1050: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/pack.c:555: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/libgit2-1.0.1+dfsg.1/src/pack.c:648: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/libgit2-1.0.1+dfsg.1/src/pack.c:692: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/libgit2-1.0.1+dfsg.1/src/pack.c:1100: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/libgit2-1.0.1+dfsg.1/src/pack.c:1110:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p->pack_name + root_len, ".keep", sizeof(".keep"));
data/libgit2-1.0.1+dfsg.1/src/pack.c:1115: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/libgit2-1.0.1+dfsg.1/src/pack.c:1352: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/libgit2-1.0.1+dfsg.1/src/pack.h:106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pack_name[GIT_FLEX_ARRAY]; /* more */
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/patch_parse.c:546: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/libgit2-1.0.1+dfsg.1/src/patch_parse.c:1095: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/libgit2-1.0.1+dfsg.1/src/patch_parse.c:1097: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/libgit2-1.0.1+dfsg.1/src/path.c:390:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/path.c:772: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/libgit2-1.0.1+dfsg.1/src/path.c:966: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/libgit2-1.0.1+dfsg.1/src/path.c:1072:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/path.c:1089: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/libgit2-1.0.1+dfsg.1/src/path.c:1096: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/libgit2-1.0.1+dfsg.1/src/path.c:1116: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/libgit2-1.0.1+dfsg.1/src/path.c:1271: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/libgit2-1.0.1+dfsg.1/src/path.c:1543: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/libgit2-1.0.1+dfsg.1/src/path.c:1545: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/pool.c:242: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/libgit2-1.0.1+dfsg.1/src/pool.c:244: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/proxy.c:31: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/rebase.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 id_str[GIT_OID_HEXSZ];
data/libgit2-1.0.1+dfsg.1/src/rebase.c:473:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/rebase.c:762: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/libgit2-1.0.1+dfsg.1/src/rebase.c:802:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/rebase.c:1052:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/rebase.c:1321:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[GIT_FLEX_ARRAY];
data/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:826: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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:942:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:956: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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:1829:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:1830:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/refs.c:107: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/libgit2-1.0.1+dfsg.1/src/refs.c:703: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/regexp.c:80: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 errmsg[1024];
data/libgit2-1.0.1+dfsg.1/src/regexp.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 errmsg[1024];
data/libgit2-1.0.1+dfsg.1/src/repository.c:364:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/repository.c:365:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf2[GIT_PATH_MAX + 1];
data/libgit2-1.0.1+dfsg.1/src/repository.c:2500:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/sortedcache.c:296: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/stash.c:757: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/libgit2-1.0.1+dfsg.1/src/stash.c:760: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/libgit2-1.0.1+dfsg.1/src/status.c:305: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/streams/openssl.c:432: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/libgit2-1.0.1+dfsg.1/src/streams/openssl.c:445: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/libgit2-1.0.1+dfsg.1/src/streams/openssl.c:585: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/libgit2-1.0.1+dfsg.1/src/streams/openssl.c:814: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/submodule.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(&opts.checkout_opts, &sub_opts.checkout_opts, sizeof(sub_opts.checkout_opts));
data/libgit2-1.0.1+dfsg.1/src/submodule.c:851: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(&opts.fetch_opts, &sub_opts.fetch_opts, sizeof(sub_opts.fetch_opts));
data/libgit2-1.0.1+dfsg.1/src/submodule.c:1264: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/libgit2-1.0.1+dfsg.1/src/submodule.c:1269: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/libgit2-1.0.1+dfsg.1/src/submodule.c:1647: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/libgit2-1.0.1+dfsg.1/src/tag.c:124:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tag->tag_name, buffer, text_len);
data/libgit2-1.0.1+dfsg.1/src/tag.c:156: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/libgit2-1.0.1+dfsg.1/src/trailer.c:273: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/transaction.c:381: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/libgit2-1.0.1+dfsg.1/src/transports/credential.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/libgit2-1.0.1+dfsg.1/src/transports/credential.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/libgit2-1.0.1+dfsg.1/src/transports/httpclient.c:408:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ctx->output_buf + ctx->output_written, buf, max_len);
data/libgit2-1.0.1+dfsg.1/src/transports/httpclient.c:889: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(&client->early_response, response, sizeof(git_http_response));
data/libgit2-1.0.1+dfsg.1/src/transports/httpclient.c:1363: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(response, &client->early_response, sizeof(git_http_response));
data/libgit2-1.0.1+dfsg.1/src/transports/httpclient.c:1508: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(&client->opts, opts, sizeof(git_http_client_options));
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:629:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char old_id[GIT_OID_HEXSZ+1], new_id[GIT_OID_HEXSZ+1];
data/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:1003:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/src/transports/ssh.c:573: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_sha256, key, 32);
data/libgit2-1.0.1+dfsg.1/src/transports/ssh.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(&cert.hash_sha1, key, 20);
data/libgit2-1.0.1+dfsg.1/src/transports/ssh.c:586: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/libgit2-1.0.1+dfsg.1/src/transports/winhttp.c:369: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/libgit2-1.0.1+dfsg.1/src/transports/winhttp.c:984: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/libgit2-1.0.1+dfsg.1/src/transports/winhttp.c:985: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/libgit2-1.0.1+dfsg.1/src/transports/winhttp.c:1334: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/libgit2-1.0.1+dfsg.1/src/transports/winhttp.c:1413: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/libgit2-1.0.1+dfsg.1/src/transports/winhttp.c:1427: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/libgit2-1.0.1+dfsg.1/src/tree-cache.c:252:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tree->name, name, name_len);
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/util.c:728:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[256];
data/libgit2-1.0.1+dfsg.1/src/util.c:732: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, a + elsize - n, n);
data/libgit2-1.0.1+dfsg.1/src/util.c:733: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 + elsize - n, b + elsize - n, n);
data/libgit2-1.0.1+dfsg.1/src/util.c:734: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 + elsize - n, tmp, n);
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/wildmatch.c:42: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 sane_ctype[256] = {
data/libgit2-1.0.1+dfsg.1/src/win32/dir.c:29: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(new->dir, dir, dirlen);
data/libgit2-1.0.1+dfsg.1/src/win32/dir.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 dir[GIT_FLEX_ARRAY];
data/libgit2-1.0.1+dfsg.1/src/win32/findfile.c:195:15:  [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.
	static const wchar_t *global_tmpls[4] = {
data/libgit2-1.0.1+dfsg.1/src/win32/findfile.c:207:15:  [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.
	static const wchar_t *global_tmpls[7] = {
data/libgit2-1.0.1+dfsg.1/src/win32/findfile.c:222:15:  [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.
	static const wchar_t *programdata_tmpls[2] = {
data/libgit2-1.0.1+dfsg.1/src/win32/path_w32.c:203: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, PATH__NT_NAMESPACE, sizeof(wchar_t) * PATH__NT_NAMESPACE_LEN);
data/libgit2-1.0.1+dfsg.1/src/win32/path_w32.c:219: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, L"UNC\\", sizeof(wchar_t) * 4);
data/libgit2-1.0.1+dfsg.1/src/win32/path_w32.c:300: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, "\\\\", 2);
data/libgit2-1.0.1+dfsg.1/src/win32/posix.h:28:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int p_utimes(const char *filename, const struct p_timeval times[2]);
data/libgit2-1.0.1+dfsg.1/src/win32/posix_w32.c:412: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, target, bufsiz);
data/libgit2-1.0.1+dfsg.1/src/win32/posix_w32.c:570:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 p_utimes(const char *path, const struct p_timeval times[2])
data/libgit2-1.0.1+dfsg.1/src/win32/posix_w32.c:932:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (result, local_result, sizeof (struct tm));
data/libgit2-1.0.1+dfsg.1/src/win32/posix_w32.c:944:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (result, local_result, sizeof (struct tm));
data/libgit2-1.0.1+dfsg.1/src/win32/posix_w32.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(dst, addr, addr_len);
data/libgit2-1.0.1+dfsg.1/src/win32/utf-conv.c:33:13:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	if ((len = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, src, -1, dest, (int)dest_size) - 1) < 0)
data/libgit2-1.0.1+dfsg.1/src/win32/utf-conv.c:76:15:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	utf16_size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, src, -1, NULL, 0);
data/libgit2-1.0.1+dfsg.1/src/win32/utf-conv.c:88:15:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	utf16_size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, src, -1, *dest, utf16_size);
data/libgit2-1.0.1+dfsg.1/src/win32/w32_common.h:36:9:  [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.
typedef wchar_t git_win32_path[GIT_WIN_PATH_UTF16];
data/libgit2-1.0.1+dfsg.1/src/win32/w32_common.h:37:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char git_win32_utf8_path[GIT_WIN_PATH_UTF8];
data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c:23:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char uid[CRTDBG_STACKTRACE__UID_LEN + 1];
data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c:95:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&g_cs_rows[g_cs_ins].raw_data, pdata, sizeof(*pdata));
data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c:96:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(g_cs_rows[g_cs_ins].uid.uid, "##%08lx", g_cs_ins);
data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c:171:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10 * 1024];
data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c:181:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf,
data/libgit2-1.0.1+dfsg.1/src/win32/w32_stack.c:90:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char extra[MY_MAX_FILENAME + 1];
data/libgit2-1.0.1+dfsg.1/src/win32/w32_stack.c:96:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char detail[MY_MAX_FILENAME * 2]; /* filename plus space for function name and formatting */
data/libgit2-1.0.1+dfsg.1/src/win32/w32_stack.c:146: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(&pbuf[buf_used], detail, detail_len);
data/libgit2-1.0.1+dfsg.1/src/win32/w32_stack.c:158:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&pbuf[buf_used], detail, detail_len);
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/xdiff/xmerge.c:726: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/libgit2-1.0.1+dfsg.1/src/xdiff/xmerge.c:736: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/tests/attr/macro.c:23: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 *names[7] = { "rootattr", "binary", "diff", "crlf", "merge", "text", "frotz" };
data/libgit2-1.0.1+dfsg.1/tests/attr/macro.c:24:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *names2[5] = { "mymacro", "positive", "negative", "rootattr", "another" };
data/libgit2-1.0.1+dfsg.1/tests/attr/macro.c:25: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 *names3[3] = { "macro2", "multi2", "multi3" };
data/libgit2-1.0.1+dfsg.1/tests/attr/macro.c:26: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[7];
data/libgit2-1.0.1+dfsg.1/tests/attr/macro.c:57: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 *names[6] = { "rootattr", "positive", "negative",
data/libgit2-1.0.1+dfsg.1/tests/attr/macro.c:59: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[6];
data/libgit2-1.0.1+dfsg.1/tests/attr/repo.c:104: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 *names[4] = { "repoattr", "rootattr", "missingattr", "subattr" };
data/libgit2-1.0.1+dfsg.1/tests/attr/repo.c:105: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[4];
data/libgit2-1.0.1+dfsg.1/tests/attr/repo.c:131: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 *vals[4] = { "repoattr", "rootattr", "missingattr", "subattr" };
data/libgit2-1.0.1+dfsg.1/tests/attr/repo.c:272: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 *names[4] = { "test1", "test2", "test3", "test4" };
data/libgit2-1.0.1+dfsg.1/tests/attr/repo.c:273: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[4];
data/libgit2-1.0.1+dfsg.1/tests/attr/repo.c:333: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[2], *attrs[2] = { "foo", "bar" };
data/libgit2-1.0.1+dfsg.1/tests/blame/blame_helpers.c: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 expected[GIT_OID_HEXSZ+1] = {0}, actual[GIT_OID_HEXSZ+1] = {0};
data/libgit2-1.0.1+dfsg.1/tests/blame/blame_helpers.c:25:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(expected, "0000000000000000000000000000000000000000");
data/libgit2-1.0.1+dfsg.1/tests/checkout/conflict.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char oid_str[GIT_OID_HEXSZ+1];
data/libgit2-1.0.1+dfsg.1/tests/checkout/conflict.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[128];
data/libgit2-1.0.1+dfsg.1/tests/checkout/conflict.c:58:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ancestor[64];
data/libgit2-1.0.1+dfsg.1/tests/checkout/conflict.c:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ours[64];
data/libgit2-1.0.1+dfsg.1/tests/checkout/conflict.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 theirs[64];
data/libgit2-1.0.1+dfsg.1/tests/checkout/conflict.c:201: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 actual[1024];
data/libgit2-1.0.1+dfsg.1/tests/checkout/index.c:179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char link_data[GIT_PATH_MAX];
data/libgit2-1.0.1+dfsg.1/tests/checkout/index.c:242:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char link_data[GIT_PATH_MAX];
data/libgit2-1.0.1+dfsg.1/tests/checkout/tree.c:920:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/libgit2-1.0.1+dfsg.1/tests/checkout/tree.c:1273: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, in, sizeof(git_checkout_perfdata));
data/libgit2-1.0.1+dfsg.1/tests/checkout/typechange.c:320:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char expected[8] = {'M', 'M', 'R', 'T', 'D', 'R', 'A', 'R'};
data/libgit2-1.0.1+dfsg.1/tests/clar.c:651:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/libgit2-1.0.1+dfsg.1/tests/clar/fixtures.h:4:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char _path[4096];
data/libgit2-1.0.1+dfsg.1/tests/clar/fs.h:123:12:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	cl_assert(MultiByteToWideChar(CP_UTF8,
data/libgit2-1.0.1+dfsg.1/tests/clar/fs.h:207:12:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	cl_assert(MultiByteToWideChar(CP_UTF8,
data/libgit2-1.0.1+dfsg.1/tests/clar/fs.h:214:12:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	cl_assert(MultiByteToWideChar(CP_UTF8,
data/libgit2-1.0.1+dfsg.1/tests/clar/fs.h:287:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *argv[5];
data/libgit2-1.0.1+dfsg.1/tests/clar/fs.h:314:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *argv[4];
data/libgit2-1.0.1+dfsg.1/tests/clar/sandbox.h:5:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char _clar_path[4096];
data/libgit2-1.0.1+dfsg.1/tests/clar/summary.h: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 iso_dt[20];
data/libgit2-1.0.1+dfsg.1/tests/clar/summary.h:66:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(filename, "w")) == NULL)
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c:9:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[4096];
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c:278:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char url[4096];
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c:325:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char _temp[GIT_PATH_MAX];
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c:416:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c:512:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4000];
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.h:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char error_msg[4096];
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.h:103:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[128];
data/libgit2-1.0.1+dfsg.1/tests/core/buffer.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 data[128];
data/libgit2-1.0.1+dfsg.1/tests/core/buffer.c:1030: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 *text[3] = { tabbed, spaced, crlf_spaced2 };
data/libgit2-1.0.1+dfsg.1/tests/core/encoding.c:28:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[100];
data/libgit2-1.0.1+dfsg.1/tests/core/env.c:8: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 *env_vars[NUM_VARS] = {
data/libgit2-1.0.1+dfsg.1/tests/core/env.c:13: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 *env_vars[NUM_VARS] = { "HOME" };
data/libgit2-1.0.1+dfsg.1/tests/core/env.c:16:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *env_save[NUM_VARS];
data/libgit2-1.0.1+dfsg.1/tests/core/env.c:87:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char testfile[16], tidx = '0';
data/libgit2-1.0.1+dfsg.1/tests/core/env.c:254:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char testfile[16], tidx = '0';
data/libgit2-1.0.1+dfsg.1/tests/core/filebuf.c:46:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[4096 * 4]; /* 2 * WRITE_BUFFER_SIZE */
data/libgit2-1.0.1+dfsg.1/tests/core/link.c:182: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(reparse_buf->GenericReparseBuffer.DataBuffer,
data/libgit2-1.0.1+dfsg.1/tests/core/link.c:540:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/libgit2-1.0.1+dfsg.1/tests/core/link.c:548:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/libgit2-1.0.1+dfsg.1/tests/core/link.c:559:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/libgit2-1.0.1+dfsg.1/tests/core/link.c:583:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/libgit2-1.0.1+dfsg.1/tests/core/link.c:607:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/libgit2-1.0.1+dfsg.1/tests/core/pool.c:58:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char oid_hex[GIT_OID_HEXSZ];
data/libgit2-1.0.1+dfsg.1/tests/core/qsort.c:7:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c[311];
data/libgit2-1.0.1+dfsg.1/tests/core/regexp.c:9: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 *old_locales[LC_ALL];
data/libgit2-1.0.1+dfsg.1/tests/core/regexp.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 c, str[2];
data/libgit2-1.0.1+dfsg.1/tests/core/regexp.c:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c, str[2];
data/libgit2-1.0.1+dfsg.1/tests/core/sha1.c: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 buf[2048];
data/libgit2-1.0.1+dfsg.1/tests/core/sortedcache.c:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[GIT_FLEX_ARRAY];
data/libgit2-1.0.1+dfsg.1/tests/core/structinit.c:46: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.
		if (((char *)one)[i] != ((char *)two)[i]) {
data/libgit2-1.0.1+dfsg.1/tests/core/structinit.c:46:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		if (((char *)one)[i] != ((char *)two)[i]) {
data/libgit2-1.0.1+dfsg.1/tests/core/structinit.c:47: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 desc[1024];
data/libgit2-1.0.1+dfsg.1/tests/core/structinit.c:50: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.
				name, i, ((char *)one)[i], ((char *)two)[i]);
data/libgit2-1.0.1+dfsg.1/tests/core/structinit.c:50:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				name, i, ((char *)one)[i], ((char *)two)[i]);
data/libgit2-1.0.1+dfsg.1/tests/core/zstream.c:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char out[128];
data/libgit2-1.0.1+dfsg.1/tests/date/rfc2822.c:8:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_DATE_RFC2822_SZ];
data/libgit2-1.0.1+dfsg.1/tests/date/rfc2822.c:17:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_DATE_RFC2822_SZ];
data/libgit2-1.0.1+dfsg.1/tests/date/rfc2822.c:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_DATE_RFC2822_SZ];
data/libgit2-1.0.1+dfsg.1/tests/date/rfc2822.c:36:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_DATE_RFC2822_SZ-1];
data/libgit2-1.0.1+dfsg.1/tests/delta/apply.c:7: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 base[16] = { 0 }, delta[] = { 0x10, 0x10, 0xff, 0xff, 0xff, 0xff, 0xff, 0x10, 0x00, 0x00 };
data/libgit2-1.0.1+dfsg.1/tests/delta/apply.c:16: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 base[16] = { 0 }, delta[] = { 0x10, 0x70, 0xff };
data/libgit2-1.0.1+dfsg.1/tests/diff/binary.c:228: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(&contents.ptr[i], "cITIES", 6);
data/libgit2-1.0.1+dfsg.1/tests/diff/diffiter.c:335: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 *expected_patch_text[8] = {
data/libgit2-1.0.1+dfsg.1/tests/diff/drivers.c:32: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(&actual->ptr[offset], "100644", 6);
data/libgit2-1.0.1+dfsg.1/tests/diff/drivers.c:223:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			FILE *fp = fopen("userdiff/.gitattributes", "w");
data/libgit2-1.0.1+dfsg.1/tests/filter/stream.c:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char inflated[CHUNKSIZE];
data/libgit2-1.0.1+dfsg.1/tests/filter/stream.c:142:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[CHUNKSIZE];
data/libgit2-1.0.1+dfsg.1/tests/index/addall.c:165:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *strs[1];
data/libgit2-1.0.1+dfsg.1/tests/index/bypath.c:253: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(&new_entry, entry, sizeof(git_index_entry));
data/libgit2-1.0.1+dfsg.1/tests/index/bypath.c:279: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(&new_entry, entry, sizeof(git_index_entry));
data/libgit2-1.0.1+dfsg.1/tests/index/bypath.c:311: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(&new_entry, entry, sizeof(git_index_entry));
data/libgit2-1.0.1+dfsg.1/tests/index/bypath.c:348: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(&new_entry, entry, sizeof(git_index_entry));
data/libgit2-1.0.1+dfsg.1/tests/index/rename.c:70: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(&new, entry, sizeof(git_index_entry));
data/libgit2-1.0.1+dfsg.1/tests/index/tests.c:15: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 path[128];
data/libgit2-1.0.1+dfsg.1/tests/index/version.c:86:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[250], buf[1];
data/libgit2-1.0.1+dfsg.1/tests/iterator/workdir.c:464:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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], sub[80];
data/libgit2-1.0.1+dfsg.1/tests/iterator/workdir.c:490:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&sub[sublen], "/file", sizeof("/file"));
data/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.h:9:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.h:11:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128];
data/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.h:15:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ancestor_path[128];
data/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.h:16:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char our_path[128];
data/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.h:17:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char their_path[128];
data/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.h:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128];
data/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.h:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ancestor_oid_str[GIT_OID_HEXSZ+1];
data/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.h:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char our_oid_str[GIT_OID_HEXSZ+1];
data/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.h:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char their_oid_str[GIT_OID_HEXSZ+1];
data/libgit2-1.0.1+dfsg.1/tests/merge/workdir/dirty.c:61:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *result_contents[4][6] = {
data/libgit2-1.0.1+dfsg.1/tests/network/remote/local.c:372:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_reflog_msg[1024];
data/libgit2-1.0.1+dfsg.1/tests/network/remote/rename.c:167:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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] = {0};
data/libgit2-1.0.1+dfsg.1/tests/network/remote/rename.c:209:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char idstr[GIT_OID_HEXSZ + 1] = {0};
data/libgit2-1.0.1+dfsg.1/tests/object/blob/filter.c:10: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 *g_crlf_raw[CRLF_NUM_TEST_OBJECTS] = {
data/libgit2-1.0.1+dfsg.1/tests/object/raw/compare.c:79:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char out[GIT_OID_HEXSZ + 1];
data/libgit2-1.0.1+dfsg.1/tests/object/raw/compare.c:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char out[GIT_OID_HEXSZ + 2];
data/libgit2-1.0.1+dfsg.1/tests/object/raw/convert.c:10:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char out[GIT_OID_HEXSZ + 1];
data/libgit2-1.0.1+dfsg.1/tests/object/raw/convert.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 big[GIT_OID_HEXSZ + 1 + 3]; /* note + 4 => big buffer */
data/libgit2-1.0.1+dfsg.1/tests/object/raw/convert.c:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char big[GIT_OID_HEXSZ + 1 + 3]; /* note + 4 => big buffer */
data/libgit2-1.0.1+dfsg.1/tests/object/raw/short.c:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char numbuf[16];
data/libgit2-1.0.1+dfsg.1/tests/odb/freshen.c:170: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(&before, &after, sizeof(struct stat));
data/libgit2-1.0.1+dfsg.1/tests/odb/largefiles.c:88:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[10240];
data/libgit2-1.0.1+dfsg.1/tests/odb/largefiles.c:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hdr[64];
data/libgit2-1.0.1+dfsg.1/tests/odb/loose.c:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048], *ptr = buf;
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c: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 hex[10];
data/libgit2-1.0.1+dfsg.1/tests/online/clone.c:631: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(&actual.id, key->hash_md5, 16);
data/libgit2-1.0.1+dfsg.1/tests/online/clone.c:633: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(&actual, key->hash_sha1, 20);
data/libgit2-1.0.1+dfsg.1/tests/online/clone.c:664:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	cl_assert((f = fopen(path, "r")) != NULL);
data/libgit2-1.0.1+dfsg.1/tests/online/push.c:400: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(&push_opts.callbacks, &_record_cbs, sizeof(git_remote_callbacks));
data/libgit2-1.0.1+dfsg.1/tests/online/push.c:408: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.callbacks, &_record_cbs, sizeof(git_remote_callbacks));
data/libgit2-1.0.1+dfsg.1/tests/online/push.c:488: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.callbacks, &_record_cbs, sizeof(git_remote_callbacks));
data/libgit2-1.0.1+dfsg.1/tests/online/push.c:502:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			specs.strings[i] = (char *) refspecs[i];
data/libgit2-1.0.1+dfsg.1/tests/pack/indexer.c:185: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 buffer[128];
data/libgit2-1.0.1+dfsg.1/tests/pack/packbuilder.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 hex[GIT_OID_HEXSZ+1]; hex[GIT_OID_HEXSZ] = '\0';
data/libgit2-1.0.1+dfsg.1/tests/pack/packbuilder.c:144:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hex[GIT_OID_HEXSZ+1]; hex[GIT_OID_HEXSZ] = '\0';
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:10:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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] = {0};
data/libgit2-1.0.1+dfsg.1/tests/path/win32.c:124:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cwd_backup[MAX_PATH];
data/libgit2-1.0.1+dfsg.1/tests/rebase/merge.c:760: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(&rebase_options.checkout_options, &checkout_options,
data/libgit2-1.0.1+dfsg.1/tests/rebase/submodule.c:82:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(git_buf_cstr(&untracked_path), "w");
data/libgit2-1.0.1+dfsg.1/tests/refs/normalize.c:13:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_out[GIT_REFNAME_MAX];
data/libgit2-1.0.1+dfsg.1/tests/refs/normalize.c:22:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_out[GIT_REFNAME_MAX];
data/libgit2-1.0.1+dfsg.1/tests/refs/normalize.c:194: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[GIT_REFNAME_MAX];
data/libgit2-1.0.1+dfsg.1/tests/refs/normalize.c:341:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_out[21];
data/libgit2-1.0.1+dfsg.1/tests/refs/pack.c:87:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[128];
data/libgit2-1.0.1+dfsg.1/tests/refs/reflog/reflog_helpers.c:8:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_oid[GIT_OID_HEXSZ], new_oid[GIT_OID_HEXSZ];
data/libgit2-1.0.1+dfsg.1/tests/refs/revparse.c: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 objstr[64] = {0};
data/libgit2-1.0.1+dfsg.1/tests/refs/revparse.c:60: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 str[64] = {0};
data/libgit2-1.0.1+dfsg.1/tests/refs/revparse.c:70: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 str[64] = {0};
data/libgit2-1.0.1+dfsg.1/tests/refs/revparse.c:95:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char objstr[64] = {0};
data/libgit2-1.0.1+dfsg.1/tests/refs/revparse.c:638:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/tests/refs/revparse.c:676:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/tests/refs/revparse.c:712:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libgit2-1.0.1+dfsg.1/tests/repo/discover.c:65:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ceiling_separator[2] = { GIT_PATH_LIST_SEPARATOR, '\0' };
data/libgit2-1.0.1+dfsg.1/tests/reset/hard.c:45: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.
	static const char *files[4] = {
data/libgit2-1.0.1+dfsg.1/tests/reset/hard.c:50: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.
	static const char *before[4] = {
data/libgit2-1.0.1+dfsg.1/tests/reset/hard.c:56: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.
	static const char *after[4] = {
data/libgit2-1.0.1+dfsg.1/tests/reset/soft.c:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char raw_head_oid[GIT_OID_HEXSZ + 1];
data/libgit2-1.0.1+dfsg.1/tests/revwalk/basic.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char oid[GIT_OID_HEXSZ];
data/libgit2-1.0.1+dfsg.1/tests/status/worktree.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 path[260*4+1];
data/libgit2-1.0.1+dfsg.1/tests/stress/diff.c:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/libgit2-1.0.1+dfsg.1/tests/stress/diff.c:120:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/libgit2-1.0.1+dfsg.1/tests/submodule/submodule_helpers.c:17:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[256];
data/libgit2-1.0.1+dfsg.1/tests/submodule/submodule_helpers.c:22:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	cl_assert((in  = fopen(in_f.ptr, "rb")) != NULL);
data/libgit2-1.0.1+dfsg.1/tests/submodule/submodule_helpers.c:23:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	cl_assert((out = fopen(out_f.ptr, "wb")) != NULL);
data/libgit2-1.0.1+dfsg.1/tests/threads/refdb.c:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[128];
data/libgit2-1.0.1+dfsg.1/tests/threads/refdb.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 name[128];
data/libgit2-1.0.1+dfsg.1/tests/threads/refdb.c:156:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128];
data/libgit2-1.0.1+dfsg.1/tests/trace/windows/stacktrace.c:8:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10000];
data/libgit2-1.0.1+dfsg.1/tests/worktree/worktree.c:38: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 *filesets[3][2] = {
data/libgit2-1.0.1+dfsg.1/examples/args.c:6: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(pfx);
data/libgit2-1.0.1+dfsg.1/examples/args.c:148: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 (!strncmp(found, "--no-", strlen("--no-")) &&
data/libgit2-1.0.1+dfsg.1/examples/args.c:149: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).
	    !strcmp(found + strlen("--no-"), opt + 2)) {
data/libgit2-1.0.1+dfsg.1/examples/blame.c:79:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(spec, ":");
data/libgit2-1.0.1+dfsg.1/examples/common.c:136:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getchar()) != EOF) {
data/libgit2-1.0.1+dfsg.1/examples/common.c:242:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t bytes = read(fd, buf + total, st.st_size - total);
data/libgit2-1.0.1+dfsg.1/examples/common.h:30:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define read _read
data/libgit2-1.0.1+dfsg.1/examples/diff.c:186: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).
		git_patch_from_buffers(&patch, file1_str, strlen(file1_str), o->treeish1, file2_str, strlen(file2_str), o->treeish2, &o->diffopts),
data/libgit2-1.0.1+dfsg.1/examples/diff.c:186:88:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		git_patch_from_buffers(&patch, file1_str, strlen(file1_str), o->treeish1, file2_str, strlen(file2_str), o->treeish2, &o->diffopts),
data/libgit2-1.0.1+dfsg.1/examples/index-pack.c:43:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read_bytes = read(fd, buf, sizeof(buf));
data/libgit2-1.0.1+dfsg.1/examples/log.c:341: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).
		printf("log size %d\n", (int)strlen(git_commit_message(commit)));
data/libgit2-1.0.1+dfsg.1/examples/show-index.c:31: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(dir);
data/libgit2-1.0.1+dfsg.1/examples/status.c:478: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).
		else if (!strncmp(a, "--git-dir=", strlen("--git-dir=")))
data/libgit2-1.0.1+dfsg.1/examples/status.c:479: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).
			o->repodir = a + strlen("--git-dir=");
data/libgit2-1.0.1+dfsg.1/include/git2/odb_backend.h:96: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/script/user_model.c:10: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).
size_t strlen(const char *s);
data/libgit2-1.0.1+dfsg.1/script/user_model.c:39: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).
	return strlen(buf->ptr);
data/libgit2-1.0.1+dfsg.1/script/user_nodefs.h:28: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).
#nodef LOOKS_LIKE_DRIVE_PREFIX(S) (strlen(S) >= 2 && git__isalpha((S)[0]) && (S)[1] == ':')
data/libgit2-1.0.1+dfsg.1/src/attr.c:392: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/libgit2-1.0.1+dfsg.1/src/attrcache.c:45: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/libgit2-1.0.1+dfsg.1/src/attrcache.c:50: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/libgit2-1.0.1+dfsg.1/src/attrcache.c:180: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/branch.c:202: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/libgit2-1.0.1+dfsg.1/src/branch.c:314: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/libgit2-1.0.1+dfsg.1/src/branch.c:367: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/libgit2-1.0.1+dfsg.1/src/branch.c:369: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/libgit2-1.0.1+dfsg.1/src/branch.c:389: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/libgit2-1.0.1+dfsg.1/src/branch.c:618: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).
	shortname = refname + strlen(GIT_REFS_HEADS_DIR);
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/buffer.c:634: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/libgit2-1.0.1+dfsg.1/src/buffer.c:680: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/libgit2-1.0.1+dfsg.1/src/buffer.c:718: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/libgit2-1.0.1+dfsg.1/src/buffer.c:753: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/libgit2-1.0.1+dfsg.1/src/buffer.c:754: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/libgit2-1.0.1+dfsg.1/src/buffer.c:802: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/libgit2-1.0.1+dfsg.1/src/buffer.c:803: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/libgit2-1.0.1+dfsg.1/src/buffer.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).
		len_c = strlen(str_c),
data/libgit2-1.0.1+dfsg.1/src/checkout.c:694: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/libgit2-1.0.1+dfsg.1/src/checkout.c:719: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/libgit2-1.0.1+dfsg.1/src/checkout.c:1846: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/libgit2-1.0.1+dfsg.1/src/clone.c:122: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/libgit2-1.0.1+dfsg.1/src/commit.c:408: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 tree_len = strlen("tree ") + GIT_OID_HEXSZ + 1;
data/libgit2-1.0.1+dfsg.1/src/commit.c:462:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			buffer += strlen("encoding ");
data/libgit2-1.0.1+dfsg.1/src/commit.c:602: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/libgit2-1.0.1+dfsg.1/src/commit.c:694: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/libgit2-1.0.1+dfsg.1/src/commit.c:774: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/libgit2-1.0.1+dfsg.1/src/commit.c:907: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 ((error = commit_parse(parsed, commit_content, strlen(commit_content), 0)) < 0)
data/libgit2-1.0.1+dfsg.1/src/config.c:1307: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/libgit2-1.0.1+dfsg.1/src/config.c:1491: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/libgit2-1.0.1+dfsg.1/src/config_file.c:536: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/libgit2-1.0.1+dfsg.1/src/config_file.c:616: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 (git_path_is_dirsep(condition[strlen(condition) - 1]))
data/libgit2-1.0.1+dfsg.1/src/config_file.c:680: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)))
data/libgit2-1.0.1+dfsg.1/src/config_file.c:682: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).
	git_buf_consume(&reference, reference.ptr + strlen(GIT_SYMREF));
data/libgit2-1.0.1+dfsg.1/src/config_file.c:684: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).
	if (git__strncmp(reference.ptr, GIT_REFS_HEADS_DIR, strlen(GIT_REFS_HEADS_DIR)))
data/libgit2-1.0.1+dfsg.1/src/config_file.c:686: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).
	git_buf_consume(&reference, reference.ptr + strlen(GIT_REFS_HEADS_DIR));
data/libgit2-1.0.1+dfsg.1/src/config_file.c:694: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 (git_path_is_dirsep(condition[strlen(condition) - 1]) &&
data/libgit2-1.0.1+dfsg.1/src/config_file.c:725: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/libgit2-1.0.1+dfsg.1/src/config_file.c:726: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/libgit2-1.0.1+dfsg.1/src/config_file.c:726: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/libgit2-1.0.1+dfsg.1/src/config_file.c:726: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/libgit2-1.0.1+dfsg.1/src/config_file.c:735: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/libgit2-1.0.1+dfsg.1/src/config_parse.c:73: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/libgit2-1.0.1+dfsg.1/src/config_parse.c:288: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/describe.c:219: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/libgit2-1.0.1+dfsg.1/src/describe.c:243: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/libgit2-1.0.1+dfsg.1/src/describe.c:243: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/diff_driver.c:164:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		namelen = strlen(name),
data/libgit2-1.0.1+dfsg.1/src/diff_driver.c:280: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/libgit2-1.0.1+dfsg.1/src/diff_driver.c:291:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	git_buf_truncate(&name, namelen + strlen("diff.."));
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/diff_driver.c:364: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/futils.c:783: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/libgit2-1.0.1+dfsg.1/src/futils.c:817: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/libgit2-1.0.1+dfsg.1/src/futils.c:842: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/libgit2-1.0.1+dfsg.1/src/ignore.c:320: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/libgit2-1.0.1+dfsg.1/src/index.c:365: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/libgit2-1.0.1+dfsg.1/src/index.c:925: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/libgit2-1.0.1+dfsg.1/src/index.c:1013: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/libgit2-1.0.1+dfsg.1/src/index.c:1110:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(entry->path);
data/libgit2-1.0.1+dfsg.1/src/index.c:1143: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/libgit2-1.0.1+dfsg.1/src/index.c:1213: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/libgit2-1.0.1+dfsg.1/src/index.c:1230: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/libgit2-1.0.1+dfsg.1/src/index.c:1401: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/libgit2-1.0.1+dfsg.1/src/index.c:1746: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/libgit2-1.0.1+dfsg.1/src/index.c:2493: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/libgit2-1.0.1+dfsg.1/src/index.c:2499: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/libgit2-1.0.1+dfsg.1/src/index.c:2747: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).
		varint_len = git_encode_varint(NULL, 0, strlen(last) - same_len);
data/libgit2-1.0.1+dfsg.1/src/index.c:2798: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).
					  disk_size, strlen(last) - same_len);
data/libgit2-1.0.1+dfsg.1/src/index.c:2875: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/libgit2-1.0.1+dfsg.1/src/index.c:2883: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/libgit2-1.0.1+dfsg.1/src/index.c:2891: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/libgit2-1.0.1+dfsg.1/src/index.c:2928: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/libgit2-1.0.1+dfsg.1/src/indexer.c:238:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t read;
data/libgit2-1.0.1+dfsg.1/src/indexer.c:247: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/libgit2-1.0.1+dfsg.1/src/indexer.c:249: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/libgit2-1.0.1+dfsg.1/src/indexer.c:250:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while (read > 0);
data/libgit2-1.0.1+dfsg.1/src/indexer.c:252:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read < 0)
data/libgit2-1.0.1+dfsg.1/src/indexer.c:253:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return (int)read;
data/libgit2-1.0.1+dfsg.1/src/indexer.c:280:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t read;
data/libgit2-1.0.1+dfsg.1/src/indexer.c:286:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while (read > 0);
data/libgit2-1.0.1+dfsg.1/src/indexer.c:288:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read < 0)
data/libgit2-1.0.1+dfsg.1/src/indexer.c:289:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return (int)read;
data/libgit2-1.0.1+dfsg.1/src/indexer.c:837: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/libgit2-1.0.1+dfsg.1/src/indexer.c:838: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/libgit2-1.0.1+dfsg.1/src/indexer.c:1175: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/iterator.c:1924: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/merge.c:597: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/libgit2-1.0.1+dfsg.1/src/merge.c:1608: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/libgit2-1.0.1+dfsg.1/src/merge.c:1609: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/libgit2-1.0.1+dfsg.1/src/merge.c:2506: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/libgit2-1.0.1+dfsg.1/src/merge.c:2518: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/libgit2-1.0.1+dfsg.1/src/merge.c:2530: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/libgit2-1.0.1+dfsg.1/src/merge.c:2540: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/libgit2-1.0.1+dfsg.1/src/merge.c:2642: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/libgit2-1.0.1+dfsg.1/src/merge.c:2660: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/libgit2-1.0.1+dfsg.1/src/merge.c:2676: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/net.c:51: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 (http_parser_parse_url(given, strlen(given), false, &u)) {
data/libgit2-1.0.1+dfsg.1/src/net.c:175: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).
		two_len = strlen(two);
data/libgit2-1.0.1+dfsg.1/src/net.c:179: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).
	one_len = one->path ? strlen(one->path) : 0;
data/libgit2-1.0.1+dfsg.1/src/net.c:237: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 full_suffix_len = strlen(service_suffix);
data/libgit2-1.0.1+dfsg.1/src/net.c:240: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(url->path);
data/libgit2-1.0.1+dfsg.1/src/net.c:399: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__memzero(url->username, strlen(url->username));
data/libgit2-1.0.1+dfsg.1/src/net.c:402: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__memzero(url->password, strlen(url->password));
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/notes.c:291:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((error = git_blob_create_from_buffer(&oid, repo, note, strlen(note))) < 0)
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/object.c:294: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/libgit2-1.0.1+dfsg.1/src/odb.c:1064:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (b->read != NULL) {
data/libgit2-1.0.1+dfsg.1/src/odb.c:1065: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/libgit2-1.0.1+dfsg.1/src/odb.c:1435: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/libgit2-1.0.1+dfsg.1/src/odb_loose.c:499: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/libgit2-1.0.1+dfsg.1/src/odb_loose.c:706: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/libgit2-1.0.1+dfsg.1/src/odb_loose.c:1131: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/libgit2-1.0.1+dfsg.1/src/odb_pack.c:204: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/libgit2-1.0.1+dfsg.1/src/odb_pack.c:207: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/oid.c:143: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/libgit2-1.0.1+dfsg.1/src/pack.c:314: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/libgit2-1.0.1+dfsg.1/src/pack.c:315: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/libgit2-1.0.1+dfsg.1/src/pack.c:320: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/libgit2-1.0.1+dfsg.1/src/pack.c:1071: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/libgit2-1.0.1+dfsg.1/src/pack.c:1073: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/libgit2-1.0.1+dfsg.1/src/pack.c:1076: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/libgit2-1.0.1+dfsg.1/src/pack.c:1087: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/libgit2-1.0.1+dfsg.1/src/pack.c:1091: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/libgit2-1.0.1+dfsg.1/src/pack.c:1107: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/libgit2-1.0.1+dfsg.1/src/parse.h:48: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/patch_parse.c:447: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/path.c:283: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/libgit2-1.0.1+dfsg.1/src/path.c:352: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/libgit2-1.0.1+dfsg.1/src/path.c:432: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/libgit2-1.0.1+dfsg.1/src/path.c:445: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/libgit2-1.0.1+dfsg.1/src/path.c:533: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/libgit2-1.0.1+dfsg.1/src/path.c:732: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/libgit2-1.0.1+dfsg.1/src/path.c:1158: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/libgit2-1.0.1+dfsg.1/src/path.c:1257: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/libgit2-1.0.1+dfsg.1/src/path.c:1420: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/posix.h:123: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/rebase.c:1184: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/libgit2-1.0.1+dfsg.1/src/rebase.c:1290: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/libgit2-1.0.1+dfsg.1/src/rebase.c:1291: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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:118: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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:295: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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:363: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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:523: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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:723: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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:724: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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:1372: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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:1373: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/libgit2-1.0.1+dfsg.1/src/refdb_fs.c:1374: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/libgit2-1.0.1+dfsg.1/src/reflog.c:89: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 i, msglen = strlen(msg);
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/refs.c:102: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).
	namelen = strlen(name);
data/libgit2-1.0.1+dfsg.1/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));
data/libgit2-1.0.1+dfsg.1/src/refs.c:279: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/libgit2-1.0.1+dfsg.1/src/refs.c:280: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/libgit2-1.0.1+dfsg.1/src/refs.c:920: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/libgit2-1.0.1+dfsg.1/src/refs.c:1007: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/libgit2-1.0.1+dfsg.1/src/refs.c:1436: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/libgit2-1.0.1+dfsg.1/src/refs.c:1438: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/libgit2-1.0.1+dfsg.1/src/refs.c:1440: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/libgit2-1.0.1+dfsg.1/src/refs.c:1442: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/refspec.c:257: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).
	replacement_len = strlen(name + star_offset) - strlen(from_star + 1);
data/libgit2-1.0.1+dfsg.1/src/refspec.c:257: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).
	replacement_len = strlen(name + star_offset) - strlen(from_star + 1);
data/libgit2-1.0.1+dfsg.1/src/refspec.c:311: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/libgit2-1.0.1+dfsg.1/src/regexp.c:37: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 = pcre_exec(*r, NULL, string, (int) strlen(string), 0, 0, NULL, 0)) < 0)
data/libgit2-1.0.1+dfsg.1/src/regexp.c:55: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 = pcre_exec(*r, NULL, string, (int) strlen(string), 0, 0, ovec, (int) nmatches * 3)) < 0)
data/libgit2-1.0.1+dfsg.1/src/regexp.c:111:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((error = pcre2_match(*r, (const unsigned char *) string, strlen(string),
data/libgit2-1.0.1+dfsg.1/src/regexp.c:131:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((error = pcre2_match(*r, (const unsigned char *) string, strlen(string),
data/libgit2-1.0.1+dfsg.1/src/remote.c:141: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/libgit2-1.0.1+dfsg.1/src/remote.c:495: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/libgit2-1.0.1+dfsg.1/src/remote.c:515: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/libgit2-1.0.1+dfsg.1/src/remote.c:1732: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/libgit2-1.0.1+dfsg.1/src/remote.c:1733: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/libgit2-1.0.1+dfsg.1/src/remote.c:1910: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/libgit2-1.0.1+dfsg.1/src/remote.c:1910: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/libgit2-1.0.1+dfsg.1/src/remote.c:2219: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/libgit2-1.0.1+dfsg.1/src/remote.c:2548: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/libgit2-1.0.1+dfsg.1/src/remote.c:2551: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/libgit2-1.0.1+dfsg.1/src/remote.c:2554: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/libgit2-1.0.1+dfsg.1/src/remote.c:2569: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/libgit2-1.0.1+dfsg.1/src/remote.c:2577: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/libgit2-1.0.1+dfsg.1/src/repository.c:383: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/libgit2-1.0.1+dfsg.1/src/repository.c:389: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/libgit2-1.0.1+dfsg.1/src/repository.c:413: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/libgit2-1.0.1+dfsg.1/src/repository.c:901: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/libgit2-1.0.1+dfsg.1/src/repository.c:1264: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/libgit2-1.0.1+dfsg.1/src/repository.c:1696: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/libgit2-1.0.1+dfsg.1/src/repository.c:1975: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/libgit2-1.0.1+dfsg.1/src/repository.c:2585: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/libgit2-1.0.1+dfsg.1/src/revparse.c:29: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/libgit2-1.0.1+dfsg.1/src/revparse.c:39: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/libgit2-1.0.1+dfsg.1/src/revparse.c:112: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/libgit2-1.0.1+dfsg.1/src/revparse.c:128: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/libgit2-1.0.1+dfsg.1/src/revparse.c:581: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/sortedcache.c:281: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/streams/openssl.c:391: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/submodule.c:380: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/libgit2-1.0.1+dfsg.1/src/submodule.c:716: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/libgit2-1.0.1+dfsg.1/src/submodule.c:1756: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/libgit2-1.0.1+dfsg.1/src/submodule.c:1975: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/tag.c:91: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/libgit2-1.0.1+dfsg.1/src/tag.c:350: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/libgit2-1.0.1+dfsg.1/src/tag.c:381: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/libgit2-1.0.1+dfsg.1/src/tag.c:384: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/libgit2-1.0.1+dfsg.1/src/tag.c:471: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/transports/auth_negotiate.c:129: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).
	challenge_len = ctx->challenge ? strlen(ctx->challenge) : 0;
data/libgit2-1.0.1+dfsg.1/src/transports/auth_ntlm.c:91: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).
	challenge_len = ctx->challenge ? strlen(ctx->challenge) : 0;
data/libgit2-1.0.1+dfsg.1/src/transports/credential.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/libgit2-1.0.1+dfsg.1/src/transports/credential.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/libgit2-1.0.1+dfsg.1/src/transports/credential.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/libgit2-1.0.1+dfsg.1/src/transports/credential.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/libgit2-1.0.1+dfsg.1/src/transports/credential.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/libgit2-1.0.1+dfsg.1/src/transports/credential.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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/transports/git.c:204: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/libgit2-1.0.1+dfsg.1/src/transports/git.c:260: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/libgit2-1.0.1+dfsg.1/src/transports/httpclient.c:285: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 scheme_len = strlen(scheme_name);
data/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:93: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/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:149: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/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:156: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/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:162: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/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:168: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/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:175: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/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:181: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/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:187: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/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:193: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/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:634: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/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:639: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/libgit2-1.0.1+dfsg.1/src/transports/smart_protocol.c:640: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/libgit2-1.0.1+dfsg.1/src/transports/ssh.c:78: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/libgit2-1.0.1+dfsg.1/src/transports/ssh.c:95: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/libgit2-1.0.1+dfsg.1/src/transports/ssh.c:95: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/libgit2-1.0.1+dfsg.1/src/transports/ssh.c:100: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/libgit2-1.0.1+dfsg.1/src/transports/ssh.c:413: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/libgit2-1.0.1+dfsg.1/src/transports/ssh.c:415: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/libgit2-1.0.1+dfsg.1/src/transports/ssh.c:417: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/libgit2-1.0.1+dfsg.1/src/transports/ssh.c:803: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/libgit2-1.0.1+dfsg.1/src/transports/ssh.c:822: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/libgit2-1.0.1+dfsg.1/src/transports/ssh.c:828: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/libgit2-1.0.1+dfsg.1/src/transports/ssh.c:834: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/libgit2-1.0.1+dfsg.1/src/transports/winhttp.c:753: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->server.url.port), NULL, 10) < 0)
data/libgit2-1.0.1+dfsg.1/src/transports/winhttp.c:1309: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/tree-cache.c:242: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/src/tree.c:530: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/libgit2-1.0.1+dfsg.1/src/tree.c:559: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/libgit2-1.0.1+dfsg.1/src/tree.c:734: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/libgit2-1.0.1+dfsg.1/src/tree.c:883: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/libgit2-1.0.1+dfsg.1/src/util.c:260: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/libgit2-1.0.1+dfsg.1/src/util.c:319: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/libgit2-1.0.1+dfsg.1/src/util.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).
	size_t b = strlen(suffix);
data/libgit2-1.0.1+dfsg.1/src/win32/dir.c:22: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(dir);
data/libgit2-1.0.1+dfsg.1/src/win32/findfile.c:75:22:  [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).
	size_t gitexe_len = wcslen(gitexe);
data/libgit2-1.0.1+dfsg.1/src/win32/findfile.c:81:21:  [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).
		root.len = (DWORD)wcslen(root.path);
data/libgit2-1.0.1+dfsg.1/src/win32/findfile.c:120:35:  [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).
		cbData = (DWORD)(sizeof(path) - wcslen(subdir) * sizeof(wchar_t));
data/libgit2-1.0.1+dfsg.1/src/win32/posix_w32.c:344:21:  [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).
		size_t path_len = wcslen(path);
data/libgit2-1.0.1+dfsg.1/src/win32/posix_w32.c:860: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).
	if (_mktemp_s(tmp_path, strlen(tmp_path) + 1) != 0)
data/libgit2-1.0.1+dfsg.1/src/win32/w32_crtdbg_stacktrace.c:161: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).
	fwrite(buf, strlen(buf), 1, stderr);
data/libgit2-1.0.1+dfsg.1/src/win32/w32_stack.c:139: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).
		detail_len = strlen(detail);
data/libgit2-1.0.1+dfsg.1/src/win32/w32_stack.c:156: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).
		detail_len = strlen(detail);
data/libgit2-1.0.1+dfsg.1/src/worktree.c:424: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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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/libgit2-1.0.1+dfsg.1/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);
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:82: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).
		DIFF_MODIFY_TWO_FILES, strlen(DIFF_MODIFY_TWO_FILES)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:106:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_DELETE_FILE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:132: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).
		DIFF_ADD_FILE, strlen(DIFF_ADD_FILE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:164: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:201: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:218: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).
	    strlen(DIFF_MODIFY_TWO_FILES)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:251: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:304: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:344: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:394: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:419:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_RENAME_FILE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:444:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_RENAME_AND_MODIFY_FILE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:469:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_RENAME_A_TO_B_TO_C)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:494:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_RENAME_A_TO_B_TO_C_EXACT)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:519:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_RENAME_CIRCULAR)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:543:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_RENAME_2_TO_1)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:569:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_RENAME_1_TO_2)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:594:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_TWO_DELTAS_ONE_FILE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:620:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_TWO_DELTAS_ONE_NEW_FILE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:645:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_RENAME_AND_MODIFY_DELTAS)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:671:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_RENAME_AFTER_MODIFY)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:685:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_RENAME_AFTER_MODIFY_TARGET_PATH)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:696:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_RENAME_AND_MODIFY_SOURCE_PATH)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:718:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_DELETE_AND_READD_FILE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/both.c:732:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_REMOVE_FILE_TWICE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/callbacks.c:44: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).
		DIFF_MODIFY_TWO_FILES, strlen(DIFF_MODIFY_TWO_FILES)));
data/libgit2-1.0.1+dfsg.1/tests/apply/callbacks.c:83: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).
		DIFF_MODIFY_TWO_FILES, strlen(DIFF_MODIFY_TWO_FILES)));
data/libgit2-1.0.1+dfsg.1/tests/apply/callbacks.c:121: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).
		DIFF_MANY_CHANGES_ONE, strlen(DIFF_MANY_CHANGES_ONE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/check.c:64: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).
		DIFF_MODIFY_TWO_FILES, strlen(DIFF_MODIFY_TWO_FILES)));
data/libgit2-1.0.1+dfsg.1/tests/apply/check.c:81: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(DIFF_MODIFY_TWO_FILES_BINARY)));
data/libgit2-1.0.1+dfsg.1/tests/apply/check.c:115: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/fromdiff.c:86: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).
		o.size = strlen(old);
data/libgit2-1.0.1+dfsg.1/tests/apply/fromdiff.c:92:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n.size = strlen(new);
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:40:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_patch_from_buffer(&patch, patchfile, strlen(patchfile), NULL));
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:94: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:95: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).
		FILE_CHANGE_MIDDLE, strlen(FILE_CHANGE_MIDDLE),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:106: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:107: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).
		FILE_CHANGE_MIDDLE, strlen(FILE_CHANGE_MIDDLE),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:116: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:117: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).
		FILE_CHANGE_FIRSTLINE, strlen(FILE_CHANGE_FIRSTLINE),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:125: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:126: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).
		FILE_CHANGE_LASTLINE, strlen(FILE_CHANGE_LASTLINE),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:134: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:135: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).
		FILE_CHANGE_MIDDLE_SHRINK, strlen(FILE_CHANGE_MIDDLE_SHRINK),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:146: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:147: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).
		FILE_CHANGE_MIDDLE_SHRINK, strlen(FILE_CHANGE_MIDDLE_SHRINK),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:155:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:156: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).
		FILE_CHANGE_MIDDLE_GROW, strlen(FILE_CHANGE_MIDDLE_GROW),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:167: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:168: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).
		FILE_CHANGE_MIDDLE_GROW, strlen(FILE_CHANGE_MIDDLE_GROW),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:176: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:177: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).
		FILE_PREPEND, strlen(FILE_PREPEND),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:187: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:188: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).
		FILE_PREPEND, strlen(FILE_PREPEND),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:196: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:197: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).
		FILE_APPEND, strlen(FILE_APPEND),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:207: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:208: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).
		FILE_APPEND, strlen(FILE_APPEND),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:216: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:217: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).
		FILE_PREPEND_AND_APPEND, strlen(FILE_PREPEND_AND_APPEND),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:225: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:242: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:249: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:258:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:259: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:266: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:267: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).
		FILE_CHANGE_MIDDLE, strlen(FILE_CHANGE_MIDDLE),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:274: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:275: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).
		FILE_CHANGE_MIDDLE, strlen(FILE_CHANGE_MIDDLE),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:282: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:283: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:290: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:291: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).
		FILE_CHANGE_MIDDLE, strlen(FILE_CHANGE_MIDDLE),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:298: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:299: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).
		FILE_CHANGE_MIDDLE, strlen(FILE_CHANGE_MIDDLE),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:306: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:307: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).
		FILE_CHANGE_MIDDLE, strlen(FILE_CHANGE_MIDDLE),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:315:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_TRUNCATED_1), NULL));
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:322:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_TRUNCATED_2), NULL));
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:329:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_TRUNCATED_3), NULL));
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:336:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_CORRUPT_GIT_HEADER), NULL));
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:342: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).
		FILE_EMPTY_CONTEXT_ORIGINAL, strlen(FILE_EMPTY_CONTEXT_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:343: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).
		FILE_EMPTY_CONTEXT_MODIFIED, strlen(FILE_EMPTY_CONTEXT_MODIFIED),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:351: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).
		FILE_ORIGINAL, strlen(FILE_ORIGINAL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:352: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).
		FILE_APPEND_NO_NL, strlen(FILE_APPEND_NO_NL),
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:361:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_CORRUPT_MISSING_NEW_FILE), NULL));
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:369:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_CORRUPT_MISSING_OLD_FILE), NULL));
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:377:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_CORRUPT_NO_CHANGES), NULL));
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:385:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_CORRUPT_MISSING_HUNK_HEADER), NULL));
data/libgit2-1.0.1+dfsg.1/tests/apply/fromfile.c:392:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_NOT_A_PATCH), NULL));
data/libgit2-1.0.1+dfsg.1/tests/apply/index.c:82: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).
		DIFF_MODIFY_TWO_FILES, strlen(DIFF_MODIFY_TWO_FILES)));
data/libgit2-1.0.1+dfsg.1/tests/apply/index.c:106:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_DELETE_FILE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/index.c:132: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).
		DIFF_ADD_FILE, strlen(DIFF_ADD_FILE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/index.c:172: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/index.c:204: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/index.c:243: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/index.c:288: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/index.c:314: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/partial.c:93: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 oldsize = strlen(old);
data/libgit2-1.0.1+dfsg.1/tests/apply/partial.c:94: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 newsize = strlen(new);
data/libgit2-1.0.1+dfsg.1/tests/apply/tree.c:85: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).
		DIFF_ADD_FILE, strlen(DIFF_ADD_FILE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/workdir.c:81: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).
		DIFF_MODIFY_TWO_FILES, strlen(DIFF_MODIFY_TWO_FILES)));
data/libgit2-1.0.1+dfsg.1/tests/apply/workdir.c:105:3:  [1] (buffer) strlen:
  Does not handle 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(DIFF_DELETE_FILE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/workdir.c:131: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).
		DIFF_ADD_FILE, strlen(DIFF_ADD_FILE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/workdir.c:180: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/workdir.c:211: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/workdir.c:237: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).
		DIFF_MODIFY_TWO_FILES, strlen(DIFF_MODIFY_TWO_FILES)));
data/libgit2-1.0.1+dfsg.1/tests/apply/workdir.c:271: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/workdir.c:298: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file)));
data/libgit2-1.0.1+dfsg.1/tests/apply/workdir.c:325: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).
		DIFF_MANY_CHANGES_ONE, strlen(DIFF_MANY_CHANGES_ONE)));
data/libgit2-1.0.1+dfsg.1/tests/apply/workdir.c:351: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).
		DIFF_MANY_CHANGES_TWO, strlen(DIFF_MANY_CHANGES_TWO)));
data/libgit2-1.0.1+dfsg.1/tests/attr/file.c:51: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).
	cl_assert(rule->match.length == strlen("pat0"));
data/libgit2-1.0.1+dfsg.1/tests/attr/file.c:60: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).
	cl_assert(rule->match.length == strlen("pat1"));
data/libgit2-1.0.1+dfsg.1/tests/attr/file.c:65: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).
	cl_assert(rule->match.length == strlen("pat2"));
data/libgit2-1.0.1+dfsg.1/tests/attr/file.c:90: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).
	cl_assert(rule->match.length == strlen("pat8 with spaces"));
data/libgit2-1.0.1+dfsg.1/tests/blame/buffer.c:33:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_blame_buffer(&g_bufferblame, g_fileblame, buffer, strlen(buffer)));
data/libgit2-1.0.1+dfsg.1/tests/blame/buffer.c:67:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_blame_buffer(&g_bufferblame, g_fileblame, buffer, strlen(buffer)));
data/libgit2-1.0.1+dfsg.1/tests/blame/buffer.c:93:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_blame_buffer(&g_bufferblame, g_fileblame, buffer, strlen(buffer)));
data/libgit2-1.0.1+dfsg.1/tests/blame/buffer.c:118:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_blame_buffer(&g_bufferblame, g_fileblame, buffer, strlen(buffer)));
data/libgit2-1.0.1+dfsg.1/tests/blame/buffer.c:135:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_blame_buffer(&g_bufferblame, g_fileblame, buffer, strlen(buffer)));
data/libgit2-1.0.1+dfsg.1/tests/blame/buffer.c:158:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_blame_buffer(&g_bufferblame, g_fileblame, buffer, strlen(buffer)));
data/libgit2-1.0.1+dfsg.1/tests/blame/buffer.c:184:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_blame_buffer(&g_bufferblame, g_fileblame, buffer, strlen(buffer)));
data/libgit2-1.0.1+dfsg.1/tests/buf/basic.c:14: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).
	cl_assert(strlen(git_buf_cstr(&buf1)) == strlen(test_string) * 2);
data/libgit2-1.0.1+dfsg.1/tests/buf/basic.c:14: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).
	cl_assert(strlen(git_buf_cstr(&buf1)) == strlen(test_string) * 2);
data/libgit2-1.0.1+dfsg.1/tests/buf/percent.c:16:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_buf_decode_percent(&out, in.ptr, strlen(encoded)));
data/libgit2-1.0.1+dfsg.1/tests/buf/percent.c:19: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).
	cl_assert_equal_i(strlen(expected), git_buf_len(&out));
data/libgit2-1.0.1+dfsg.1/tests/buf/quote.c:12: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).
	cl_assert_equal_i(strlen(expected), git_buf_len(&buf));
data/libgit2-1.0.1+dfsg.1/tests/buf/quote.c:39: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).
	cl_assert_equal_i(strlen(expected), git_buf_len(&buf));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:18: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).
	cl_git_pass(git_buf_splice(&_buf, 0, 0, "Hello Dolly", strlen("Hello ")));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:27:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_buf_splice(&_buf, git_buf_len(&_buf), 0, " world!", strlen(" world!")));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:36: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).
	cl_git_pass(git_buf_splice(&_buf, strlen("Hell"), 0, "o", strlen("o")));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:36: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).
	cl_git_pass(git_buf_splice(&_buf, strlen("Hell"), 0, "o", strlen("o")));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:45: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).
	cl_git_pass(git_buf_splice(&_buf, strlen("Hello world"), strlen(" of warcraft"), "", 0));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:45:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_buf_splice(&_buf, strlen("Hello world"), strlen(" of warcraft"), "", 0));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:54: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).
	cl_git_pass(git_buf_splice(&_buf, strlen("Hell"), strlen("0 w0"), "o wo", strlen("o wo")));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:54: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).
	cl_git_pass(git_buf_splice(&_buf, strlen("Hell"), strlen("0 w0"), "o wo", strlen("o wo")));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:54:76:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_buf_splice(&_buf, strlen("Hell"), strlen("0 w0"), "o wo", strlen("o wo")));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:63: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).
	cl_git_pass(git_buf_splice(&_buf, strlen("Hello "), strlen("you"), "world", strlen("world")));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:63:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_buf_splice(&_buf, strlen("Hello "), strlen("you"), "world", strlen("world")));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:63:78:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_buf_splice(&_buf, strlen("Hello "), strlen("you"), "world", strlen("world")));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:72: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).
	cl_git_pass(git_buf_splice(&_buf, 0, strlen("Brave new"), "Hello", strlen("Hello")));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:72:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_buf_splice(&_buf, 0, strlen("Brave new"), "Hello", strlen("Hello")));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:81: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).
	cl_git_pass(git_buf_splice(&_buf, strlen("Hello world!"), strlen("!"), "", 0));
data/libgit2-1.0.1+dfsg.1/tests/buf/splice.c:81: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).
	cl_git_pass(git_buf_splice(&_buf, strlen("Hello world!"), strlen("!"), "", 0));
data/libgit2-1.0.1+dfsg.1/tests/checkout/conflict.c:122: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(entries[i].ancestor) == 0 ? NULL : entries[i].ancestor,
data/libgit2-1.0.1+dfsg.1/tests/checkout/conflict.c:123: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(entries[i].ours) == 0 ? NULL : entries[i].ours,
data/libgit2-1.0.1+dfsg.1/tests/checkout/conflict.c:124: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(entries[i].theirs) == 0 ? NULL : entries[i].theirs));
data/libgit2-1.0.1+dfsg.1/tests/checkout/crlf.c:248: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).
	cl_assert(entry->file_size == strlen(ALL_LF_TEXT_RAW));
data/libgit2-1.0.1+dfsg.1/tests/checkout/crlf.c:251: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).
	cl_assert(entry->file_size == strlen(ALL_CRLF_TEXT_RAW));
data/libgit2-1.0.1+dfsg.1/tests/checkout/crlf.c:302: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).
	cl_assert_equal_sz(strlen(ALL_LF_TEXT_AS_CRLF), entry->file_size);
data/libgit2-1.0.1+dfsg.1/tests/checkout/crlf.c:305: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).
	cl_assert_equal_sz(strlen(ALL_CRLF_TEXT_RAW), entry->file_size);
data/libgit2-1.0.1+dfsg.1/tests/checkout/icase.c:82: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).
	expected_len = strlen(expected);
data/libgit2-1.0.1+dfsg.1/tests/checkout/icase.c:83: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).
	actual_len = strlen(actual);
data/libgit2-1.0.1+dfsg.1/tests/checkout/index.c:201: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).
	cl_assert_equal_i(link_size, strlen("new.txt"));
data/libgit2-1.0.1+dfsg.1/tests/checkout/index.c:257: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).
	cl_assert_equal_i(link_size, strlen("new.txt"));
data/libgit2-1.0.1+dfsg.1/tests/clar.c:49:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#		ifndef strncpy
data/libgit2-1.0.1+dfsg.1/tests/clar.c:50:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#			define strncpy(to, from, to_size) strncpy_s(to, to_size, from, _TRUNCATE)
data/libgit2-1.0.1+dfsg.1/tests/clar.c:311: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 suitelen = strlen(suite->name);
data/libgit2-1.0.1+dfsg.1/tests/clar.c:312: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).
		matchlen = strlen(filter);
data/libgit2-1.0.1+dfsg.1/tests/clar.c:319: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).
			matchlen = strlen(filter);
data/libgit2-1.0.1+dfsg.1/tests/clar.c:396: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).
			arglen = strlen(argument);
data/libgit2-1.0.1+dfsg.1/tests/clar.c:402: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).
				suitelen = strlen(_clar_suites[j].name);
data/libgit2-1.0.1+dfsg.1/tests/clar.c:731:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
			strncat(buf, " != ", sizeof(buf) - offset);
data/libgit2-1.0.1+dfsg.1/tests/clar.c:746:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
			strncat(buf, " != ", sizeof(buf) - offset);
data/libgit2-1.0.1+dfsg.1/tests/clar/fixtures.h:7: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(base);
data/libgit2-1.0.1+dfsg.1/tests/clar/fixtures.h:8:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(_path, base, sizeof(_path));
data/libgit2-1.0.1+dfsg.1/tests/clar/fixtures.h:16:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(_path + root_len,
data/libgit2-1.0.1+dfsg.1/tests/clar/fs.h:54:22:  [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).
	buffer_prefix_len = wcslen(buffer);
data/libgit2-1.0.1+dfsg.1/tests/clar/fs.h:160:26:  [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).
	buf_source_prefix_len = wcslen(buf_source);
data/libgit2-1.0.1+dfsg.1/tests/clar/fs.h:164:24:  [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).
	buf_dest_prefix_len = wcslen(buf_dest);
data/libgit2-1.0.1+dfsg.1/tests/clar/fs.h:292: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).
	source_len = strlen(source);
data/libgit2-1.0.1+dfsg.1/tests/clar/sandbox.h:42:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buffer, env, length);
data/libgit2-1.0.1+dfsg.1/tests/clar/sandbox.h:53:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(buffer, "/tmp", length);
data/libgit2-1.0.1+dfsg.1/tests/clar/sandbox.h:68:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
		strncpy(buffer, ".", length);
data/libgit2-1.0.1+dfsg.1/tests/clar/sandbox.h:98: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(_clar_path);
data/libgit2-1.0.1+dfsg.1/tests/clar/sandbox.h:114:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(_clar_path + len, path_tail, sizeof(_clar_path) - len);
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c:32:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cl_must_pass(p_write(fd, content, strlen(content)));
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c:34: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).
		cl_must_pass(p_write(fd, filename, strlen(filename)));
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c:49: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).
		content_len = strlen(content);
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c:316:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(url, git_buf_cstr(&url_buf), 4096);
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c:391:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	data.filename_len = strlen(filename);
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c:440: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_tostr(buf + strlen(CL_COMMIT_MSG),
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.c:441: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).
			sizeof(buf) - strlen(CL_COMMIT_MSG), &tree_id);
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.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).
		expected_bytes = strlen(expected_data);
data/libgit2-1.0.1+dfsg.1/tests/clar_libgit2.h:225:23:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
# define cl_msleep(x) usleep(1000 * (x))
data/libgit2-1.0.1+dfsg.1/tests/clone/nonetwork.c:271:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_odb_write(&entry.id, odb, file_content, strlen(file_content), GIT_OBJECT_BLOB));
data/libgit2-1.0.1+dfsg.1/tests/commit/parse.c:57:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		const char *line_end = line + strlen(line);
data/libgit2-1.0.1+dfsg.1/tests/commit/parse.c:66:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		const char *line_end = line + strlen(line);
data/libgit2-1.0.1+dfsg.1/tests/commit/parse.c:152: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(passcase->string);
data/libgit2-1.0.1+dfsg.1/tests/commit/parse.c:166: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(failcase->string);
data/libgit2-1.0.1+dfsg.1/tests/commit/parse.c:286: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).
	fake_odb_object.cached.size = strlen(fake_odb_object.buffer);
data/libgit2-1.0.1+dfsg.1/tests/commit/parse.c:518:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_odb_write(&commit_id, odb, passing_commit_cases[4], strlen(passing_commit_cases[4]), GIT_OBJECT_COMMIT));
data/libgit2-1.0.1+dfsg.1/tests/commit/parse.c:537:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_odb_write(&commit_id, odb, passing_commit_cases[1], strlen(passing_commit_cases[1]), GIT_OBJECT_COMMIT));
data/libgit2-1.0.1+dfsg.1/tests/commit/parse.c:544:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_odb_write(&commit_id, odb, oneline_signature, strlen(oneline_signature), GIT_OBJECT_COMMIT));
data/libgit2-1.0.1+dfsg.1/tests/commit/signature.c:52: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).
	header_end = header + strlen(header) - 2;
data/libgit2-1.0.1+dfsg.1/tests/config/memory.c:64: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).
	cl_git_pass(git_config_backend_from_string(&backend, cfg, strlen(cfg)));
data/libgit2-1.0.1+dfsg.1/tests/config/memory.c:91: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).
	cl_git_pass(git_config_backend_from_string(&backend, cfg, strlen(cfg)));
data/libgit2-1.0.1+dfsg.1/tests/config/snapshot.c:133:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_config_backend_from_string(&backend, configuration, strlen(configuration)));
data/libgit2-1.0.1+dfsg.1/tests/config/write.c:571: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).
	cl_assert_equal_strn(SECTION_FOO, n, strlen(SECTION_FOO));
data/libgit2-1.0.1+dfsg.1/tests/config/write.c:572: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).
	n += strlen(SECTION_FOO);
data/libgit2-1.0.1+dfsg.1/tests/config/write.c:573: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).
	cl_assert_equal_strn("\tother = otherval\n", n, strlen("\tother = otherval\n"));
data/libgit2-1.0.1+dfsg.1/tests/config/write.c:574: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).
	n += strlen("\tother = otherval\n");
data/libgit2-1.0.1+dfsg.1/tests/config/write.c:575: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).
	cl_assert_equal_strn(FOO_COMMENT, n, strlen(FOO_COMMENT));
data/libgit2-1.0.1+dfsg.1/tests/config/write.c:576: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).
	n += strlen(FOO_COMMENT);
data/libgit2-1.0.1+dfsg.1/tests/config/write.c:578: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).
	cl_assert_equal_strn(SECTION_BAR, n, strlen(SECTION_BAR));
data/libgit2-1.0.1+dfsg.1/tests/config/write.c:579: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).
	n += strlen(SECTION_BAR);
data/libgit2-1.0.1+dfsg.1/tests/core/buffer.c:195: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).
		cl_assert(strlen(git_buf_cstr(&buf)) == (size_t)((i + 1) * 2));
data/libgit2-1.0.1+dfsg.1/tests/core/buffer.c:376: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).
	cl_assert(a.size == strlen(fun));
data/libgit2-1.0.1+dfsg.1/tests/core/buffer.c:377: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).
	cl_assert(a.asize == strlen(fun) + 1);
data/libgit2-1.0.1+dfsg.1/tests/core/buffer.c:382: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_buf_attach(&a, b, strlen(fun) + 1);
data/libgit2-1.0.1+dfsg.1/tests/core/buffer.c:385: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).
	cl_assert(a.size == strlen(fun));
data/libgit2-1.0.1+dfsg.1/tests/core/buffer.c:386:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_assert(a.asize == strlen(fun) + 1);
data/libgit2-1.0.1+dfsg.1/tests/core/buffer.c:736: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).
	cl_assert_equal_sz(strlen(expected), buf.size);
data/libgit2-1.0.1+dfsg.1/tests/core/buffer.c:809:3:  [1] (buffer) strlen:
  Does not handle 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("this is base 85 encoded")));
data/libgit2-1.0.1+dfsg.1/tests/core/buffer.c:1067: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).
	cl_assert_equal_sz(strlen(expected), buf.size); } while (0)
data/libgit2-1.0.1+dfsg.1/tests/core/buffer.c:1200: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).
	git_buf_attach_notowned(&buf, somestring, strlen(somestring) + 1);
data/libgit2-1.0.1+dfsg.1/tests/core/buffer.c:1203: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).
	cl_assert_equal_i(strlen(somestring) + 1, buf.size);
data/libgit2-1.0.1+dfsg.1/tests/core/copy.c:17: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).
	cl_assert(strlen(content) == (size_t)st.st_size);
data/libgit2-1.0.1+dfsg.1/tests/core/copy.c:42: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).
	cl_assert(strlen(content) == (size_t)st.st_size);
data/libgit2-1.0.1+dfsg.1/tests/core/copy.c:101: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).
	cl_assert(strlen(content) == (size_t)st.st_size);
data/libgit2-1.0.1+dfsg.1/tests/core/dirent.c:291:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(root_path, sandbox_path, root_offset + 1);
data/libgit2-1.0.1+dfsg.1/tests/core/env.c:90: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 testlen = strlen(testname);
data/libgit2-1.0.1+dfsg.1/tests/core/env.c:92:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(testfile, testname, sizeof(testfile));
data/libgit2-1.0.1+dfsg.1/tests/core/env.c:257: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 testlen = strlen(testname);
data/libgit2-1.0.1+dfsg.1/tests/core/env.c:259:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(testfile, testname, sizeof(testfile));
data/libgit2-1.0.1+dfsg.1/tests/core/errors.c:70: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).
	cl_assert(strlen(str_in_error) > strlen("stat failed: "));
data/libgit2-1.0.1+dfsg.1/tests/core/errors.c:70: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).
	cl_assert(strlen(str_in_error) > strlen("stat failed: "));
data/libgit2-1.0.1+dfsg.1/tests/core/errors.c:83: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).
	cl_assert(strlen(str_in_error) > strlen("GetProcessId failed: "));
data/libgit2-1.0.1+dfsg.1/tests/core/errors.c:83: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).
	cl_assert(strlen(str_in_error) > strlen("GetProcessId failed: "));
data/libgit2-1.0.1+dfsg.1/tests/core/iconv.c:28: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 datalen = strlen(data);
data/libgit2-1.0.1+dfsg.1/tests/core/iconv.c:42: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 datalen, nfdlen = strlen(nfd);
data/libgit2-1.0.1+dfsg.1/tests/core/iconv.c:68: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 datalen = strlen(nfc);
data/libgit2-1.0.1+dfsg.1/tests/core/link.c:98: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(old); i++)
data/libgit2-1.0.1+dfsg.1/tests/core/link.c:161:3:  [1] (buffer) strlen:
  Does not handle 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(reparse_data) + 1;
data/libgit2-1.0.1+dfsg.1/tests/core/link.c:167: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).
	reparse_buf->ReparseDataLength = (WORD)(strlen(reparse_data) + 1);
data/libgit2-1.0.1+dfsg.1/tests/core/link.c:183: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).
		reparse_data, strlen(reparse_data) + 1);
data/libgit2-1.0.1+dfsg.1/tests/core/link.c:364: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).
	cl_assert_equal_i(strlen("lstat_nonexistent"), st.st_size);
data/libgit2-1.0.1+dfsg.1/tests/core/link.c:380: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).
	cl_assert_equal_i(strlen("lstat_nonexistent"), st.st_size);
data/libgit2-1.0.1+dfsg.1/tests/core/memmem.c:5: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).
	cl_assert_equal_p(git__memmem(haystack, haystack ? strlen(haystack) : 0,
data/libgit2-1.0.1+dfsg.1/tests/core/memmem.c:6: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).
				      needle, needle ? strlen(needle) : 0),
data/libgit2-1.0.1+dfsg.1/tests/core/memmem.c:12: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).
	cl_assert_equal_p(git__memmem(haystack, haystack ? strlen(haystack) : 0,
data/libgit2-1.0.1+dfsg.1/tests/core/memmem.c:13: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).
				      needle, needle ? strlen(needle) : 0),
data/libgit2-1.0.1+dfsg.1/tests/core/path.c:216: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(path);
data/libgit2-1.0.1+dfsg.1/tests/core/path.c:220:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, path, len + 2);
data/libgit2-1.0.1+dfsg.1/tests/core/strtol.c:6: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).
	cl_git_pass(git__strntol32(&i, string, strlen(string), NULL, base));
data/libgit2-1.0.1+dfsg.1/tests/core/strtol.c:13: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).
	cl_git_fail(git__strntol32(&i, string, strlen(string), NULL, base));
data/libgit2-1.0.1+dfsg.1/tests/core/strtol.c:19: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).
	cl_git_pass(git__strntol64(&i, string, strlen(string), NULL, base));
data/libgit2-1.0.1+dfsg.1/tests/core/strtol.c:26: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).
	cl_git_fail(git__strntol64(&i, string, strlen(string), NULL, base));
data/libgit2-1.0.1+dfsg.1/tests/core/zstream.c:52: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).
	cl_git_pass(git_zstream_set_input(&z, data, strlen(data) + 1));
data/libgit2-1.0.1+dfsg.1/tests/core/zstream.c:58: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).
	assert_zlib_equal(data, strlen(data) + 1, out, outlen);
data/libgit2-1.0.1+dfsg.1/tests/core/zstream.c:83: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).
	cl_git_pass(git_zstream_deflatebuf(&out, data, strlen(data) + 1));
data/libgit2-1.0.1+dfsg.1/tests/core/zstream.c:84: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).
	assert_zlib_equal(data, strlen(data) + 1, out.ptr, out.size);
data/libgit2-1.0.1+dfsg.1/tests/core/zstream.c:155: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_put(&in, BIG_STRING_PART, strlen(BIG_STRING_PART)));
data/libgit2-1.0.1+dfsg.1/tests/diff/blob.c:29:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(str);
data/libgit2-1.0.1+dfsg.1/tests/diff/blob.c:686: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).
		&p, a, NULL, b_content, strlen(b_content), NULL, &opts));
data/libgit2-1.0.1+dfsg.1/tests/diff/blob.c:703: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).
		&p, a, NULL, a_content, strlen(a_content), NULL, &opts));
data/libgit2-1.0.1+dfsg.1/tests/diff/blob.c:711:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		&p, NULL, NULL, a_content, strlen(a_content), NULL, &opts));
data/libgit2-1.0.1+dfsg.1/tests/diff/blob.c:907: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).
		&p, nonbin, "zzz.normal", changed, strlen(changed), NULL, &opts));
data/libgit2-1.0.1+dfsg.1/tests/diff/blob.c:922: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).
		&p, nonbin, "zzz.binary", changed, strlen(changed), NULL, &opts));
data/libgit2-1.0.1+dfsg.1/tests/diff/blob.c:932: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).
		&p, nonbin, "zzz.alphary", changed, strlen(changed), NULL, &opts));
data/libgit2-1.0.1+dfsg.1/tests/diff/blob.c:947: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).
		&p, nonbin, "zzz.numary", changed, strlen(changed), NULL, &opts));
data/libgit2-1.0.1+dfsg.1/tests/diff/blob.c:1035: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).
		a, strlen(a), NULL, b, strlen(b), NULL, &opts,
data/libgit2-1.0.1+dfsg.1/tests/diff/blob.c:1035: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).
		a, strlen(a), NULL, b, strlen(b), NULL, &opts,
data/libgit2-1.0.1+dfsg.1/tests/diff/blob.c:1044: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).
		a, strlen(a), NULL, b, strlen(b), NULL, &opts,
data/libgit2-1.0.1+dfsg.1/tests/diff/blob.c:1044: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).
		a, strlen(a), NULL, b, strlen(b), NULL, &opts,
data/libgit2-1.0.1+dfsg.1/tests/diff/diff_helpers.c:9: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(partial_oid);
data/libgit2-1.0.1+dfsg.1/tests/diff/drivers.c:198: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).
		extension = path + strlen("files/file.");
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:25:3:  [1] (buffer) strlen:
  Does not handle 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(not)));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:29:3:  [1] (buffer) strlen:
  Does not handle 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(not_with_leading)));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:33:3:  [1] (buffer) strlen:
  Does not handle 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(not_with_trailing)));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:37:3:  [1] (buffer) strlen:
  Does not handle 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(not_with_both)));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:77: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).
		&diff, content, strlen(content)));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.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).
		&diff, content, strlen(content)));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:107: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).
		&diff, content, strlen(content)));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:273: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).
	cl_git_pass(git_diff_from_buffer(&diff, patch, strlen(patch)));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:293: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).
	cl_git_pass(git_diff_from_buffer(&diff, patch, strlen(patch)));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:308:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_patch_from_buffers(&patch, buf1, strlen(buf1), "obj1", buf2, strlen(buf2), "obj2", NULL));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:308:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_patch_from_buffers(&patch, buf1, strlen(buf1), "obj1", buf2, strlen(buf2), "obj2", NULL));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:353: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).
	cl_git_pass(git_diff_from_buffer(&diff, text, strlen(text)));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:374: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).
	cl_git_pass(git_diff_from_buffer(&diff, text, strlen(text)));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:400:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_diff_from_buffer(&diff, content, strlen(content)));
data/libgit2-1.0.1+dfsg.1/tests/diff/parse.c:419: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).
	cl_git_pass(git_diff_from_buffer(&diff, text, strlen(text)));
data/libgit2-1.0.1+dfsg.1/tests/diff/patch.c:172: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).
	cl_assert_equal_sz(strlen(expected), git_patch_size(patch, 1, 1, 1));
data/libgit2-1.0.1+dfsg.1/tests/diff/patch.c:482: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(expected), git_patch_size(patch, 1, 1, 1));
data/libgit2-1.0.1+dfsg.1/tests/diff/patch.c:697: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).
	cl_git_pass(git_patch_from_buffers(&patch, a, strlen(a), NULL, b, strlen(b), NULL, &opts));
data/libgit2-1.0.1+dfsg.1/tests/diff/patch.c:697:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_patch_from_buffers(&patch, a, strlen(a), NULL, b, strlen(b), NULL, &opts));
data/libgit2-1.0.1+dfsg.1/tests/diff/patchid.c:10: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).
	cl_git_pass(git_diff_from_buffer(&diff, diff_content, strlen(diff_content)));
data/libgit2-1.0.1+dfsg.1/tests/diff/submodules.c:518: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).
		pathlen = strlen(opts.pathspec.strings[i]);
data/libgit2-1.0.1+dfsg.1/tests/diff/tree.c:538:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_blob_create_from_buffer(&blob, g_repo, content, strlen(content)));
data/libgit2-1.0.1+dfsg.1/tests/diff/workdir.c:1909: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).
			data[i].size = strlen(data[i].ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:37: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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:90: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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:97: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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:104: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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:111: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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:138: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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:145: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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:153: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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:179:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:186: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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:193: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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:220: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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:227: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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/crlf.c:235: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).
	in.size = strlen(in.ptr);
data/libgit2-1.0.1+dfsg.1/tests/filter/custom.c:99: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).
	git_buf in = GIT_BUF_INIT_CONST(workdir_data, strlen(workdir_data));
data/libgit2-1.0.1+dfsg.1/tests/filter/custom.c:127: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).
	cl_assert_equal_i(strlen(workdir_data), out.size);
data/libgit2-1.0.1+dfsg.1/tests/filter/custom.c:249: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).
	git_buf in = GIT_BUF_INIT_CONST(workdir_data, strlen(workdir_data));
data/libgit2-1.0.1+dfsg.1/tests/ignore/status.c:228: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 repolen = strlen(reponame) + 1;
data/libgit2-1.0.1+dfsg.1/tests/index/crlf.c:185: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).
		bool skip = strncasecmp(basename, ".git", 4) == 0 && strlen(basename) == 4;
data/libgit2-1.0.1+dfsg.1/tests/index/filemodes.c:192: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).
		clar__assert(!git_index_add_from_buffer(index, &new_entry, content, strlen(content)),
data/libgit2-1.0.1+dfsg.1/tests/index/filemodes.c:275: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).
		&new_entry, content, strlen(content)));
data/libgit2-1.0.1+dfsg.1/tests/index/filemodes.c:286: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).
		&new_entry, content, strlen(content)));
data/libgit2-1.0.1+dfsg.1/tests/index/filemodes.c:297: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).
		&new_entry, content, strlen(content)));
data/libgit2-1.0.1+dfsg.1/tests/index/filemodes.c:308: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).
		&new_entry, content, strlen(content)));
data/libgit2-1.0.1+dfsg.1/tests/index/filemodes.c:316: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).
		&new_entry, content, strlen(content)));
data/libgit2-1.0.1+dfsg.1/tests/index/tests.c:314: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).
		content, strlen(content)));
data/libgit2-1.0.1+dfsg.1/tests/index/tests.c:443: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).
	cl_git_pass(git_filebuf_write(&file, old_content, strlen(old_content)));
data/libgit2-1.0.1+dfsg.1/tests/index/tests.c:459: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).
		content, strlen(content)));
data/libgit2-1.0.1+dfsg.1/tests/index/version.c:60: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).
						     strlen(paths[i]) + 1));
data/libgit2-1.0.1+dfsg.1/tests/iterator/iterator_helpers.c:44: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 expect_len = strlen(expect_path);
data/libgit2-1.0.1+dfsg.1/tests/iterator/iterator_helpers.c:75: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 expect_len = strlen(expect_path);
data/libgit2-1.0.1+dfsg.1/tests/iterator/workdir.c:473: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).
			buf[strlen(buf) - 5] = '\0';
data/libgit2-1.0.1+dfsg.1/tests/iterator/workdir.c:489: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 sublen = strlen(sub);
data/libgit2-1.0.1+dfsg.1/tests/mailmap/basic.c:31: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).
		&mailmap, TEST_MAILMAP, strlen(TEST_MAILMAP)));
data/libgit2-1.0.1+dfsg.1/tests/mailmap/parsing.c:94: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).
		&g_mailmap, string_mailmap, strlen(string_mailmap)));
data/libgit2-1.0.1+dfsg.1/tests/mailmap/parsing.c:111: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).
	git_buf_attach_notowned(&unixbuf, string_mailmap, strlen(string_mailmap));
data/libgit2-1.0.1+dfsg.1/tests/merge/driver.c:155: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).
	cl_assert_equal_file(expected, strlen(expected),
data/libgit2-1.0.1+dfsg.1/tests/merge/driver.c:165: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).
	cl_assert_equal_file(expected, strlen(expected),
data/libgit2-1.0.1+dfsg.1/tests/merge/driver.c:302: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).
	cl_assert_equal_file(expected, strlen(expected),
data/libgit2-1.0.1+dfsg.1/tests/merge/driver.c:324: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).
	cl_assert_equal_file(expected, strlen(expected),
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:47: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).
	ancestor.size = strlen(ancestor.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:52: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).
	ours.size = strlen(ours.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:57: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).
	theirs.size = strlen(theirs.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:68: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).
	cl_assert_equal_i(strlen(expected), result.len);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:83: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).
	ancestor.size = strlen(ancestor.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:88: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).
	ours.size = strlen(ours.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:93: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).
	theirs.size = strlen(theirs.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:104: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).
	cl_assert_equal_i(strlen(expected), result.len);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:118: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 expected_len = strlen(expected);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:121: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).
	ancestor.size = strlen(ancestor.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:126: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).
	ours.size = strlen(ours.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:131: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).
	theirs.size = strlen(theirs.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:173: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).
	cl_assert_equal_i(strlen(AUTOMERGEABLE_MERGED_FILE), result.len);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:189: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).
	ancestor.size = strlen(ancestor.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:194: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).
	ours.size = strlen(ours.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:199: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).
	theirs.size = strlen(theirs.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:211: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).
	cl_assert_equal_i(strlen(expected), result.len);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:227: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).
	ancestor.size = strlen(ancestor.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:232: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).
	ours.size = strlen(ours.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:237: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).
	theirs.size = strlen(theirs.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:249: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).
	cl_assert_equal_i(strlen(expected), result.len);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:265: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).
	ancestor.size = strlen(ancestor.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:270: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).
	ours.size = strlen(ours.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:275: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).
	theirs.size = strlen(theirs.ptr);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:287: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).
	cl_assert_equal_i(strlen(expected), result.len);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:392: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 expected_len = strlen(expected);
data/libgit2-1.0.1+dfsg.1/tests/merge/files.c:398: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 expected_diff3_len = strlen(expected_diff3);
data/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.c:167: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(expected->oid_str) != 0) {
data/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.c:178: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 (actual->mode == 0 && (actual->path != NULL || strlen(expected->path) > 0))
data/libgit2-1.0.1+dfsg.1/tests/merge/merge_helpers.c:189: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(expected) == 0)
data/libgit2-1.0.1+dfsg.1/tests/merge/trees/automerge.c:101: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).
	cl_assert(entry->file_size == strlen(AUTOMERGEABLE_MERGED_FILE));
data/libgit2-1.0.1+dfsg.1/tests/merge/trees/commits.c:63: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).
	cl_assert(entry->file_size == strlen(AUTOMERGEABLE_MERGED_FILE));
data/libgit2-1.0.1+dfsg.1/tests/merge/workdir/simple.c:166: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).
	cl_assert(entry->file_size == strlen(AUTOMERGEABLE_MERGED_FILE));
data/libgit2-1.0.1+dfsg.1/tests/merge/workdir/simple.c:241: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).
	cl_assert(entry->file_size == strlen(AUTOMERGEABLE_MERGED_FILE_CRLF));
data/libgit2-1.0.1+dfsg.1/tests/object/blob/filter.c:60: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).
			g_crlf_raw_len[i] = strlen(g_crlf_raw[i]);
data/libgit2-1.0.1+dfsg.1/tests/object/blob/fromstream.c:35:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cl_git_pass(stream->write(stream, textual_content, strlen(textual_content)));
data/libgit2-1.0.1+dfsg.1/tests/object/blob/fromstream.c:73:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cl_git_pass(stream->write(stream, textual_content, strlen(textual_content)));
data/libgit2-1.0.1+dfsg.1/tests/object/commit/parse.c:16: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).
		datalen = strlen(data);
data/libgit2-1.0.1+dfsg.1/tests/object/commit/parse.c:67: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).
		datalen = strlen(data);
data/libgit2-1.0.1+dfsg.1/tests/object/commit/parse.c:226: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).
	assert_commit_parses(commit, strlen(commit) - strlen("ncoding foo\n"),
data/libgit2-1.0.1+dfsg.1/tests/object/commit/parse.c:226:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert_commit_parses(commit, strlen(commit) - strlen("ncoding foo\n"),
data/libgit2-1.0.1+dfsg.1/tests/object/lookup.c:45: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).
	cl_git_pass(git_oid_fromstrn(&oid, commit, strlen(commit)));
data/libgit2-1.0.1+dfsg.1/tests/object/lookup.c:47:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		GIT_ENOTFOUND, git_object_lookup_prefix(&object, g_repo, &oid, strlen(commit), GIT_OBJECT_TAG));
data/libgit2-1.0.1+dfsg.1/tests/object/raw/hash.c:32: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).
	cl_git_pass(git_hash_update(&ctx, hello_text, strlen(hello_text)));
data/libgit2-1.0.1+dfsg.1/tests/object/raw/hash.c:39: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).
	cl_git_pass(git_hash_update(&ctx, bye_text, strlen(bye_text)));
data/libgit2-1.0.1+dfsg.1/tests/object/raw/hash.c:52: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_hash_buf(&id2, hello_text, strlen(hello_text));
data/libgit2-1.0.1+dfsg.1/tests/object/raw/hash.c:66: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).
	vec[1].len  = strlen(hello_text)-4;
data/libgit2-1.0.1+dfsg.1/tests/object/raw/short.c:36: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).
		git_hash_buf(&oid, numbuf, strlen(numbuf));
data/libgit2-1.0.1+dfsg.1/tests/object/tag/parse.c:15: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).
		datalen = strlen(data);
data/libgit2-1.0.1+dfsg.1/tests/object/tag/parse.c:56: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).
		datalen = strlen(data);
data/libgit2-1.0.1+dfsg.1/tests/object/tag/parse.c:216:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert_tag_fails(tag, strlen(tag) - strlen("\n\nMessage"));
data/libgit2-1.0.1+dfsg.1/tests/object/tag/parse.c:216: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).
	assert_tag_fails(tag, strlen(tag) - strlen("\n\nMessage"));
data/libgit2-1.0.1+dfsg.1/tests/object/tag/read.c:173: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).
	cl_git_pass(git_odb_write(&id, odb, silly_tag, strlen(silly_tag), GIT_OBJECT_TAG));
data/libgit2-1.0.1+dfsg.1/tests/object/tree/parse.c:28: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).
		datalen = strlen(data);
data/libgit2-1.0.1+dfsg.1/tests/object/tree/parse.c:53: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).
		datalen = strlen(data);
data/libgit2-1.0.1+dfsg.1/tests/odb/backend/backend_helpers.c:75: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_p = strlen(obj->content);
data/libgit2-1.0.1+dfsg.1/tests/odb/backend/backend_helpers.c:97: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_p = strlen(obj->content);
data/libgit2-1.0.1+dfsg.1/tests/odb/backend/backend_helpers.c:119: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_p = strlen(obj->content);
data/libgit2-1.0.1+dfsg.1/tests/odb/backend/mempack.c:31: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).
	cl_git_pass(git_odb_write(&_oid, _odb, data, strlen(data) + 1, GIT_OBJECT_BLOB));
data/libgit2-1.0.1+dfsg.1/tests/odb/backend/mempack.c:50: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).
	cl_git_pass(git_odb_write(&_oid, _odb, data, strlen(data) + 1, GIT_OBJECT_BLOB));
data/libgit2-1.0.1+dfsg.1/tests/odb/backend/mempack.c:58:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_blob_create_from_buffer(&_oid, _repo, data, strlen(data) + 1));
data/libgit2-1.0.1+dfsg.1/tests/odb/backend/simple.c:125:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_oid_fromstrn(&_oid, hash, strlen(hash)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:50:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(hex, "dea509d0", sizeof(hex));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:51: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).
	cl_git_pass(git_oid_fromstrn(&oid, hex, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:53: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).
		GIT_EAMBIGUOUS, git_odb_read_prefix(&obj, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:55:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		GIT_EAMBIGUOUS, git_odb_exists_prefix(&found, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:57:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(hex, "dea509d09", sizeof(hex));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:58: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).
	cl_git_pass(git_oid_fromstrn(&oid, hex, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:59: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).
	cl_git_pass(git_odb_read_prefix(&obj, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:60: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).
	cl_git_pass(git_odb_exists_prefix(&found, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:64:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(hex, "dea509d0b", sizeof(hex));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:65: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).
	cl_git_pass(git_oid_fromstrn(&oid, hex, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:66: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).
	cl_git_pass(git_odb_read_prefix(&obj, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:71:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(hex, "81b5bff5", sizeof(hex));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:72: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).
	cl_git_pass(git_oid_fromstrn(&oid, hex, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:74: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).
		GIT_EAMBIGUOUS, git_odb_read_prefix(&obj, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:76:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		GIT_EAMBIGUOUS, git_odb_exists_prefix(&found, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:78:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(hex, "81b5bff5b", sizeof(hex));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:79: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).
	cl_git_pass(git_oid_fromstrn(&oid, hex, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:80: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).
	cl_git_pass(git_odb_read_prefix(&obj, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:81: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).
	cl_git_pass(git_odb_exists_prefix(&found, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:85:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(hex, "81b5bff5f", sizeof(hex));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:86: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).
	cl_git_pass(git_oid_fromstrn(&oid, hex, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:87: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).
	cl_git_pass(git_odb_read_prefix(&obj, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:92:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(hex, "0ddeaded", sizeof(hex));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:93: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).
	cl_git_pass(git_oid_fromstrn(&oid, hex, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:95: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).
		GIT_EAMBIGUOUS, git_odb_read_prefix(&obj, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:97:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		GIT_EAMBIGUOUS, git_odb_exists_prefix(&found, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:99:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(hex, "0ddeaded9", sizeof(hex));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:100: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).
	cl_git_pass(git_oid_fromstrn(&oid, hex, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:101: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).
	cl_git_pass(git_odb_read_prefix(&obj, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:102: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).
	cl_git_pass(git_odb_exists_prefix(&found, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:106:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(hex, "0ddeadede", sizeof(hex));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:107: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).
	cl_git_pass(git_oid_fromstrn(&oid, hex, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:108: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).
	cl_git_pass(git_odb_read_prefix(&obj, _odb, &oid, strlen(hex)));
data/libgit2-1.0.1+dfsg.1/tests/odb/mixed.c:171: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(expand_id_test_data[i].lookup_id);
data/libgit2-1.0.1+dfsg.1/tests/online/clone.c:402: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).
	cl_git_pass(git_buf_encode_base64(&auth, creds, strlen(creds)));
data/libgit2-1.0.1+dfsg.1/tests/online/clone.c:630: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(_remote_ssh_fingerprint) == 32 && key->type & GIT_CERT_SSH_MD5) {
data/libgit2-1.0.1+dfsg.1/tests/online/clone.c:632: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).
	} else 	if (strlen(_remote_ssh_fingerprint) == 40 && key->type & GIT_CERT_SSH_SHA1) {
data/libgit2-1.0.1+dfsg.1/tests/online/clone.c:788: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).
		host_len = strlen(_remote_proxy_host);
data/libgit2-1.0.1+dfsg.1/tests/online/clone.c:791: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).
	    strlen(host) == host_len &&
data/libgit2-1.0.1+dfsg.1/tests/pack/indexer.c:187:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t read;
data/libgit2-1.0.1+dfsg.1/tests/pack/indexer.c:198:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cl_assert(read != -1);
data/libgit2-1.0.1+dfsg.1/tests/pack/indexer.c:201:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cl_git_pass(git_indexer_append(idx, buffer, read, &stats));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:34: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).
	cl_git_pass(git_patch_from_buffer(&patch, content, strlen(content), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:36: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).
	cl_assert_equal_strn(git_buf_cstr(&buf), content, strlen(content));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:48:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_ORIGINAL_TO_CHANGE_MIDDLE), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:68: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).
	cl_git_pass(git_patch_from_buffer(&patch, leading, strlen(leading),
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:73:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_pass(git_patch_from_buffer(&patch, trailing, strlen(trailing),
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:78: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).
	cl_git_pass(git_patch_from_buffer(&patch, both, strlen(both),
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:90:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_NOT_A_PATCH), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:99:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_CORRUPT_GIT_HEADER), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:103:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_CORRUPT_MISSING_NEW_FILE), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:107:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_CORRUPT_MISSING_OLD_FILE), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:110:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_CORRUPT_NO_CHANGES), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:114:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_CORRUPT_MISSING_HUNK_HEADER), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:156: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(PATCH_BINARY_FILE_WITH_MISSING_PATHS), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:163: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(PATCH_BINARY_FILE_WITH_WHITESPACE_PATHS), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:170: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(PATCH_BINARY_FILE_WITH_QUOTED_EMPTY_PATHS), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:177: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(PATCH_BINARY_FILE_PATH_WITH_SPACES), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:184: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(PATCH_BINARY_FILE_PATH_WITHOUT_BODY_PATHS), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:191: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(PATCH_BINARY_FILE_WITH_TRUNCATED_DELTA), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:198:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_fail(git_patch_from_buffer(&patch, PATCH_MULTIPLE_OLD_PATHS, strlen(PATCH_MULTIPLE_OLD_PATHS), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:203: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(PATCH_APPEND_NO_NL) - strlen("at end of file\n");
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:203: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).
	size_t len = strlen(PATCH_APPEND_NO_NL) - strlen("at end of file\n");
data/libgit2-1.0.1+dfsg.1/tests/patch/parse.c:217:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_fail(git_patch_from_buffer(&patch, PATCH_INTMAX_NEW_LINES, strlen(PATCH_INTMAX_NEW_LINES), NULL));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:29:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_ORIGINAL_TO_CHANGE_MIDDLE));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:35:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_ORIGINAL_TO_CHANGE_MIDDLE_NOCONTEXT));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:41:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_ORIGINAL_TO_CHANGE_FIRSTLINE));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:47:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_ORIGINAL_TO_CHANGE_LASTLINE));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:53:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_ORIGINAL_TO_PREPEND));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:59:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_ORIGINAL_TO_PREPEND_NOCONTEXT));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:65:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_ORIGINAL_TO_APPEND));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:71:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_ORIGINAL_TO_APPEND_NOCONTEXT));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:77:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_ORIGINAL_TO_PREPEND_AND_APPEND));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:83:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_ORIGINAL_TO_EMPTY_FILE));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:89:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_EMPTY_FILE_TO_ORIGINAL));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:95:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_ADD_ORIGINAL));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:101:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_DELETE_ORIGINAL));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:107:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_RENAME_EXACT));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:113:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_RENAME_SIMILAR));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:119:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_RENAME_EXACT_QUOTEDNAME));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:125:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_RENAME_SIMILAR_QUOTEDNAME));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:131:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_MODECHANGE_UNCHANGED));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:137:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_MODECHANGE_MODIFIED));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:143:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_BINARY_LITERAL));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:149:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_BINARY_DELTA));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:155:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_BINARY_ADD));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:161:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_BINARY_DELETE));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:167:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_BINARY_NOT_REVERSIBLE));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:173:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_BINARY_NOT_PRINTED));
data/libgit2-1.0.1+dfsg.1/tests/patch/print.c:179:3:  [1] (buffer) strlen:
  Does not handle 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(PATCH_ADD_BINARY_NOT_PRINTED));
data/libgit2-1.0.1+dfsg.1/tests/path/dotgit.c:98:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_assert_equal_i(1, git_path_is_gitfile(".gitmodules", strlen(".gitmodules"), GIT_PATH_GITFILE_GITMODULES, GIT_PATH_FS_GENERIC));
data/libgit2-1.0.1+dfsg.1/tests/path/dotgit.c:99:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_assert_equal_i(1, git_path_is_gitfile(".git\xe2\x80\x8cmodules", strlen(".git\xe2\x80\x8cmodules"), GIT_PATH_GITFILE_GITMODULES, GIT_PATH_FS_GENERIC));
data/libgit2-1.0.1+dfsg.1/tests/path/dotgit.c:103:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!git_path_is_gitfile(name, strlen(name), GIT_PATH_GITFILE_GITMODULES, GIT_PATH_FS_GENERIC))
data/libgit2-1.0.1+dfsg.1/tests/path/dotgit.c:109: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 (git_path_is_gitfile(name, strlen(name), GIT_PATH_GITFILE_GITMODULES, GIT_PATH_FS_GENERIC))
data/libgit2-1.0.1+dfsg.1/tests/path/win32.c:17:20:  [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).
	cl_assert_equal_i(wcslen(utf16_expected), path_utf16len);
data/libgit2-1.0.1+dfsg.1/tests/path/win32.c:32:20:  [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).
	cl_assert_equal_i(wcslen(utf16_expected), path_utf16len);
data/libgit2-1.0.1+dfsg.1/tests/path/win32.c:177:12:  [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).
	cl_assert(wcslen(in) < MAX_PATH);
data/libgit2-1.0.1+dfsg.1/tests/path/win32.c:190:12:  [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).
	cl_assert(wcslen(in) < MAX_PATH);
data/libgit2-1.0.1+dfsg.1/tests/path/win32.c:193:45:  [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).
	git_win32_path_remove_namespace(canonical, wcslen(in));
data/libgit2-1.0.1+dfsg.1/tests/rebase/merge.c:145: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).
	cl_assert_equal_file(expected_merge, strlen(expected_merge), "rebase/asparagus.txt");
data/libgit2-1.0.1+dfsg.1/tests/rebase/sign.c:113: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).
	cl_git_pass(git_buf_set(signature, gpg_signature, strlen(gpg_signature) + 1));
data/libgit2-1.0.1+dfsg.1/tests/rebase/sign.c:193:3:  [1] (buffer) strlen:
  Does not handle 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(signature_content) + 1));
data/libgit2-1.0.1+dfsg.1/tests/rebase/sign.c:195:3:  [1] (buffer) strlen:
  Does not handle 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(signature_field_content) + 1));
data/libgit2-1.0.1+dfsg.1/tests/refs/branches/remote.c:14: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).
	expected_remote_name_length = (int)strlen(expected_remote_name) + 1;
data/libgit2-1.0.1+dfsg.1/tests/repo/discover.c:56: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).
	error = p_write(file, content, strlen(content) * sizeof(char));
data/libgit2-1.0.1+dfsg.1/tests/revwalk/mergebase.c:204:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cl_git_pass(git_oid_fromstrn(&oid, partial_oid, strlen(partial_oid)));
data/libgit2-1.0.1+dfsg.1/tests/revwalk/mergebase.c:206:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cl_git_pass(git_object_lookup_prefix(&object, _repo, &oid, strlen(partial_oid), GIT_OBJECT_COMMIT));
data/libgit2-1.0.1+dfsg.1/tests/revwalk/mergebase.c:268:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cl_git_pass(git_oid_fromstrn(&oid, partial_oid, strlen(partial_oid)));
data/libgit2-1.0.1+dfsg.1/tests/revwalk/mergebase.c:270:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cl_git_pass(git_object_lookup_prefix(&object, _repo, &oid, strlen(partial_oid), GIT_OBJECT_COMMIT));
data/libgit2-1.0.1+dfsg.1/tests/stress/diff.c:108: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).
		cl_git_pass(git_index_add_bypath(index, tmp + strlen("renames/")));
data/libgit2-1.0.1+dfsg.1/tests/stress/diff.c:140: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).
		cl_git_pass(git_index_add_bypath(index, tmp + strlen("renames/")));
data/libgit2-1.0.1+dfsg.1/tests/submodule/submodule_helpers.c:32: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("path =");
data/libgit2-1.0.1+dfsg.1/tests/submodule/submodule_helpers.c:56: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("url =");
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:11: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 linelen = strlen(line) + 1;
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:24: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 linelen = strlen(line) + 1;
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:38: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 linelen = strlen(line) + 1;
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:52: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 linelen = strlen(line) + 1;
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:66: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 linelen = strlen(line) + 1;
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:83: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 linelen = strlen(line) + 1;
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:96: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 linelen = strlen(line) + 1;
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:102:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_assert_equal_strn(pkt->comment, expected_comment, strlen(expected_comment));
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:109: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 linelen = strlen(line) + 1;
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:115: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).
	cl_assert_equal_strn(pkt->ref, expected_ref, strlen(expected_ref));
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:122: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 linelen = strlen(line) + 1;
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:135: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 linelen = strlen(line) + 1;
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:141: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).
	cl_assert_equal_strn(pkt->ref, expected_ref, strlen(expected_ref));
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:142: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).
	cl_assert_equal_strn(pkt->msg, expected_msg, strlen(expected_msg));
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:162: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).
	cl_assert_equal_strn(pkt->head.name, expected_ref, strlen(expected_ref));
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:164:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cl_assert_equal_strn(pkt->capabilities, expected_capabilities, strlen(expected_capabilities));
data/libgit2-1.0.1+dfsg.1/tests/transports/smart/packet.c:175:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cl_git_fail(git_pkt_parse_line(&pkt, &endptr, line, strlen(line) + 1));
data/libgit2-1.0.1+dfsg.1/tests/win32/longpath.c:14: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 base_len = strlen(base);
data/libgit2-1.0.1+dfsg.1/tests/win32/longpath.c:42: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).
	actual_len = strlen(err->message);
data/libgit2-1.0.1+dfsg.1/tests/win32/longpath.c:45: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).
	expected_len = strlen(expected_msg);

ANALYSIS SUMMARY:

Hits = 1561
Lines analyzed = 253497 in approximately 8.52 seconds (29765 lines/second)
Physical Source Lines of Code (SLOC) = 171488
Hits@level = [0] 389 [1] 896 [2] 592 [3]  21 [4]  47 [5]   5
Hits@level+ = [0+] 1950 [1+] 1561 [2+] 665 [3+]  73 [4+]  52 [5+]   5
Hits/KSLOC@level+ = [0+] 11.3711 [1+] 9.10268 [2+] 3.87782 [3+] 0.425686 [4+] 0.303228 [5+] 0.0291566
Dot directories skipped = 47 (--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.