Skip to content

Conversation

@mranostay
Copy link

@mranostay mranostay commented Mar 12, 2023

What's new

  • Fixes integer overflows in mrtd_helpers.c and buffer overflows for NFC read

Verification

  • Read US passport

Checklist (For Reviewer)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

Increasing buffer sized to 300 to allow reading of tags with more data.
One instance of this is a the EF.COM page for a US passport.

In the future this should be probably be a dynamically allocated buffer via
malloc or other heap allocation.
@RogueMaster
Copy link

Are the changes to the submodules required for this fix?

Also, can we fix compile problems showing up with un-initialized date variable? I'm not really sure how the particular variable should get initialized so hoping you can help @qistoph ...

@mranostay
Copy link
Author

@RogueMaster Gah I really hate submodules.. yeah the submodule changes aren't needed. Is it possible to add .gitmodules to the .gitignore? :)

@RogueMaster
Copy link

I fixed compile issue I was getting... to revert the submodules you can git checkout in the submodule folder

For data that is over 256 bytes this overflows till the board crashes
when it hits an invalid address.
@mranostay mranostay closed this by deleting the head repository Mar 30, 2023
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.

2 participants