1
0
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:
Andrei Benea 2011-04-14 23:09:02 +03:00 committed by Daniel Stenberg
parent e84730948d
commit fb80a0a082

View File

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