mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -2739,7 +2739,7 @@ public class Cipher {
|
|||
|
||||
// Input sanity check
|
||||
if ((src == null) || (offset < 0) || (len < 0)
|
||||
|| ((len + offset) > src.length)) {
|
||||
|| len > (src.length - offset)) {
|
||||
throw new IllegalArgumentException("Bad arguments");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue