mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 20:44:41 +02:00
8204196: integer cleanup
Reviewed-by: xuelei
This commit is contained in:
parent
f53e04ead9
commit
4e46cc1392
7 changed files with 18 additions and 12 deletions
|
@ -507,6 +507,10 @@ final class P11Signature extends SignatureSpi {
|
|||
if (len == 0) {
|
||||
return;
|
||||
}
|
||||
// check for overflow
|
||||
if (len + bytesProcessed < 0) {
|
||||
throw new ProviderException("Processed bytes limits exceeded.");
|
||||
}
|
||||
switch (type) {
|
||||
case T_UPDATE:
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue