Webrev: http://cr.openjdk.java.net/~apetcher/8183591/webrev.00/ JBS: https://bugs.openjdk.java.net/browse/JDK-8183591
This is a bug fix for a corner case in which a DER value has length
equal to Integer.MAX_VALUE. The code uses IOUtils.readFully() to read
the value, which interprets length=Integer.MAX_VALUE to mean "read to
the end." The result is that no exception will be thrown when fewer then
Integer.MAX_VALUE bytes are read from the stream. The fix adds a check
after the readFully() to ensure that the expected number of bytes were
read.
- RFR 8183591: Incorrect behavior when reading DER value wit... Adam Petcher
- Re: RFR 8183591: Incorrect behavior when reading DER ... Bernd Eckenfels
- Re: RFR 8183591: Incorrect behavior when reading ... Adam Petcher
- Re: RFR 8183591: Incorrect behavior when reading DER ... Adam Petcher
- Re: RFR 8183591: Incorrect behavior when reading ... Adam Petcher
- Re: RFR 8183591: Incorrect behavior when read... Sean Mullan
- Re: RFR 8183591: Incorrect behavior when reading ... Weijun Wang
- Re: RFR 8183591: Incorrect behavior when reading DER ... Bernd
- Re: RFR 8183591: Incorrect behavior when reading ... Adam Petcher