[Pkg-gnupg-commit] [libassuan] 408/437: Fix possible segv in a call to _assuan_debug.

Eric Dorland eric at moszumanska.debian.org
Fri May 22 05:34:10 UTC 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository libassuan.

commit b6da2da96780ec270439eba5569a618cabe4da02
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Aug 14 17:15:04 2014 +0200

    Fix possible segv in a call to _assuan_debug.
    
    * src/context.c (assuan_set_error): Do not pass NULL for %s in the
    trace function.
    --
    
    This likely fixes
    GnuPG-bug-id: 1659
---
 src/context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/context.c b/src/context.c
index b4d4d49..62b7f57 100644
--- a/src/context.c
+++ b/src/context.c
@@ -190,7 +190,7 @@ assuan_set_error (assuan_context_t ctx, gpg_error_t err, const char *text)
 {
   TRACE4 (ctx, ASSUAN_LOG_CTX, "assuan_set_error", ctx,
 	  "err=%i (%s,%s),text=%s", err, gpg_strsource (err),
-	  gpg_strerror (err), text);
+	  gpg_strerror (err), text?text:"(none)");
 
   ctx->err_no = err;
   ctx->err_str = text;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libassuan.git



More information about the Pkg-gnupg-commit mailing list