jira-importer opened a new issue, #1008: URL: https://github.com/apache/httpcomponents-core/issues/1008
**[Michael Heemskerk](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mheemskerk)** opened **[HTTPCORE-491](https://issues.apache.org/jira/browse/HTTPCORE-491?redirect=false)** and commented When using `BasicAsyncResponseConsumer` to consume a response, the consumer initializes its `SimpleInputBuffer` with the value reported on the response's `Content-Length` header. It's easy to spoof a response with a very large (but smaller than Integer.MAX_VALUE) `Content-Length` header and have the client pre-allocate a massive buffer, triggering an OOME. Since `SimpleInputBuffer` already expands-on-demand, it would be trivial to cap the initial buffer size to some reasonable limit (256k or even 1M) --- **Affects:** 4.4.7 **Remote Links:** - [GitHub Pull Request `#52` ](https://github.com/apache/httpcomponents-core/pull/52) 0 votes, 5 watchers -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
