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

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:52 UTC