]> git.ipfire.org Git - thirdparty/git.git/commit - archive-tar.c
archive-tar: turn length miscalculation warning into BUG
authorRené Scharfe <l.s.r@web.de>
Sat, 17 Aug 2019 16:24:23 +0000 (18:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Aug 2019 17:49:00 +0000 (10:49 -0700)
commit71d41ff651a54028856c4224777ef405de48ae66
tree4836fec19c0b4a9138fcccd95671fd7984fd29e3
parent17e9ef00d29b349727e3c710869217a36ad08224
archive-tar: turn length miscalculation warning into BUG

Now that we're confident our pax extended header calculation is correct,
turn the criticality of the assertion up to the maximum, from warning
right up to BUG.  Simplify the test, as the stderr comparison step would
not be reached in case the BUG message is triggered.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive-tar.c
t/t5004-archive-corner-cases.sh