Skip to content

Fix index out of bounds error in SecretKey::check() method#78

Open
Pumpkin12699 wants to merge 1 commit intoparitytech:masterfrom
Pumpkin12699:fix-index-out-of-bounds
Open

Fix index out of bounds error in SecretKey::check() method#78
Pumpkin12699 wants to merge 1 commit intoparitytech:masterfrom
Pumpkin12699:fix-index-out-of-bounds

Conversation

@Pumpkin12699
Copy link
Copy Markdown

  • Changed self.key[1] and self.key[2] to self.key[0] and self.key[1]
  • The key array has length 2, so indices 0 and 1 are valid
  • This prevents runtime panic during validation operations

- Changed self.key[1] and self.key[2] to self.key[0] and self.key[1]
- The key array has length 2, so indices 0 and 1 are valid
- This prevents runtime panic during validation operations
@cla-bot-2021
Copy link
Copy Markdown

cla-bot-2021 bot commented Apr 3, 2026

User @Pumpkin12699, please sign the CLA here.

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