8219775: Certificate validation improvements

Reviewed-by: ascarpino, ssahoo, skoivu
This commit is contained in:
Jamil Nimeh 2019-03-07 22:19:12 -08:00
parent e06d193456
commit 9785630af6

View file

@ -94,6 +94,7 @@ class DerIndefLenConverter {
private void parseTag() throws IOException {
if (dataPos == dataSize)
return;
try {
if (isEOC(data[dataPos]) && (data[dataPos + 1] == 0)) {
int numOfEncapsulatedLenBytes = 0;
Object elem = null;
@ -125,6 +126,9 @@ class DerIndefLenConverter {
numOfTotalLenBytes += (sectionLenBytes.length - 3);
}
dataPos++;
} catch (IndexOutOfBoundsException iobe) {
throw new IOException(iobe);
}
}
/**