Commit 0b0af437 authored by Josh Ji's avatar Josh Ji

expend dataBuffer's length

parent c71c3e34
...@@ -113,9 +113,9 @@ public class CTAP2 extends Applet implements ExtendedLength { ...@@ -113,9 +113,9 @@ public class CTAP2 extends Applet implements ExtendedLength {
// 1210 bytes of a transient buffer for read-in and out // 1210 bytes of a transient buffer for read-in and out
// We advertise 1200 bytes supported, but 10 bytes for protocol nonsense // We advertise 1200 bytes supported, but 10 bytes for protocol nonsense
try { try {
dataBuffer = JCSystem.makeTransientByteArray((short) 1210, JCSystem.CLEAR_ON_DESELECT); dataBuffer = JCSystem.makeTransientByteArray((short) 2010, JCSystem.CLEAR_ON_DESELECT);
} catch (Exception e) { } catch (Exception e) {
dataBuffer = new byte[1210]; dataBuffer = new byte[2010];
} }
try { try {
scratch = JCSystem.makeTransientByteArray((short) 512, JCSystem.CLEAR_ON_DESELECT); scratch = JCSystem.makeTransientByteArray((short) 512, JCSystem.CLEAR_ON_DESELECT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment