mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-11-03 02:06:54 +08:00
修复sniNewParser切片越界的问题
This commit is contained in:
@@ -56,7 +56,7 @@ func sniNewParser(b []byte) (uint8, string) {
|
|||||||
sessionIDLength := int(rest[current])
|
sessionIDLength := int(rest[current])
|
||||||
current += 1
|
current += 1
|
||||||
current += sessionIDLength
|
current += sessionIDLength
|
||||||
if current >= restLen {
|
if current+1 >= restLen {
|
||||||
return acc_proto_https, ""
|
return acc_proto_https, ""
|
||||||
}
|
}
|
||||||
cipherSuiteLength := (int(rest[current]) << 8) + int(rest[current+1])
|
cipherSuiteLength := (int(rest[current]) << 8) + int(rest[current+1])
|
||||||
|
|||||||
Reference in New Issue
Block a user