Skip to content

Fix panic in Address::from_str with invalid ColorIdentifier#73

Merged
azuchi merged 1 commit intochaintope:masterfrom
azuchi:fix-bug
Dec 25, 2025
Merged

Fix panic in Address::from_str with invalid ColorIdentifier#73
azuchi merged 1 commit intochaintope:masterfrom
azuchi:fix-bug

Conversation

@azuchi
Copy link
Contributor

@azuchi azuchi commented Dec 25, 2025

When fuzztarget feature is enabled, checksum validation is skipped, allowing invalid data to reach ColorIdentifier::from_slice().
The unwrap() call would panic on invalid color identifiers.

Replace unwrap() with proper error handling using map_err().

  When fuzztarget feature is enabled, checksum validation is skipped,
  allowing invalid data to reach ColorIdentifier::from_slice().
  The unwrap() call would panic on invalid color identifiers.

  Replace unwrap() with proper error handling using map_err().
@azuchi azuchi merged commit 18b0714 into chaintope:master Dec 25, 2025
4 checks passed
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.

1 participant