Fix segv for userids with a backslash.
authorWerner Koch <wk@gnupg.org>
Fri, 5 Jun 2015 12:25:59 +0000 (14:25 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 5 Jun 2015 12:25:59 +0000 (14:25 +0200)
* src/engine-gpg.c (gpg_keylist_preprocess): Increment SRC for a
backslash.
--

This bug is not exploitable because this bug fills up .data with
backslashes and thus causes the segv.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/engine-gpg.c

index 57aea8b..e14fd8d 100644 (file)
@@ -2194,6 +2194,7 @@ gpg_keylist_preprocess (char *line, char **r_line)
               {
                 *dst++ = '\\';
                 *dst++ = '\\';
+                src++;
               }
            else
              *(dst++) = *(src++);