aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-06-05 12:25:59 +0000
committerWerner Koch <[email protected]>2015-06-05 12:25:59 +0000
commit0d28a696163677d6b34a802b6beddecd805d0fc7 (patch)
tree39a2307ea2019f8cd194be283210307d582b1dfc
parentPost release updates. (diff)
downloadgpgme-0d28a696163677d6b34a802b6beddecd805d0fc7.tar.gz
gpgme-0d28a696163677d6b34a802b6beddecd805d0fc7.zip
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 <[email protected]>
-rw-r--r--src/engine-gpg.c1
1 files changed, 1 insertions, 0 deletions
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++);