jira-importer opened a new issue, #1214: URL: https://github.com/apache/httpcomponents-core/issues/1214
**[Jason Mathison](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=jason%20mathison)** opened **[HTTPCORE-694](https://issues.apache.org/jira/browse/HTTPCORE-694?redirect=false)** and commented We are having an issue where SSLIOSession::decryptData will effectively become an endless loop when the size of the inEncryptedBuf buffer is larger than the size of the inPlainBuf. In this scenario the doUnwrap completely fills up the inPlainBuf. This causes the if (inPlainBuf.hasRemaining()) to return false and never clear anything out of the inPlainBuf buffer. From what we can tell the if (inPlainBuf.hasRemaining()) { should be removed, as it is in error. There is no reason that this buffer being full should prevent it from being emptied. We verified that removing this code from 5.1.2 resolved the issue we were facing, along with all tests continuing to pass. There does not appear to be any change to this code in 5.2 alpha. This issue shows up when we use BouncyCastle for FIPS validated TLS, as it creates a larger inEncryptedBuf then the SUN stack. This issue is completely reproducible when we get a large response from our endpoint. --- **Affects:** 5.1.2, 5.2-alpha1 **Backported to:** [5.1.3](https://github.com/apache/httpcomponents-core/milestone/75?closed=1) -- 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]
