]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Fri, 1 Sep 2017 18:35:55 +0000 (11:35 -0700)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Fri, 1 Sep 2017 18:35:55 +0000 (11:35 -0700)
* stdlib/tst-atexit-common.c (crumbs): Ensure correct size.

ChangeLog
stdlib/tst-atexit-common.c

index b06aeda7c76fe4f02533336d98c99e8524cc2480..18d77a6951d3681fe8c3b02617a8403972e3982f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
+
 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
index d6dcf08cdd55e727475fcb094c8533926439db4a..9ab8c1aea50371b0c31d046cd37a1e21548df475 100644 (file)
    check that we support at least the minimum required.  */
 #define MAX_ATEXIT 32
 
-static char crumbs[MAX_ATEXIT];
+/* Arbitrary sequence matching current registrations.  */
+const char expected[] = "00000000000000000000000003021121130211";
+
+static char crumbs[sizeof (expected)];
 static int next_slot = 0;
 
 /* Helper: flush stdout and _exit.  */
@@ -71,9 +74,6 @@ fn3 (void)
 static void
 fn_final (void)
 {
-  /* Arbitrary sequence matching current registrations.  */
-  const char expected[] = "00000000000000000000000003021121130211";
-
   if (strcmp (crumbs, expected) == 0)
     _exit_with_flush (0);