We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9188d92 commit f04e0e0Copy full SHA for f04e0e0
1 file changed
src/brpc/policy/rtmp_protocol.cpp
@@ -1925,8 +1925,8 @@ bool RtmpChunkStream::OnSetPeerBandwidth(
1925
1926
bool RtmpChunkStream::OnUserControlMessage(
1927
const RtmpMessageHeader& mh, butil::IOBuf* msg_body, Socket* socket) {
1928
- if (mh.message_length > 32) {
1929
- RTMP_ERROR(socket, mh) << "No user control message long as "
+ if (mh.message_length < 2u || mh.message_length > 32u) {
+ RTMP_ERROR(socket, mh) << "Invalid user control message length="
1930
<< mh.message_length << " bytes";
1931
return false;
1932
}
0 commit comments