Skip to content

Commit

Permalink
Fix ss2022 auth reader size overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dyhkwong committed May 5, 2024
1 parent cd77e9d commit 94d958a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/crypto/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (r *AuthenticationReader) readInternal(soft bool, mb *buf.MultiBuffer) erro
return errSoft
}

if size <= buf.Size {
if effectiveSize <= buf.Size {
b, err := r.readBuffer(effectiveSize, int32(padding))
if err != nil {
return err
Expand Down

0 comments on commit 94d958a

Please sign in to comment.