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

Avoid reading Elementary File beyond the EOF #39

Open
sfaragnaus opened this issue Apr 14, 2018 · 0 comments
Open

Avoid reading Elementary File beyond the EOF #39

sfaragnaus opened this issue Apr 14, 2018 · 0 comments

Comments

@sfaragnaus
Copy link
Collaborator

Currently the read_EF_file() reads in chunk of 128 bytes till it obtains a 'wrong length' error from the card. The behaviour on the EOF could be vendor-specific and could not work with future manufacturer, so it would be best to read the File Control Block (containing the file size) and then read the exact length, thus avoiding the EOF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant