RFR: 8249783: Simplify DerValue and DerInputStream [v2]

Valerie Peng valeriep at openjdk.java.net
Tue Sep 29 00:25:44 UTC 2020


On Fri, 25 Sep 2020 22:58:26 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> src/java.base/share/classes/sun/security/util/DerInputStream.java line 103:
>> 
>>> 101:      */
>>> 102:     public DerValue getDerValue() throws IOException {
>>> 103:         DerValue result = new DerValue(
>> 
>> Check (this.end - this.pos > 0) before calling DerValue()?
>
> new DerValue() would fail in this case.

Sure.

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

PR: https://git.openjdk.java.net/jdk/pull/232



More information about the security-dev mailing list