mirror of
https://github.com/curl/curl.git
synced 2026-07-16 06:27:17 +03:00
Fix a buffer overflow in pubkey_show().
This commit is contained in:
parent
e84730948d
commit
fb80a0a082
1 changed files with 1 additions and 1 deletions
|
|
@ -1888,7 +1888,7 @@ static void pubkey_show(struct SessionHandle *data,
|
|||
char namebuf[32];
|
||||
char *buffer;
|
||||
|
||||
left = sizeof(len*3 + 1);
|
||||
left = len*3 + 1;
|
||||
buffer = malloc(left);
|
||||
if(buffer) {
|
||||
char *ptr=buffer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue