From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id E8E712018B for ; Fri, 24 Jun 2016 16:39:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751814AbcFXQjG (ORCPT ); Fri, 24 Jun 2016 12:39:06 -0400 Received: from bsmtp3.bon.at ([213.33.87.17]:23936 "EHLO bsmtp3.bon.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751340AbcFXQjF (ORCPT ); Fri, 24 Jun 2016 12:39:05 -0400 Received: from dx.site (unknown [93.83.142.38]) by bsmtp3.bon.at (Postfix) with ESMTPSA id 3rbkYX1nlpz5tlC; Fri, 24 Jun 2016 18:38:55 +0200 (CEST) Received: from [IPv6:::1] (localhost [IPv6:::1]) by dx.site (Postfix) with ESMTP id 67FB429B1; Fri, 24 Jun 2016 18:38:55 +0200 (CEST) Subject: Re: [PATCH v3 1/4] t5000: test tar files that overflow ustar headers To: Jeff King References: <20160623231512.GA27683@sigill.intra.peff.net> <20160623232041.GA3668@sigill.intra.peff.net> Cc: git@vger.kernel.org, Junio C Hamano , =?UTF-8?Q?Ren=c3=a9_Scharfe?= , "Robin H. Johnson" From: Johannes Sixt Message-ID: <576D621F.1030000@kdbg.org> Date: Fri, 24 Jun 2016 18:38:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <20160623232041.GA3668@sigill.intra.peff.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Am 24.06.2016 um 01:20 schrieb Jeff King: > +# 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-code It'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