diff --git a/applet-full/src/main/java/org/openjavacard/ndef/full/NdefApplet.java b/applet-full/src/main/java/org/openjavacard/ndef/full/NdefApplet.java index 7369d08..7a6d13b 100644 --- a/applet-full/src/main/java/org/openjavacard/ndef/full/NdefApplet.java +++ b/applet-full/src/main/java/org/openjavacard/ndef/full/NdefApplet.java @@ -546,7 +546,7 @@ private void processUpdateBinary(APDU apdu) throws ISOException { // file limit checks short limit = (short)(offset + lc); - if(limit < 0 || limit >= file.length) { + if(limit < 0 || limit > file.length) { ISOException.throwIt(ISO7816.SW_WRONG_LENGTH); }