[packages/glibc] - test suite fixes

arekm arekm at pld-linux.org
Wed Jan 9 22:47:40 CET 2013


commit 3029a1766e134be0fb5ea41a00d8fa202ff7600e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Jan 9 22:47:00 2013 +0100

    - test suite fixes

 glibc-format.patch | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
---
diff --git a/glibc-format.patch b/glibc-format.patch
new file mode 100644
index 0000000..dd3c5f5
--- /dev/null
+++ b/glibc-format.patch
@@ -0,0 +1,48 @@
+--- glibc-2.17/stdio-common/test-vfprintf.c~	2012-12-25 04:02:13.000000000 +0100
++++ glibc-2.17/stdio-common/test-vfprintf.c	2013-01-09 22:34:39.763896649 +0100
+@@ -92,7 +92,7 @@
+       fprintf (fp, "%s", large);
+       fprintf (fp, "%.*s", 30000, large);
+       large[20000] = '\0';
+-      fprintf (fp, large);
++      fprintf (fp, "%s", large);
+       fprintf (fp, "%-1.300000000s", "hello");
+ 
+       if (fflush (fp) != 0 || ferror (fp) != 0 || fclose (fp) != 0)
+--- glibc-2.17/posix/regexbug1.c~	2012-12-25 04:02:13.000000000 +0100
++++ glibc-2.17/posix/regexbug1.c	2013-01-09 22:36:56.763888226 +0100
+@@ -18,7 +18,7 @@
+     {
+       char buf[100];
+       regerror (reerr, &re, buf, sizeof buf);
+-      error (EXIT_FAILURE, 0, buf);
++      error (EXIT_FAILURE, 0, "%s", buf);
+     }
+ 
+   if (regexec (&re, "002", 2, ma, 0) != 0)
+@@ -35,7 +35,7 @@
+     {
+       char buf[100];
+       regerror (reerr, &re, buf, sizeof buf);
+-      error (EXIT_FAILURE, 0, buf);
++      error (EXIT_FAILURE, 0, "%s", buf);
+     }
+ 
+   if (regexec (&re, "002", 2, ma, 0) != 0)
+--- glibc-2.17/misc/tst-error1.c~	2012-12-25 04:02:13.000000000 +0100
++++ glibc-2.17/misc/tst-error1.c	2013-01-09 22:38:17.262508638 +0100
+@@ -15,10 +15,10 @@
+   static const char str[] = "hello world! ";
+   for (int i = 0; i < 1000; ++i)
+     memcpy (&buf[i * (sizeof (str) - 1)], str, sizeof (str));
+-  error (0, 0, str);
+-  error (0, 0, buf);
+-  error (0, 0, buf);
+-  error (0, 0, str);
++  error (0, 0, "%s", str);
++  error (0, 0, "%s", buf);
++  error (0, 0, "%s", buf);
++  error (0, 0, "%s", str);
+   return 0;
+ }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/glibc.git/commitdiff/6b81d11f3f6921db2198f4cf0454956f238fbdb4



More information about the pld-cvs-commit mailing list