mirror of
https://github.com/openjdk/jdk18u.git
synced 2025-12-10 16:28:08 -06:00
Merge
This commit is contained in:
commit
187cfcc547
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -83,12 +83,12 @@ public class EncryptedPrivateKeyInfo {
|
||||
"must be non-null");
|
||||
}
|
||||
|
||||
DerValue val = new DerValue(encoded);
|
||||
this.encoded = encoded.clone();
|
||||
DerValue val = DerValue.wrap(this.encoded);
|
||||
if (val.tag != DerValue.tag_Sequence) {
|
||||
throw new IOException("DER header error: no SEQ tag");
|
||||
}
|
||||
|
||||
this.encoded = encoded.clone();
|
||||
DerValue[] seq = new DerValue[2];
|
||||
|
||||
seq[0] = val.data.getDerValue();
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -2162,7 +2162,7 @@ public class XMLEntityScanner implements XMLLocator {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (c == '\r') {
|
||||
if (c == '\r' && isExternal) {
|
||||
int cc = fCurrentEntity.ch[fCurrentEntity.position];
|
||||
if (cc == '\n' || (version == XML_VERSION_1_1 && cc == 0x85)) {
|
||||
fCurrentEntity.position++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user