Teach the dechunk bucket to return a proper error in presence of invalid
(unparseable) chunk lengths, instead of returning an APR_EOF.

* buckets/dechunk_buckets.c
  (wait_for_chunk): Check if we were actually able to parse the chunk
   size with apr_strtoi64().  If not, bail out.

* test/test_buckets.c
  (test_response_body_chunked_invalid_len): New test.
  (test_buckets): Add new test.


git-svn-id: https://svn.apache.org/repos/asf/serf/trunk@1804008 13f79535-47bb-0310-9956-ffa450edef68
2 files changed