mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-18 23:00:12 +00:00
more fuzz test
This commit is contained in:
1 parent
42b4764700
commit
73c17d9931
3 files changed
+6
-2
No files matched your search
@@ -80,7 +80,7 @@ func (this *SwitchAccount) Unmarshal(data []byte) error {
|
||||
}
|
||||
this.AlterIds = serial.ParseUint16(data[alterIdStart : alterIdStart+2])
|
||||
levelStart := alterIdStart + 2
|
||||
if len(data) < levelStart {
|
||||
if len(data) < levelStart+1 {
|
||||
return transport.CorruptedPacket
|
||||
}
|
||||
this.Level = vmess.UserLevel(data[levelStart])
|
||||
|
||||
Reference in new issue
Block a user