Integrated: 8264864: Multiple byte tag not supported by ASN.1 encoding
Weijun Wang
weijun at openjdk.java.net
Thu Apr 8 21:29:18 UTC 2021
On Thu, 8 Apr 2021 01:06:47 GMT, Weijun Wang <weijun at openjdk.org> wrote:
> This code change does not intend to support multiple byte tags. Instead, it aims to fail more gracefully when such a tag is encountered. For `DerValue` constructors from an encoding (type I), an `IOException` will be thrown since it's already in the throws clause. For constructors from tag and value (type II), an `IllegalArgumentException` will be thrown. All existing type II callers inside JDK use tag numbers smaller than 31.
This pull request has now been integrated.
Changeset: 3d2b4cc5
Author: Weijun Wang <weijun at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/3d2b4cc5
Stats: 83 lines in 2 files changed: 82 ins; 0 del; 1 mod
8264864: Multiple byte tag not supported by ASN.1 encoding
Reviewed-by: xuelei
-------------
PR: https://git.openjdk.java.net/jdk/pull/3391
More information about the security-dev
mailing list