We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
unpaddedLen is a uint16:
unpaddedLen
uint16
go-nostr/nip44/nip44.go
Line 105 in 3ea2887
if unpaddedLen holds the value 65535, adding 2 results in an overflow and a panic in line 143:
65535
2
panic
Line 143 in 3ea2887
panic: runtime error: slice bounds out of range [2:1] goroutine 1 [running]: github.com/nbd-wtf/go-nostr/nip44.Decrypt({0x140003a8000?, 0x14000390000?}, {0x14000026180, 0x20, 0x20}) /Users/sebdev/Documents/sebas/projects/nostr/go-nostr/nip44/nip44.go:143 +0x5d4
Failing test case provided in my fork: https://github.com/sebdeveloper6952/go-nostr/blob/de50e524b7d7e41901b9ac07e9dda991166e3030/nip44/nip44_test.go#L227
The text was updated successfully, but these errors were encountered:
81a396b
No branches or pull requests
unpaddedLen
is auint16
:go-nostr/nip44/nip44.go
Line 105 in 3ea2887
if
unpaddedLen
holds the value65535
, adding2
results in an overflow and apanic
in line 143:go-nostr/nip44/nip44.go
Line 143 in 3ea2887
Failing test case provided in my fork: https://github.com/sebdeveloper6952/go-nostr/blob/de50e524b7d7e41901b9ac07e9dda991166e3030/nip44/nip44_test.go#L227
The text was updated successfully, but these errors were encountered: