Check the length of data, if less 12, read more
This commit is contained in:
parent
cd1bd72a80
commit
63480d6547
@ -137,6 +137,9 @@ BEGIN:
|
|||||||
}
|
}
|
||||||
// split package
|
// split package
|
||||||
tl := len(data)
|
tl := len(data)
|
||||||
|
if tl < 12 {
|
||||||
|
goto BEGIN
|
||||||
|
}
|
||||||
start := 0
|
start := 0
|
||||||
for i := 0; i < tl; i++ {
|
for i := 0; i < tl; i++ {
|
||||||
if string(data[start:start+4]) == common.RES_STR {
|
if string(data[start:start+4]) == common.RES_STR {
|
||||||
|
Loading…
Reference in New Issue
Block a user