descrypt aes fix

master
Henry Varona 2016-12-12 14:57:19 -04:30
parent b39d73f4d2
commit 62aa363bc4
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ public class Util {
byte countByte = (byte)((byte)out[out.length-1] % 16);
int count = countByte & 0xFF;
if ((count > 15) || (count <= 0)){
if ((count > 15) || (count <= 0) || count > out.length){
return out;
}