Andy Grundman <[EMAIL PROTECTED]> writes:

> I'm trying to use APR::Request outside of Apache to parse application/
> x-www-form-urlencoded POST data.  I'm using libapreq2-2.08.
>
> I have some working code mostly taken from the libapreq2 tests, but
> I'm running into an issue where the second time I try to parse
> something, nothing is parsed.  The code I'm using is below along with
> the output.  Is there something I'm forgetting to reset before
> calling the function a second time?

The underlying apreq_handle_custom() function was missing an initializer
for bytes_read.  The pool cleanup was just enough to jigger around the
allocator to fill those bits with something non-zero, which triggered
the bug.  It should be fixed in apreq's trunk now.

-- 
Joe Schaefer

Reply via email to