Skip to content

Comments

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

Closed
krishnakant2607 wants to merge 1 commit intospesmilo:masterfrom
krishnakant2607:master
Closed

Fix: Handle UTF-8 decode error and overflow error in wallet storage#9564
krishnakant2607 wants to merge 1 commit intospesmilo:masterfrom
krishnakant2607:master

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?

@ecdsa ecdsa closed this May 28, 2025
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.

4 participants