diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-07-01 20:31:08 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-03 10:01:57 -0700 |
commit | 9308b7f3ca9bbe7e76b16c832617a8c6aea5ade3 (patch) | |
tree | 600c37ecabfa3871dafdb87914f23e89184b0f78 /delta.h | |
parent | t3210: add some tests of bogus packed-refs file contents (diff) | |
download | tgif-9308b7f3ca9bbe7e76b16c832617a8c6aea5ade3.tar.xz |
read_packed_refs(): die if `packed-refs` contains bogus data
The old code ignored any lines that it didn't understand, including
unterminated lines. This is dangerous. Instead, `die()` if the
`packed-refs` file contains any unterminated lines or lines that we
don't know how to handle.
This fixes the tests added in the last commit.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'delta.h')
0 files changed, 0 insertions, 0 deletions