From 62aa363bc4fabe29f687ca7f030a64adaff304e4 Mon Sep 17 00:00:00 2001 From: Henry Varona Date: Mon, 12 Dec 2016 14:57:19 -0430 Subject: [PATCH] descrypt aes fix --- src/main/java/com/luminiasoft/bitshares/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/luminiasoft/bitshares/Util.java b/src/main/java/com/luminiasoft/bitshares/Util.java index d6b45f7..5c68e42 100644 --- a/src/main/java/com/luminiasoft/bitshares/Util.java +++ b/src/main/java/com/luminiasoft/bitshares/Util.java @@ -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; }