[PATCH 0/4] "hash-object --literally" fixes
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 4, 2015, 21:37 UTC
- Message-ID
- <1430775451-31130-1-git-send-email-gitster@pobox.com>
- In-Reply-To
- <1430724315-524-1-git-send-email-sunshine@sunshineco.com>
This is a rework of Eric's fix (Thanks!), to avoid using strbuf all the time, even when we are not doing "hash-object --literally".
Eric Sunshine (3): git-hash-object.txt: document --literally option write_sha1_file_prepare: fix buffer overrun with extra-long object type t1007: add hash-object --literally tests
Junio C Hamano (1): write_sha1_file(): do not use a separate sha1[] array
Documentation/git-hash-object.txt | 10 ++++++++-- builtin/hash-object.c | 4 +--- cache.h | 1 + sha1_file.c | 32 +++++++++++++++++++++++++++----- t/t1007-hash-object.sh | 11 +++++++++++ 5 files changed, 48 insertions(+), 10 deletions(-)
-- 2.4.0-302-g6743426