httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: Ap1: Reading POST-requests buggy? (not 0-terminated)
Date Fri, 19 Oct 2007 13:19:49 GMT
On Fri, 19 Oct 2007 10:49:27 +0200
"Alexander Farber" <alexander.farber@gmail.com> wrote:

> Hello,
> 
> the libapreq calls util_read() function -
> http://search.cpan.org/src/DOUGM/libapreq-0.31/c/apache_request.c
> which allocates a buffer with (r->remaining + 1) bytes.

That looks like very, very old and obsolete code (pre-APR).

But you should check up on the difference between ap_palloc
and ap_pcalloc for the answer to your question.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

Mime
View raw message