mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-11-24 00:47:21 +08:00
fix(codec): 修复VP8 RTP解码器中的缓冲区越界访问问题
This commit is contained in:
@@ -294,7 +294,7 @@ bool VP8RtpDecoder::decodeRtp(const RtpPacket::Ptr &rtp) {
|
||||
outputFrame(rtp);
|
||||
}
|
||||
|
||||
return (info.isFirstPacket() && (payload[offset] & 0x01) == 0);
|
||||
return (info.isFirstPacket() && (size_t)offset < payload_size && (payload[offset] & 0x01) == 0);
|
||||
}
|
||||
|
||||
void VP8RtpDecoder::outputFrame(const RtpPacket::Ptr &rtp) {
|
||||
|
||||
Reference in New Issue
Block a user