Staging
v0.5.1
https://github.com/git/git
Revision 883653babd8ee7ea23e6a5c392bb739348b1eb61 authored by Junio C Hamano on 13 September 2006, 06:53:27 UTC, committed by Junio C Hamano on 13 September 2006, 07:54:43 UTC
Fetch over http from a repository that uses alternates to borrow
from neighbouring repositories were quite broken, apparently for
some time now.

We parse input and count bytes to allocate the new buffer, and
when we copy into that buffer we know exactly how many bytes we
want to copy from where.  Using strlcpy for it was simply
stupid, and the code forgot to take it into account that strlcpy
terminated the string with NUL.

Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 60a6bf5
History
Tip revision: 883653babd8ee7ea23e6a5c392bb739348b1eb61 authored by Junio C Hamano on 13 September 2006, 06:53:27 UTC
http-fetch: fix alternates handling.
Tip revision: 883653b
File Mode Size
howto
technical
.gitignore -rw-r--r-- 52 bytes
Makefile -rw-r--r-- 2.4 KB
SubmittingPatches -rw-r--r-- 11.3 KB
asciidoc.conf -rw-r--r-- 822 bytes
build-docdep.perl -rwxr-xr-x 1.0 KB
callouts.xsl -rw-r--r-- 596 bytes
config.txt -rw-r--r-- 9.7 KB
core-tutorial.txt -rw-r--r-- 63.1 KB
cvs-migration.txt -rw-r--r-- 12.1 KB
diff-format.txt -rw-r--r-- 6.5 KB
diff-options.txt -rw-r--r-- 3.2 KB
diffcore.txt -rw-r--r-- 10.9 KB
everyday.txt -rw-r--r-- 14.4 KB
fetch-options.txt -rw-r--r-- 1.5 KB
git-add.txt -rw-r--r-- 2.0 KB
git-am.txt -rw-r--r-- 2.5 KB
git-annotate.txt -rw-r--r-- 744 bytes
git-apply.txt -rw-r--r-- 4.4 KB
git-applymbox.txt -rw-r--r-- 2.6 KB
git-applypatch.txt -rw-r--r-- 1011 bytes
git-archimport.txt -rw-r--r-- 3.3 KB
git-bisect.txt -rw-r--r-- 3.9 KB
git-blame.txt -rw-r--r-- 772 bytes
git-branch.txt -rw-r--r-- 2.7 KB
git-cat-file.txt -rw-r--r-- 1.6 KB
git-check-ref-format.txt -rw-r--r-- 1.7 KB
git-checkout-index.txt -rw-r--r-- 5.5 KB
git-checkout.txt -rw-r--r-- 4.2 KB
git-cherry-pick.txt -rw-r--r-- 1.6 KB
git-cherry.txt -rw-r--r-- 1.2 KB
git-clean.txt -rw-r--r-- 1.2 KB
git-clone.txt -rw-r--r-- 4.7 KB
git-commit-tree.txt -rw-r--r-- 2.5 KB
git-commit.txt -rw-r--r-- 5.1 KB
git-convert-objects.txt -rw-r--r-- 457 bytes
git-count-objects.txt -rw-r--r-- 718 bytes
git-cvsexportcommit.txt -rw-r--r-- 2.0 KB
git-cvsimport.txt -rw-r--r-- 4.0 KB
git-cvsserver.txt -rw-r--r-- 4.9 KB
git-daemon.txt -rw-r--r-- 3.7 KB
git-describe.txt -rw-r--r-- 1.8 KB
git-diff-files.txt -rw-r--r-- 1.4 KB
git-diff-index.txt -rw-r--r-- 4.7 KB
git-diff-stages.txt -rw-r--r-- 664 bytes
git-diff-tree.txt -rw-r--r-- 5.2 KB
git-diff.txt -rw-r--r-- 3.0 KB
git-fetch-pack.txt -rw-r--r-- 2.0 KB
git-fetch.txt -rw-r--r-- 857 bytes
git-fmt-merge-msg.txt -rw-r--r-- 729 bytes
git-format-patch.txt -rw-r--r-- 3.5 KB
git-fsck-objects.txt -rw-r--r-- 4.2 KB
git-get-tar-commit-id.txt -rw-r--r-- 898 bytes
git-grep.txt -rw-r--r-- 2.8 KB
git-hash-object.txt -rw-r--r-- 1.0 KB
git-http-fetch.txt -rw-r--r-- 1.1 KB
git-http-push.txt -rw-r--r-- 2.4 KB
git-imap-send.txt -rw-r--r-- 1.1 KB
git-index-pack.txt -rw-r--r-- 899 bytes
git-init-db.txt -rw-r--r-- 2.8 KB
git-instaweb.txt -rw-r--r-- 2.0 KB
git-local-fetch.txt -rw-r--r-- 1.0 KB
git-log.txt -rw-r--r-- 1.6 KB
git-lost-found.txt -rw-r--r-- 1.7 KB
git-ls-files.txt -rw-r--r-- 7.4 KB
git-ls-remote.txt -rw-r--r-- 1.8 KB
git-ls-tree.txt -rw-r--r-- 2.0 KB
git-mailinfo.txt -rw-r--r-- 1.9 KB
git-mailsplit.txt -rw-r--r-- 1.1 KB
git-merge-base.txt -rw-r--r-- 940 bytes
git-merge-index.txt -rw-r--r-- 2.6 KB
git-merge-one-file.txt -rw-r--r-- 626 bytes
git-merge-tree.txt -rw-r--r-- 888 bytes
git-merge.txt -rw-r--r-- 5.3 KB
git-mktag.txt -rw-r--r-- 971 bytes
git-mktree.txt -rw-r--r-- 609 bytes
git-mv.txt -rw-r--r-- 1.3 KB
git-name-rev.txt -rw-r--r-- 1.3 KB
git-p4import.txt -rw-r--r-- 4.6 KB
git-pack-objects.txt -rw-r--r-- 3.3 KB
git-pack-redundant.txt -rw-r--r-- 1.3 KB
git-parse-remote.txt -rw-r--r-- 1.2 KB
git-patch-id.txt -rw-r--r-- 1.1 KB
git-peek-remote.txt -rw-r--r-- 1.2 KB
git-prune-packed.txt -rw-r--r-- 1018 bytes
git-prune.txt -rw-r--r-- 1.2 KB
git-pull.txt -rw-r--r-- 3.4 KB
git-push.txt -rw-r--r-- 2.3 KB
git-quiltimport.txt -rw-r--r-- 1.5 KB
git-read-tree.txt -rw-r--r-- 12.1 KB
git-rebase.txt -rw-r--r-- 4.1 KB
git-receive-pack.txt -rw-r--r-- 2.7 KB
git-relink.txt -rw-r--r-- 746 bytes
git-repack.txt -rw-r--r-- 1.6 KB
git-repo-config.txt -rw-r--r-- 4.8 KB
git-request-pull.txt -rw-r--r-- 694 bytes
git-rerere.txt -rw-r--r-- 6.0 KB
git-reset.txt -rw-r--r-- 5.8 KB
git-resolve.txt -rw-r--r-- 792 bytes
git-rev-list.txt -rw-r--r-- 4.1 KB
git-rev-parse.txt -rw-r--r-- 6.9 KB
git-revert.txt -rw-r--r-- 1.4 KB
git-rm.txt -rw-r--r-- 2.2 KB
git-send-email.txt -rw-r--r-- 2.6 KB
git-send-pack.txt -rw-r--r-- 3.1 KB
git-sh-setup.txt -rw-r--r-- 737 bytes
git-shell.txt -rw-r--r-- 800 bytes
git-shortlog.txt -rw-r--r-- 941 bytes
git-show-branch.txt -rw-r--r-- 4.9 KB
git-show-index.txt -rw-r--r-- 592 bytes
git-show.txt -rw-r--r-- 1.0 KB
git-ssh-fetch.txt -rw-r--r-- 1018 bytes
git-ssh-upload.txt -rw-r--r-- 950 bytes
git-status.txt -rw-r--r-- 1.1 KB
git-stripspace.txt -rw-r--r-- 485 bytes
git-svn.txt -rw-r--r-- 11.2 KB
git-svnimport.txt -rw-r--r-- 4.5 KB
git-symbolic-ref.txt -rw-r--r-- 1.8 KB
git-tag.txt -rw-r--r-- 1.7 KB
git-tar-tree.txt -rw-r--r-- 2.4 KB
git-tools.txt -rw-r--r-- 2.7 KB
git-unpack-file.txt -rw-r--r-- 605 bytes
git-unpack-objects.txt -rw-r--r-- 1.0 KB
git-update-index.txt -rw-r--r-- 10.3 KB
git-update-ref.txt -rw-r--r-- 2.8 KB
git-update-server-info.txt -rw-r--r-- 1.0 KB
git-upload-pack.txt -rw-r--r-- 750 bytes
git-upload-tar.txt -rw-r--r-- 710 bytes
git-var.txt -rw-r--r-- 1.3 KB
git-verify-pack.txt -rw-r--r-- 936 bytes
git-verify-tag.txt -rw-r--r-- 523 bytes
git-whatchanged.txt -rw-r--r-- 1.8 KB
git-write-tree.txt -rw-r--r-- 1.1 KB
git.txt -rw-r--r-- 16.1 KB
gitk.txt -rw-r--r-- 857 bytes
glossary.txt -rw-r--r-- 11.5 KB
hooks.txt -rw-r--r-- 5.6 KB
howto-index.sh -rwxr-xr-x 669 bytes
install-webdoc.sh -rwxr-xr-x 601 bytes
merge-options.txt -rw-r--r-- 959 bytes
merge-strategies.txt -rw-r--r-- 1.3 KB
pull-fetch-param.txt -rw-r--r-- 3.2 KB
repository-layout.txt -rw-r--r-- 5.2 KB
sort_glossary.pl -rw-r--r-- 1.1 KB
tutorial-2.txt -rw-r--r-- 13.2 KB
tutorial.txt -rw-r--r-- 16.1 KB
urls.txt -rw-r--r-- 2.4 KB

back to top