Staging
v0.8.1
v0.8.1
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
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 22 bytes |
Makefile | -rw-r--r-- | 1.2 KB |
branches-- | -rw-r--r-- | 47 bytes |
hooks--applypatch-msg | -rw-r--r-- | 441 bytes |
hooks--commit-msg | -rw-r--r-- | 588 bytes |
hooks--post-commit | -rw-r--r-- | 152 bytes |
hooks--post-update | -rw-r--r-- | 207 bytes |
hooks--pre-applypatch | -rw-r--r-- | 388 bytes |
hooks--pre-commit | -rw-r--r-- | 1.7 KB |
hooks--pre-rebase | -rw-r--r-- | 4.2 KB |
hooks--update | -rw-r--r-- | 2.5 KB |
info--exclude | -rw-r--r-- | 240 bytes |
remotes-- | -rw-r--r-- | 47 bytes |
this--description | -rw-r--r-- | 58 bytes |
Computing file changes ...