diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-08-15 20:53:46 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-15 20:23:18 (GMT) |
commit | 3bfcb95fa84d8bacb01a990c5bdb16df13462279 (patch) | |
tree | a27370615d482631499c536e030d87891e12344c /notes-cache.h | |
parent | aa544bfbc6eb11e4f0471f3144d3e3ac75c0e4a9 (diff) | |
download | git-3bfcb95fa84d8bacb01a990c5bdb16df13462279.zip git-3bfcb95fa84d8bacb01a990c5bdb16df13462279.tar.gz git-3bfcb95fa84d8bacb01a990c5bdb16df13462279.tar.bz2 |
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 'notes-cache.h')
0 files changed, 0 insertions, 0 deletions