提交 bf259833 编写于 作者: G Gerd Hoffmann

cirrus: don't overflow CirrusVGAState->cirrus_bltbuf

This is CVE-2014-8106.
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 d3532a0d
......@@ -293,6 +293,10 @@ static bool blit_is_unsafe(struct CirrusVGAState *s)
assert(s->cirrus_blt_width > 0);
assert(s->cirrus_blt_height > 0);
if (s->cirrus_blt_width > CIRRUS_BLTBUFSIZE) {
return true;
}
if (blit_region_is_unsafe(s, s->cirrus_blt_dstpitch,
s->cirrus_blt_dstaddr & s->cirrus_addr_mask)) {
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册