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 authored and xiaokangwang committed May 5, 2024
1 parent 005812c commit 1c103e6
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 1c103e6

Please sign in to comment.