[jdk17u-dev] RFR: 8306461: ObjectInputStream::readObject() should handle negative array sizes without throwing NegativeArraySizeExceptions

Roland Mesde duke at openjdk.org
Tue Dec 2 16:56:15 UTC 2025


On Wed, 12 Nov 2025 18:20:34 GMT, Roland Mesde <duke at openjdk.org> wrote:

> Backporting JDK-8306461: ObjectInputStream::readObject() should handle negative array sizes without throwing NegativeArraySizeExceptions. Updates implementation to use a checked exception and adds a new test. Ran GHA Sanity Checks (passed), related ObjectInputStream tests (passed). Patch is clean.

Withdrawing and cancelling PR.

-------------

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/4174#issuecomment-3603032179


More information about the jdk-updates-dev mailing list