|
@ -427,7 +427,7 @@ void Session::doRead() |
|
|
|
|
|
|
|
|
/// check frame size
|
|
|
/// check frame size
|
|
|
uint32_t frameSize = (m_data[0] * 256 + m_data[1]) * 256 + m_data[2]; |
|
|
uint32_t frameSize = (m_data[0] * 256 + m_data[1]) * 256 + m_data[2]; |
|
|
if (frameSize > 16777216) |
|
|
if (frameSize >= (uint32_t)1 << 24) |
|
|
{ |
|
|
{ |
|
|
clog(NetWarn) << "frame size too large"; |
|
|
clog(NetWarn) << "frame size too large"; |
|
|
drop(BadProtocol); |
|
|
drop(BadProtocol); |
|
|