author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Wed, 26 Oct 2005 14:18:56 +0000 (16:18 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 26 Oct 2005 18:52:19 +0000 (11:52 -0700) | ||
commit | b5c367f75c2990650119749a1add5216871ca47a | |
tree | e0743dd0ce5cf03505b25902697dcee812e77e38 | tree | snapshot |
parent | 565ebbf79f61873042c22a7126d002c104e056f4 | commit | diff |
Fix cloning (memory corruption)
upload-pack would set create_full_pack=1 if nr_has==0, but would ask later
if nr_needs<MAX_NEEDS. If that proves true, it would ignore create_full_pack,
and arguments would be written into unreserved memory.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
upload-pack would set create_full_pack=1 if nr_has==0, but would ask later
if nr_needs<MAX_NEEDS. If that proves true, it would ignore create_full_pack,
and arguments would be written into unreserved memory.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
upload-pack.c | diff | blob | history |