apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject apr_date_parse_rfc segv
Date Thu, 23 May 2002 20:06:48 GMT
the program below segvs because apr_date_parse_rfc does the following 
in a number of places:

APU_DECLARE(apr_time_t) apr_date_parse_rfc(char *date)
        ...
        timstr = date + 10;
        timstr[6] = '0';

is one expected to apr_pstrdup the input string or just be ok with it 
being modified?

#include "apr_date.h"

int main (void)
{
    apr_time_t secs = apr_date_parse_rfc("Sun, 06 Nov 94 8:49:37 GMT");
    return 1;
}


Mime
View raw message