This commit is contained in:
aozhiwei 2019-09-25 15:39:19 +08:00
parent 7288e3d00e
commit 202f675e5f

View File

@ -190,7 +190,7 @@ namespace a8
void WebSocketSession::DecodeFrame(char* buf, int& offset, unsigned int buflen)
{
if (offset + 2 < buflen) {
if (offset + 2 > buflen) {
return;
}
char* real_buf = buf + offset;