[git] GCRYPT - branch, master, updated. libgcrypt-1.7.3-22-g984a97f

by Werner Koch cvs at cvs.gnupg.org
Tue Dec 6 21:51:16 CET 2016

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 "The GNU crypto library".

The branch, master has been updated
       via  984a97f0750f812f0ad3c343ee6a67560953a504 (commit)
      from  603f479a919311f720a05da738150c2192d5e562 (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 984a97f0750f812f0ad3c343ee6a67560953a504
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Dec 6 21:44:33 2016 +0100

    Fix possible NULL-deref in gcry_log_debugsxp
    * src/misc.c (_gcry_log_printsxp): Prevent passing NULL to strlen.
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/src/misc.c b/src/misc.c
index 413d7d8..9d8b7bd 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -406,7 +406,7 @@ _gcry_log_printsxp (const char *text, gcry_sexp_t sexp)
           if (any && !with_lf)
-            log_debug ("%*s  ", (int)strlen(text), "");
+            log_debug ("%*s  ", text?(int)strlen(text):0, "");
             any = 1;
           pend = strchr (p, '\n');


Summary of changes:
 src/misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

The GNU crypto library

Gnupg-commits mailing list
Gnupg-commits at gnupg.org

More information about the Gcrypt-devel mailing list