guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.9-99-g4a0fb2


From: Ludovic Courtès
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.9-99-g4a0fb27
Date: Wed, 13 Nov 2013 13:25:07 +0000

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 Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=4a0fb276a911d5a2760818af2901c75673df5a93

The branch, stable-2.0 has been updated
       via  4a0fb276a911d5a2760818af2901c75673df5a93 (commit)
      from  36c40440078c005cd5e239cca487d29f6f60007d (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 -----------------------------------------------------------------
commit 4a0fb276a911d5a2760818af2901c75673df5a93
Author: Ludovic Courtès <address@hidden>
Date:   Wed Nov 13 14:24:42 2013 +0100

    i18n: Fix null pointer dereference when locale info is missing.
    
    * libguile/i18n.c (scm_nl_langinfo): Check whether C_RESULT is NULL
      before calling 'strdup'.

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

Summary of changes:
 libguile/i18n.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/libguile/i18n.c b/libguile/i18n.c
index dc6d07d..0f607f3 100644
--- a/libguile/i18n.c
+++ b/libguile/i18n.c
@@ -1535,7 +1535,9 @@ SCM_DEFINE (scm_nl_langinfo, "nl-langinfo", 1, 1, 0,
       codeset = nl_langinfo (CODESET);
     }
 
-  c_result = strdup (c_result);
+  if (c_result != NULL)
+    c_result = strdup (c_result);
+
   unlock_locale_mutex ();
 
   if (c_result == NULL)


hooks/post-receive
-- 
GNU Guile



reply via email to

[Prev in Thread] Current Thread [Next in Thread]