Artifact 48957219a226838c7bb509fc89f4317ad7013d52:
- File src/cgi.c — part of check-in [aeeba751c4] at 2008-09-11 17:12:11 on branch trunk — Fix a memory double-free'd problem. In function <tt>cgi_set_cookie</tt> the <tt>zDate</tt> was allocated via usage of <tt>cgi_rfc822_datestamp</tt>. But as it was appended to the blob <tt>extraHeader</tt> via the format specifier <tt>%z</tt> the memory was free'd by <tt>blob_appendf</tt>. As <tt>cgi_rfc822_datestamp</tt> might return both a dynamic allocated empty string as well as a dynamic allocated string containing the time stamp, <tt>blob_appendf</tt> should not try to free the <tt>zDate</tt>. So now the format specifier is changed to <tt>%s</tt> to let us decide, if we want to free the memory or not. (user: cle size: 39581)
A hex dump of this file is not available. Please download the raw binary file and generate a hex dump yourself.