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.25-518-g37e9dc8


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  37e9dc814636915afb88d0779e5e897e90e7b8c0 (commit)
      from  81b82fb966ffbd94353f793ad17116c6088dedd9 (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=37e9dc814636915afb88d0779e5e897e90e7b8c0

commit 37e9dc814636915afb88d0779e5e897e90e7b8c0
Author: Florian Weimer <fweimer@redhat.com>
Date:   Mon Jun 19 14:44:33 2017 +0200

    DCIGETTEXT: Do not make copy of localename

diff --git a/ChangeLog b/ChangeLog
index 5c4815e..d4aac40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2017-06-19  Florian Weimer  <fweimer@redhat.com>
 
+	* intl/dcigettext.c (DCIGETTEXT): Do not make copy of localename.
+	It cannot change while __libc_setlocale_lock is acquired.
+
+2017-06-19  Florian Weimer  <fweimer@redhat.com>
+
 	* elf/rtld.c (audit_list_string): New variable.
 	(audit_list): Update comment.
 	(struct audit_list_iter): Define.
diff --git a/intl/dcigettext.c b/intl/dcigettext.c
index 3843b7c..d97746c 100644
--- a/intl/dcigettext.c
+++ b/intl/dcigettext.c
@@ -551,7 +551,7 @@ DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2,
 #ifdef HAVE_PER_THREAD_LOCALE
 # ifndef IN_LIBGLOCALE
 #  ifdef _LIBC
-  localename = strdupa (__current_locale_name (category));
+  localename = __current_locale_name (category);
 #  else
   categoryname = category_to_name (category);
 #   define CATEGORYNAME_INITIALIZED

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

Summary of changes:
 ChangeLog         |    5 +++++
 intl/dcigettext.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]