We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83645ef commit e1d305aCopy full SHA for e1d305a
fat_error_encrypt.go
@@ -72,6 +72,10 @@ func (o *OnionFatErrorEncrypter) addHmacs(data []byte) {
72
func (o *OnionFatErrorEncrypter) EncryptError(initial bool, data []byte,
73
payload []byte) ([]byte, error) {
74
75
+ if len(payload) > o.payloadDataLen {
76
+ return nil, fmt.Errorf("payload exceeds maximum length")
77
+ }
78
+
79
if initial {
80
if len(data) < minOnionErrorLength {
81
return nil, fmt.Errorf(
0 commit comments