]> sourceware.org Git - glibc.git/commitdiff
For PR 14055, add bounds check to _dl_show_auxv().
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Wed, 2 May 2012 21:35:30 +0000 (14:35 -0700)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Wed, 2 May 2012 21:35:30 +0000 (14:35 -0700)
ChangeLog
NEWS
elf/dl-sysdep.c

index 5e4ce0d156b2f7d19a6b838c1b78baa0180699f6..bcca473dd8392ad872fb7dbd7afef2352ccf3fdc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       [BZ #14055]
+       * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
+
 2012-05-02  Andreas Jaeger  <aj@suse.de>
 
        * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
diff --git a/NEWS b/NEWS
index aebe7918fd7774959fc128523850810ce1c32524..12045f64149eb75637a02d3b5277826dbc40ec8e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -23,7 +23,7 @@ Version 2.16
   13873, 13879, 13883, 13886, 13892, 13895, 13908, 13910, 13911, 13912,
   13913, 13915, 13916, 13917, 13918, 13919, 13920, 13921, 13924, 13926,
   13927, 13928, 13938, 13941, 13942, 13963, 13967, 13970, 13973, 14027,
-  14033, 14034, 14040
+  14033, 14034, 14040, 14055
 
 * ISO C11 support:
 
index 1cb4460a02f5139c5f7a028ca4e1740d0b788865..ea505a646fa8a5c51c208753f45dc44ca3c1e65f 100644 (file)
@@ -1,5 +1,5 @@
 /* Operating system support for run-time dynamic linker.  Generic Unix version.
-   Copyright (C) 1995-1998,2000-2008,2009,2010
+   Copyright (C) 1995-1998,2000-2010,2012
        Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -303,7 +303,9 @@ _dl_show_auxv (void)
        };
       unsigned int idx = (unsigned int) (av->a_type - 2);
 
-      if ((unsigned int) av->a_type < 2u || auxvars[idx].form == ignore)
+      if ((unsigned int) av->a_type < 2u
+         || (idx < sizeof (auxvars) / sizeof (auxvars[0])
+             && auxvars[idx].form == ignore))
        continue;
 
       assert (AT_NULL == 0);
This page took 0.111417 seconds and 5 git commands to generate.