mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-17 23:06:30 -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
|
return errSoft
|
||||||
}
|
}
|
||||||
|
|
||||||
if size <= buf.Size {
|
if effectiveSize <= buf.Size {
|
||||||
b, err := r.readBuffer(effectiveSize, int32(padding))
|
b, err := r.readBuffer(effectiveSize, int32(padding))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user