On Fri, 13 Nov 2026 10:13:49 GMT, Volkan Yazici <[email protected]> wrote:
>> Fix response body overread in `HttpURLConnection`. >> >> --------- >> - [X] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Volkan Yazici has updated the pull request incrementally with one additional > commit since the last revision: > > Minimize the fix and accept negative `expected` This change might be backported, and its assumption that _"`MeteredStream.expected` can never be negative"_ [doesn't hold for Java 8] — thanks @dfuch for DM'ing on this detail. In e76ae5dabeb, I've minimized the fix and removed that assumption. [doesn't hold for Java 8]: https://github.com/openjdk/jdk8u/blob/b661ee6ff840d6922aa7424a4d8f24760b21cf26/jdk/src/share/classes/sun/net/www/http/HttpClient.java#L999-L1011 ------------- PR Comment: https://git.openjdk.org/jdk/pull/33846#issuecomment-6850151106
