Report incorrect lengths for 0x04 instructions

This commit is contained in:
Manuel Thalmann 2023-10-13 01:39:25 +02:00
parent 89d1ff4acf
commit a59ea2ce2b

View file

@ -70,7 +70,7 @@ public class MyApplet extends Applet {
response = storage;
if (length > response.length) {
length = (short) response.length;
ISOException.throwIt((short)(ISO7816.SW_CORRECT_LENGTH_00 | response.length));
}
}