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

Fix: Handle UTF-8 decode error and overflow error in wallet storage #9564

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

krishnakant2607
Copy link

I've fixed two issues in the wallet storage handling:

  • A UnicodeDecodeError that occurs when reading wallet files with invalid UTF-8 encoding
  • An OverflowError that happens when trying to display large error messages

The changes include:

  • Better exception handling for UTF-8 decode errors in storage.py
  • Added size limit checks to prevent overflow when displaying error messages
  • More user-friendly error messages
  • Graceful fallback for oversized error messages

Changed files:

  1. electrum/storage.py
  2. electrum/gui/qt/wizard/wallet.py

@SomberNight
Copy link
Member

is this LLM-generated?

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.

3 participants