This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.19-618-g4e6d234


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  4e6d234712f976eee62fb2047338a501da00c4c7 (commit)
      from  7fd00f998042e04038619ddd4ec78a4e114217b5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=4e6d234712f976eee62fb2047338a501da00c4c7

commit 4e6d234712f976eee62fb2047338a501da00c4c7
Author: Maciej W. Rozycki <macro@codesourcery.com>
Date:   Fri Jun 20 21:29:33 2014 +0100

    stdlib/tst-qsort2.c: Fix off-by-one argc interpretation error
    
    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).

diff --git a/ChangeLog b/ChangeLog
index 548821e..090714d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
+
+	* stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
+	error.
+
 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
 
 	* sysdeps/unix/sysv/linux/kernel-features.h
diff --git a/stdlib/tst-qsort2.c b/stdlib/tst-qsort2.c
index 75d4a17..10d1685 100644
--- a/stdlib/tst-qsort2.c
+++ b/stdlib/tst-qsort2.c
@@ -70,7 +70,7 @@ int
 main (int argc, char **argv)
 {
   int ret = 0;
-  if (argc >= 2)
+  if (argc >= 3)
     ret |= test (atoi (argv[1]), atoi (argv[2]));
   else
     {

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |    5 +++++
 stdlib/tst-qsort2.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]