Re: [PATCH v3 1/4] t5000: test tar files that overflow ustar headers
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Jun 24, 2016, 16:38 UTC
- Message-ID
- <576D621F.1030000@kdbg.org>
- In-Reply-To
- <20160623232041.GA3668@sigill.intra.peff.net>
Am 24.06.2016 um 01:20 schrieb Jeff King:
Show 9 quoted lines
> +# We expect git to die with SIGPIPE here (otherwise we
> +# would generate the whole 64GB).
> +test_expect_failure BUNZIP 'generate tar with huge size' '
> + {
> + git archive HEAD
> + echo $? >exit-code
> + } | head -c 4096 >huge.tar &&
> + echo 141 >expect &&
> + test_cmp expect exit-codeIt's going to be 269 with ksh, and who-knows-what on Windows (due to lack of SIGPIPE - I haven't tested this, yet).
-- Hannes