提交 38e23019 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

May fix #240

上级 84dcd22a
...@@ -37,7 +37,7 @@ namespace RTC ...@@ -37,7 +37,7 @@ namespace RTC
auto* header = const_cast<Header*>(reinterpret_cast<const Header*>(data)); auto* header = const_cast<Header*>(reinterpret_cast<const Header*>(data));
// data size must be >= header + length value. // data size must be >= header + length value.
if (sizeof(uint8_t) * 2 + header->length > len) if (sizeof(Header) > len || sizeof(uint8_t) * 2 + header->length > len)
{ {
MS_WARN_TAG(rtcp, "not enough space for SDES item, discarded"); MS_WARN_TAG(rtcp, "not enough space for SDES item, discarded");
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论