[Pkg-gnupg-commit] [gnupg2] 244/292: scd: Fix status info encoding.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Nov 21 06:31:48 UTC 2016


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

dkg pushed a commit to branch master
in repository gnupg2.

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>
---
 scd/command.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;

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



More information about the Pkg-gnupg-commit mailing list