[git] GnuPG - branch, master, updated. gnupg-2.1.15-359-g4ee4d0b

by NIIBE Yutaka cvs at cvs.gnupg.org
Mon Nov 14 02:31:36 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 Privacy Guard".

The branch, master has been updated
       via  4ee4d0b02172cf56d9582bb99e32a65c75315b25 (commit)
      from  6bf698197222bf6081c249c815aebb075e8ec820 (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 4ee4d0b02172cf56d9582bb99e32a65c75315b25
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Mon Nov 14 10:25:43 2016 +0900

    scd: Fix status info encoding.
    
    * scd/command.c (send_status_info): Do percent plus encoding correctly.
    
    --
    
    Reported-by: David Härdeman <david at hardeman.nu>
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/scd/command.c b/scd/command.c
index 3584593..e771a74 100644
--- a/scd/command.c
+++ b/scd/command.c
@@ -2137,7 +2137,8 @@ send_status_info (ctrl_t ctrl, const char *keyword, ...)
         }
       for ( ; valuelen && n < DIM (buf)-2; n++, valuelen--, value++)
         {
-          if (*value < ' ' || *value == '+')
+          if (*value == '+' || *value == '\"' || *value == '%'
+              || *value < ' ')
             {
               sprintf (p, "%%%02X", *value);
               p += 3;

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

Summary of changes:
 scd/command.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list