curl-library
Re: realloc() over-allocation in http_digest.c:547
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 10 May 2009 23:35:29 +0200 (CEST)
Date: Sun, 10 May 2009 23:35:29 +0200 (CEST)
On Fri, 8 May 2009, Andre Guibert de Bruet wrote:
> There appears to be a coding error in http_digest.c in the realloc() call on
> line 547. The strcat() call performed shortly after the realloc() needs
> exactly 3 bytes ('\r' + '\n' + '\0'), yet realloc() is called with 4.
>
> The attached patch corrects this. Could it be committed upon review?
Thanks, committed!
-- / daniel.haxx.seReceived on 2009-05-10