fix(codec): 修复VP8 RTP解码器中的缓冲区越界访问问题

This commit is contained in:
xiongziliang
2026-09-21 00:43:25 +08:00
parent 1d7f4db6ca
commit eb2601ee1d

View File

@@ -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) {