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.