From f383630e8e03e945d246f996f4c60e6aa93b3d6d Mon Sep 17 00:00:00 2001 From: "git@daemon.de" Date: Mon, 10 Mar 2014 16:57:49 +0100 Subject: [PATCH] fixed buffer overflow with too small line buffer --- src/keymgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keymgmt.c b/src/keymgmt.c index 1961bb3..86934a8 100644 --- a/src/keymgmt.c +++ b/src/keymgmt.c @@ -555,7 +555,7 @@ char *pcp_find_id_byrec(char *recipient) { int pcp_import (vault_t *vault, FILE *in, char *passwd) { - byte *buf = ucmalloc(2048); + byte *buf = ucmalloc(PCP_BLOCK_SIZE); size_t bufsize; pcp_pubkey_t *pub = NULL; pcp_key_t *sk = NULL;