diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-08-15 13:53:46 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-15 13:23:18 -0700 |
commit | 3bfcb95fa84d8bacb01a990c5bdb16df13462279 (patch) | |
tree | a27370615d482631499c536e030d87891e12344c /t/t4010-diff-pathspec.sh | |
parent | Sync with 2.0.4 (diff) | |
download | tgif-3bfcb95fa84d8bacb01a990c5bdb16df13462279.tar.xz |
receive-pack: do not overallocate command structure
An "update" command in the protocol exchange consists of 40-hex old
object name, SP, 40-hex new object name, SP, and a refname, but the
first instance is further followed by a NUL with feature requests.
The command structure, which has a flex-array member that stores the
refname at the end, was allocated based on the whole length of the
update command, without excluding the trailing feature requests.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4010-diff-pathspec.sh')
0 files changed, 0 insertions, 0 deletions