[PATCH] stdlib/tst-qsort2.c: Fix off-by-one argc interpretation error
Maciej W. Rozycki
macro@codesourcery.com
Fri Jun 20 20:33:00 GMT 2014
On Sat, 5 Oct 2013, Ondøej BĂlka wrote:
> > This fixes an off-by-one argc interpretation error (argv[0] is included
> > in the count) in stdlib/tst-qsort2.c causing a segfault if the program is
> > called with one command-line argument only (argv[2] is NULL in that case).
> >
> > The issue doesn't trigger in regular testing as the test case is invoked
> > without arguments in the test suite, but that doesn't mean the bug is good
> > to have. OK to apply?
> >
> Looks obvious for me.
>
> > 2013-10-04 Maciej W. Rozycki <macro@codesourcery.com>
> >
> > * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
> > error.
Thanks for your review. Committed now, apologies for the delay.
Maciej
More information about the Libc-alpha
mailing list