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.20-336-ge9813cf


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  e9813cfb3d71675c87a16318b20642a366aff74c (commit)
      from  f627ca82fb6c469c8cf34f04f02fe2ea006304bd (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=e9813cfb3d71675c87a16318b20642a366aff74c

commit e9813cfb3d71675c87a16318b20642a366aff74c
Author: Roland McGrath <roland@hack.frob.com>
Date:   Thu Dec 11 13:08:26 2014 -0800

    Fix -Wformat-security warnings in posix/regexbug1.c

diff --git a/ChangeLog b/ChangeLog
index de2e7cc..59d95d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-11  Roland McGrath  <roland@hack.frob.com>
+
+	* posix/regexbug1.c (main): Use "%s" format with regerror results,
+	rather than assuming they won't contain any '%'s.
+
 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
 
 	* sysdeps/tile/tilegx/memset.c (__memcpy): Add
diff --git a/posix/regexbug1.c b/posix/regexbug1.c
index 2864096..17643e7 100644
--- a/posix/regexbug1.c
+++ b/posix/regexbug1.c
@@ -18,7 +18,7 @@ main (void)
     {
       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 @@ main (void)
     {
       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)

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

Summary of changes:
 ChangeLog         |    5 +++++
 posix/regexbug1.c |    4 ++--
 2 files changed, 7 insertions(+), 2 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]