From d9187e0ba24333fe08a079e7fc0fc394573b6b5e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 1 Jun 2019 16:20:54 +0800 Subject: [PATCH] 1 --- cpp/protoutils.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cpp/protoutils.cc b/cpp/protoutils.cc index eb7a224..f35b211 100644 --- a/cpp/protoutils.cc +++ b/cpp/protoutils.cc @@ -99,7 +99,6 @@ namespace f8 ::google::protobuf::Message& msg) { int packlen = msg.ByteSize(); - assert(packlen < 1024 * 60); char* buff = (char*)malloc(sizeof(f8::BigPackHead) + packlen); f8::BigPackHead* head = (f8::BigPackHead*)buff; @@ -136,7 +135,6 @@ namespace f8 unsigned short msgid, ::google::protobuf::Message& msg) { int packlen = msg.ByteSize(); - assert(packlen < 1024 * 60); char* buff = (char*)malloc(sizeof(f8::BigPackHead) + packlen); f8::BigPackHead* head = (f8::BigPackHead*)buff; @@ -173,7 +171,6 @@ namespace f8 unsigned short msgid, ::google::protobuf::Message& msg) { int packlen = msg.ByteSize(); - assert(packlen < 1024 * 60); char* buff = (char*)malloc(sizeof(f8::BigPackHead) + packlen); f8::BigPackHead* head = (f8::BigPackHead*)buff; @@ -220,7 +217,6 @@ namespace f8 unsigned short child_socket_handle = socket_handle & 0xFFFF; int packlen = msg.ByteSize(); - assert(packlen < 1024 * 60); char* buff = (char*)malloc(sizeof(WSProxyPackHead_S) + packlen); WSProxyPackHead_S* head = (WSProxyPackHead_S*)buff;