From: Andreas Schwab <schwab@linux-m68k.org>
To: Stepan Kasal <kasal@ucw.cz>
Cc: Junio C Hamano <gitster@pobox.com>, Jeff King <peff@peff.net>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
git@vger.kernel.org,
Jean-Jacques Lafay <jeanjacques.lafay@gmail.com>
Subject: Re: [PATCH v3] git tag --contains: avoid stack overflow
Date: Sat, 20 Sep 2014 20:18:59 +0200 [thread overview]
Message-ID: <871tr688a4.fsf@igel.home> (raw)
In-Reply-To: <20140424122439.GB8168@camelia.ucw.cz> (Stepan Kasal's message of "Thu, 24 Apr 2014 14:24:39 +0200")
Stepan Kasal <kasal@ucw.cz> writes:
> diff --git a/t/t7004-tag.sh b/t/t7004-tag.sh
> index 143a8ea..a911df0 100755
> --- a/t/t7004-tag.sh
> +++ b/t/t7004-tag.sh
> @@ -1423,4 +1423,30 @@ EOF
> test_cmp expect actual
> '
>
> +run_with_limited_stack () {
> + (ulimit -s 64 && "$@")
> +}
That is way too small.
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:PowerPC/git/standard/ppc64le
[ 492s] not ok 136 - --contains works in a deep repo
[ 492s] ok 11 - log using absolute path names
[ 492s] #
[ 492s] # >expect &&
[ 492s] # i=1 &&
[ 492s] # while test $i -lt 4000
[ 492s] # do
[ 492s] # echo "commit refs/heads/master
[ 492s] # committer A U Thor <author@example.com> $((1000000000 + $i * 100)) +0200
[ 492s] # data <<EOF
[ 492s] # commit #$i
[ 492s] # EOF"
[ 492s] # test $i = 1 && echo "from refs/heads/master^0"
[ 492s] # i=$(($i + 1))
[ 492s] # done | git fast-import &&
[ 492s] # git checkout master &&
[ 492s] # git tag far-far-away HEAD^ &&
[ 492s] # run_with_limited_stack git tag --contains HEAD >actual &&
[ 492s] # test_cmp expect actual
[ 492s] #
[ 492s] # failed 1 among 136 test(s)
[ 492s] 1..136
[ 492s] Makefile:44: recipe for target 't7004-tag.sh' failed
[ 492s] make[2]: *** [t7004-tag.sh] Error 1
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2014-09-20 18:19 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-16 14:15 [PATCH] git tag --contains : avoid stack overflow Stepan Kasal
2014-04-16 15:46 ` Jeff King
2014-04-17 17:31 ` Johannes Schindelin
2014-04-17 21:32 ` Jeff King
2014-04-17 21:52 ` Johannes Schindelin
2014-04-17 21:58 ` Jeff King
2014-04-23 7:53 ` [PATCH v2] " Stepan Kasal
2014-04-23 14:28 ` Johannes Schindelin
2014-04-23 15:45 ` Stepan Kasal
2014-04-23 19:12 ` Junio C Hamano
2014-04-23 19:16 ` Jeff King
2014-04-23 20:48 ` Junio C Hamano
2014-04-23 20:55 ` Jeff King
2014-04-23 21:05 ` Junio C Hamano
2014-04-24 12:20 ` Stepan Kasal
2014-04-24 12:24 ` [PATCH v3] git tag --contains: " Stepan Kasal
2014-04-25 5:54 ` Jeff King
2014-09-20 18:18 ` Andreas Schwab [this message]
2014-09-23 16:05 ` Jeff King
2014-09-23 21:48 ` Andreas Schwab
2014-09-23 22:41 ` Junio C Hamano
2014-04-23 19:59 ` [PATCH v2] git tag --contains : " Stepan Kasal
2014-04-23 19:17 ` Jeff King
2014-04-23 21:14 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871tr688a4.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jeanjacques.lafay@gmail.com \
--cc=kasal@ucw.cz \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).