more fuzz test

This commit is contained in:
v2ray committed 2016-01-22 21:56:37 +01:00
1 parent 42b4764700
commit 73c17d9931
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -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])