FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

QuickFix Format_Badbase64Char #2953 by lordyavin · Pull Request #2957 · PhilippC/keepass2android · GitHub

QuickFix Format_Badbase64Char #2953 - #2957

Open
lordyavin wants to merge 1 commit into
PhilippC:masterfrom
lordyavin:lordyavin-patch-ReadBase64
Open

lordyavin wants to merge 1 commit into
PhilippC:masterfrom
lordyavin:lordyavin-patch-ReadBase64

Conversation

Copy link
Copy Markdown

Add error handling for Convert.FromBase64String to not crash in case of bad format.

Add error handling for Convert.FromBase64String to not crash in case of bad format.

Copy link
Copy Markdown
Author

May fix #2953

Copy link
Copy Markdown
Owner

TBH I'm pretty concerned with this fix as it silently swallows the invalid data. ReadBase64 is such a basic method that it's hard to decide what to do with invalid data here.

lordyavin commented Jul 29, 2025
edited
Loading

Copy link
Copy Markdown
Author

TBH I'm pretty concerned with this fix as it silently swallows the invalid data. ReadBase64 is such a basic method that it's hard to decide what to do with invalid data here.

It's a quick fix and not a sophisticated error handling solution. You may handle it differently and show a dialog to the user which explains the problem and where it is. IMHO not opening the DB is very inconvenient.

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL