修复bytehelper & VlInt中的已知bug

This commit is contained in:
ghy committed 2021-03-15 20:46:03 +08:00
1 parent 227d10a391
commit 2ad446ca2c
29 files changed
+315 -80

No files matched your search

+6 -1
View File
@@ -103,7 +103,12 @@ public class SignatureValue implements TlvComponentBase, IEncodingAble {
return false;
}
int len=block.getLength().getVlIntValue2Int();
int len= 0;
try {
len = block.getLength().getVlIntValue2Int();
} catch (VlIntException e) {
e.printStackTrace();
}
this.value=new byte[len];
System.arraycopy(block.getValue(),0,this.value,0,len);
return true;