提交 b6cd1941 authored 作者: Gustavo Garcia's avatar Gustavo Garcia 提交者: Iñaki Baz Castillo

Fix reading out of buffer when parsing malformed H.264 packets (#218)

Thanks @ggarber!
上级 1d11bfbf
......@@ -51,7 +51,7 @@ namespace RTC
}
// Check if there is room for the indicated NAL unit size.
if (len <= naluSize)
if (len < (naluSize + sizeof(naluSize)))
break;
offset += naluSize + sizeof(naluSize);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论