7152169: TEST_BUG: sun/security/tools/jarsigner/ec.sh occasionally fail due to keytool error on sparc
Reviewed-by: mullan
This commit is contained in:
parent
9fd5ef2141
commit
34af18cd40
@ -87,8 +87,8 @@ public final class ECParameters extends AlgorithmParametersSpi {
|
|||||||
if ((data.length == 0) || (data[0] != 4)) {
|
if ((data.length == 0) || (data[0] != 4)) {
|
||||||
throw new IOException("Only uncompressed point format supported");
|
throw new IOException("Only uncompressed point format supported");
|
||||||
}
|
}
|
||||||
int n = (curve.getField().getFieldSize() + 7 ) >> 3;
|
int n = data.length / 2;
|
||||||
if (data.length != (n * 2) + 1) {
|
if (n > ((curve.getField().getFieldSize() + 7 ) >> 3)) {
|
||||||
throw new IOException("Point does not match field size");
|
throw new IOException("Point does not match field size");
|
||||||
}
|
}
|
||||||
byte[] xb = new byte[n];
|
byte[] xb = new byte[n];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user