fixed buffer overflow with too small line buffer

This commit is contained in:
git@daemon.de
2014-03-10 16:57:49 +01:00
parent 5e82b7ec7b
commit f383630e8e

View File

@@ -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;