From 0d28a696163677d6b34a802b6beddecd805d0fc7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 5 Jun 2015 14:25:59 +0200 Subject: [PATCH] Fix segv for userids with a backslash. * 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 --- src/engine-gpg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine-gpg.c b/src/engine-gpg.c index 57aea8b0..e14fd8dd 100644 --- a/src/engine-gpg.c +++ b/src/engine-gpg.c @@ -2194,6 +2194,7 @@ gpg_keylist_preprocess (char *line, char **r_line) { *dst++ = '\\'; *dst++ = '\\'; + src++; } else *(dst++) = *(src++);