mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8275151: Improved Object Identification
Reviewed-by: rhalade, jnimeh
This commit is contained in:
parent
0592e71b72
commit
11faf5395f
1 changed files with 4 additions and 0 deletions
|
@ -684,6 +684,10 @@ public final class ObjectIdentifier implements Serializable {
|
|||
}
|
||||
|
||||
private static void checkOidSize(int oidLength) throws IOException {
|
||||
if (oidLength < 0) {
|
||||
throw new IOException("ObjectIdentifier encoded length was " +
|
||||
"negative: " + oidLength);
|
||||
}
|
||||
if (oidLength > MAXIMUM_OID_SIZE) {
|
||||
throw new IOException(
|
||||
"ObjectIdentifier encoded length exceeds " +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue