summaryrefslogtreecommitdiff
path: root/t/t4040-whitespace-status.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-08-15 13:53:46 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-09-15 13:23:18 -0700
commit3bfcb95fa84d8bacb01a990c5bdb16df13462279 (patch)
treea27370615d482631499c536e030d87891e12344c /t/t4040-whitespace-status.sh
parentSync with 2.0.4 (diff)
downloadtgif-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/t4040-whitespace-status.sh')
0 files changed, 0 insertions, 0 deletions