apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <jwool...@virginia.edu>
Subject Re: cvs commit: apr-util/misc apr_date.c
Date Thu, 23 May 2002 21:05:21 GMT
On 23 May 2002 jwoolley@apache.org wrote:

> jwoolley    02/05/23 14:04:26
>
>   Modified:    .        CHANGES
>                include  apr_date.h
>                misc     apr_date.c
>   Log:
>   Fixed a segfault in apr_date_parse_rfc() for some date formats
>   because it was overlaying the input string in a totally bogus way.
>
>   Reported by:	Doug MacEachern
>

That ought to fix it.  The only reason we were overwriting those bytes was
to cause the post-if-elseif-calculation to result in 0 values for certain
fields.  This seems a clean enough way to do it.  If you'd rather I
expanded the macros out, I can... it's only three lines per if-block.

--Cliff

--------------------------------------------------------------
   Cliff Woolley
   cliffwoolley@yahoo.com
   Charlottesville, VA



Mime
View raw message