summaryrefslogtreecommitdiff
path: root/builtin-revert.c
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <Johannes.Schindelin@gmx.de>2009-01-17 16:36:26 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-01-17 18:19:35 -0800
commit20642801e44a03362d1809644bf4da6473636529 (patch)
tree9f24b9f62d3c82ad44926d03f779620791d48de0 /builtin-revert.c
parentMerge branch 'maint-1.6.0' into maint (diff)
downloadtgif-20642801e44a03362d1809644bf4da6473636529.tar.xz
http-push: fix off-by-path_len
When getting the result of remote_ls(), we were advancing the variable "path" to the relative path inside the repository. However, then we went on to malloc a bogus amount of memory: we were subtracting the prefix length _again_, quite possibly getting something negative, which xmalloc() interprets as really, really much. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-revert.c')
0 files changed, 0 insertions, 0 deletions