From d73ff7eb0c53e6d93db95b14d0fb5945fae24649 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 2 Jun 2020 10:03:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86warning=20websocketsession?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- a8/websocketsession.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a8/websocketsession.cc b/a8/websocketsession.cc index 0d96606..dcf2dd4 100644 --- a/a8/websocketsession.cc +++ b/a8/websocketsession.cc @@ -190,7 +190,7 @@ namespace a8 void WebSocketSession::DecodeFrame(char* buf, int& offset, unsigned int buflen) { - if (offset + 2 > buflen) { + if (offset + 2 > (int)buflen) { return; } char* real_buf = buf + offset;