descrypt aes fix
This commit is contained in:
parent
b39d73f4d2
commit
62aa363bc4
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ public class Util {
|
||||||
byte countByte = (byte)((byte)out[out.length-1] % 16);
|
byte countByte = (byte)((byte)out[out.length-1] % 16);
|
||||||
int count = countByte & 0xFF;
|
int count = countByte & 0xFF;
|
||||||
|
|
||||||
if ((count > 15) || (count <= 0)){
|
if ((count > 15) || (count <= 0) || count > out.length){
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue