mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
fixed buffer overflow with too small line buffer
This commit is contained in:
@@ -555,7 +555,7 @@ char *pcp_find_id_byrec(char *recipient) {
|
|||||||
|
|
||||||
|
|
||||||
int pcp_import (vault_t *vault, FILE *in, char *passwd) {
|
int pcp_import (vault_t *vault, FILE *in, char *passwd) {
|
||||||
byte *buf = ucmalloc(2048);
|
byte *buf = ucmalloc(PCP_BLOCK_SIZE);
|
||||||
size_t bufsize;
|
size_t bufsize;
|
||||||
pcp_pubkey_t *pub = NULL;
|
pcp_pubkey_t *pub = NULL;
|
||||||
pcp_key_t *sk = NULL;
|
pcp_key_t *sk = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user