mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
Fix ss2022 auth reader size overflow
This commit is contained in:
parent
005812cd37
commit
1c103e6179
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user