1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-02-15 20:55:21 -05:00

Fix ss2022 auth reader size overflow

This commit is contained in:
dyhkwong
2024-03-15 01:03:06 +08:00
committed by Xiaokang Wang (Shelikhoo)
parent 005812cd37
commit 1c103e6179

View File

@@ -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