[git] GPGME - branch, master, updated. gpgme-1.10.0-186-gee8fad3

by Werner Koch cvs at cvs.gnupg.org
Thu Apr 12 16:06:26 CEST 2018


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 "GnuPG Made Easy".

The branch, master has been updated
       via  ee8fad3ea0cbc82f31c86b3483abd8549df62b69 (commit)
      from  bdf7cd2e28432cf0fa7e0758acdfee03d7bfd45f (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 ee8fad3ea0cbc82f31c86b3483abd8549df62b69
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Apr 12 15:59:22 2018 +0200

    tests: Avoid segv in run-verify due to Policy URLs
    
    * tests/run-verify.c (print_result): Take care of Policy URLs.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/tests/run-verify.c b/tests/run-verify.c
index b22e644..699bfd1 100644
--- a/tests/run-verify.c
+++ b/tests/run-verify.c
@@ -163,15 +163,22 @@ print_result (gpgme_verify_result_t result)
               );
       for (nt = sig->notations; nt; nt = nt->next)
         {
-          printf ("  notation ..: '%s'\n", nt->name);
-          if (strlen (nt->name) != nt->name_len)
-            printf ("    warning : name larger (%d)\n", nt->name_len);
-          printf ("    flags ...:%s%s (0x%02x)\n",
-                  nt->critical? " critical":"",
-                  nt->human_readable? " human":"",
-                  nt->flags);
-          if (nt->value)
-            printf ("    value ...: '%s'\n", nt->value);
+          if (nt->name)
+            {
+              printf ("  notation ..: '%s'\n", nt->name);
+              if (strlen (nt->name) != nt->name_len)
+                printf ("    warning : name larger (%d)\n", nt->name_len);
+              printf ("    flags ...:%s%s (0x%02x)\n",
+                      nt->critical? " critical":"",
+                      nt->human_readable? " human":"",
+                      nt->flags);
+              if (nt->value)
+                printf ("    value ...: '%s'\n", nt->value);
+            }
+          else
+            {
+              printf ("  policy ....: '%s'\n", nt->value);
+            }
           if ((nt->value?strlen (nt->value):0) != nt->value_len)
             printf ("    warning : value larger (%d)\n", nt->value_len);
         }

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

Summary of changes:
 tests/run-verify.c | 25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list