more fix of memory access

This commit is contained in:
root
2020-07-26 19:07:17 +00:00
parent 5f907e32d7
commit e8daf7c263
6 changed files with 22 additions and 6 deletions

View File

@@ -460,6 +460,11 @@ int server_on_raw_recv_multi() //called when server received an raw packet
{
return 0;
}
if(data_len>=max_data_len+1)
{
mylog(log_debug,"data_len=%d >= max_data_len+1,ignored",data_len);
return -1;
}
if(use_tcp_dummy_socket!=0)
return 0;
raw_info_t &raw_info=tmp_raw_info;