mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8219775: Certificate validation improvements
Reviewed-by: ascarpino, ssahoo, skoivu
This commit is contained in:
parent
e06d193456
commit
9785630af6
1 changed files with 32 additions and 28 deletions
|
@ -94,6 +94,7 @@ class DerIndefLenConverter {
|
||||||
private void parseTag() throws IOException {
|
private void parseTag() throws IOException {
|
||||||
if (dataPos == dataSize)
|
if (dataPos == dataSize)
|
||||||
return;
|
return;
|
||||||
|
try {
|
||||||
if (isEOC(data[dataPos]) && (data[dataPos + 1] == 0)) {
|
if (isEOC(data[dataPos]) && (data[dataPos + 1] == 0)) {
|
||||||
int numOfEncapsulatedLenBytes = 0;
|
int numOfEncapsulatedLenBytes = 0;
|
||||||
Object elem = null;
|
Object elem = null;
|
||||||
|
@ -125,6 +126,9 @@ class DerIndefLenConverter {
|
||||||
numOfTotalLenBytes += (sectionLenBytes.length - 3);
|
numOfTotalLenBytes += (sectionLenBytes.length - 3);
|
||||||
}
|
}
|
||||||
dataPos++;
|
dataPos++;
|
||||||
|
} catch (IndexOutOfBoundsException iobe) {
|
||||||
|
throw new IOException(iobe);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue