W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2000

Patch for MD5 digest authentication memory leak

From: Andy Levine <andyl@infospinner.com>
Date: Mon, 3 Jan 2000 10:51:30 -0600
To: <www-lib@w3.org>
Message-ID: <001b01bf560a$c8887130$0301a8c0@dolphin.infospinner.com>
Attached please find a patch to the latest CVS sources that fix 2 memory
leaks associated with MD5 digest authentication. In both cases,
HTAnchor_address() is called without freeing the returned memory. The
sources in error are in the module HTAABrow.c, in the functions
HTDigest_updateInfo() and digest_credentials().

Andy Levine
andyl@infospinner.com

Index: HTAABrow.c
===================================================================
RCS file: /sources/public/libwww/Library/src/HTAABrow.c,v
retrieving revision 2.56
diff -r2.56 HTAABrow.c
539a540
> 	    HT_FREE(url);
741c742
< 	    uri = HTRequest_proxy(request);
---
> 	    uri = StrAllocCopy(uri, HTRequest_proxy(request));
785a787
> 	HT_FREE(uri);
Received on Monday, 3 January 2000 11:55:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:35 GMT