Re: [PATCH v2] Fix buffer overflow in config parser
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Apr 15, 2009, 07:11 UTC
- Message-ID
- <49E5888D.2090607@viscovery.net>
- In-Reply-To
- <7v3aca3lpl.fsf@gitster.siamese.dyndns.org>
Junio C Hamano schrieb:
Show 13 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes: > >> Hi, >> >> On Tue, 14 Apr 2009, Thomas Jarosch wrote: >> >>> t/t1303-wacky-config.sh | 9 ++++++++- >> I like the name! >> >>> +LONG_VALUE=`perl -e 'print "x" x 1023," a"'` >> But should it not be guarded against NO_PERL? > > The right question to ask is a rhetorical "do we need perl to do this?"
LONG_VALUE=$(printf "x%0.1021dx a", 7)
-- Hannes