author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Thu, 14 Feb 2008 23:25:33 +0000 (23:25 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 16 Feb 2008 07:21:56 +0000 (23:21 -0800) | ||
commit | add8e8cee5054734cb19d918f83bcee649aab326 | |
tree | 65f2757e010dd84fd01a7e0f0b36a4e09a2829cf | tree | snapshot |
parent | 0ef617f4b6ea78ad63dd11e90f8c854238176981 | commit | diff |
http-push: avoid invalid memory accesses
Before objects are sent, the respective ref is locked. However,
without this patch, the lock is lifted before the last object for
that ref was sent. As a consequence, the lock data was accessed
after the lock structure was free()d.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Before objects are sent, the respective ref is locked. However,
without this patch, the lock is lifted before the last object for
that ref was sent. As a consequence, the lock data was accessed
after the lock structure was free()d.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c | diff | blob | history |