1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04: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 *buffer;
left = sizeof(len*3 + 1);
left = len*3 + 1;
buffer = malloc(left);
if(buffer) {
char *ptr=buffer;