-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Description
Sometimes when nfc.read() and it fails to read the NDEF records the arduino crashes.
Stacktrace:
nfc.read()
MifareUltralight(uid, uidLength)
NdefMessage(buffer, messageLength()CRASH!
I think the issue is when the messageLength is set to 0, so fix this I suggest that we change the comparison operator in NdefMessage.cpp from:
`
...
while (index <= numBytes)
...`
to
`...
while (index < numBytes)
...`
BenjaminKobjolke and CWright2022
Metadata
Metadata
Assignees
Labels
No labels