OpenJavaCard / openjavacard-ndef

NDEF tag implementation for JavaCard
GNU General Public License v3.0
70 stars 25 forks source link

Wrong NDEF file length when creating CC file #8

Closed cabidop closed 5 years ago

cabidop commented 6 years ago

After the installation of the tiny applet in a JCOP 3 EMV, the card is not recognized as a NFC tag. This happens due to the Maximum NDEF file size field in the File Control TLV being set to the NDEF message size instead of to the NDEF file size.

The fix would be to use (short)(dataSize + 2) instead of dataSize when initializing the Capability Container in makeCaps.

promovicz commented 5 years ago

This has been fixed by the commit in July.