Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add length check when work with Feitian OEM R502 #606

Merged
merged 1 commit into from
Jun 22, 2020

Conversation

FeitianSmartcardReader
Copy link
Contributor

improve the code, to have compatible with OEM R502.

In the PC/SC reader, the response code has two bytes, SW1 and SW2, but some Feitian reader with OEM firmware, which only return 1 byte, which lead the problem at high level API call. add length check and avoid this problem.

improve the code, to have compatible with OEM R502 firmware.
Copy link
Contributor Author

@FeitianSmartcardReader FeitianSmartcardReader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And if found the response data more than 1 byte, adjust response length, add 2 bytes(SW1, SW2)

@doegox doegox merged commit 1f6f75a into nfc-tools:master Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants