mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 12:05:06 -05:00
Fix a buffer overflow in pubkey_show().
This commit is contained in:
parent
e84730948d
commit
fb80a0a082
@ -1888,7 +1888,7 @@ static void pubkey_show(struct SessionHandle *data,
|
|||||||
char namebuf[32];
|
char namebuf[32];
|
||||||
char *buffer;
|
char *buffer;
|
||||||
|
|
||||||
left = sizeof(len*3 + 1);
|
left = len*3 + 1;
|
||||||
buffer = malloc(left);
|
buffer = malloc(left);
|
||||||
if(buffer) {
|
if(buffer) {
|
||||||
char *ptr=buffer;
|
char *ptr=buffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user