RfidResearchGroup / ChameleonUltra

The new generation chameleon based on NRF52840 makes the performance of card emulation more stable. And gave the chameleon the ability to read, write, and decrypt cards.
https://chameleonultra.com
GNU General Public License v3.0
922 stars 153 forks source link

Fix data sanity check #59

Closed sgnusov closed 1 year ago

sgnusov commented 1 year ago

Fixed block_count calculation in cmd_processor_set_mf1_emulator_block.

Changed loop boundary to length. Although it does not affect behavior, it is confusing to have length - 1 as a boundary because we want to parse data elements from 1 to length - 1 including.