Home
last modified time | relevance | path

Searched hist:"33 f461e0c5d8efa21ef7e746be561fc57a1df106" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/
H A Dblock.cdiff 33f461e0c5d8efa21ef7e746be561fc57a1df106 Thu Jul 03 06:21:24 CDT 2014 Kevin Wolf <kwolf@redhat.com> block: Make qiov match the request size until EOF

If a read request goes across EOF, the block driver sees a shortened
request that stops at EOF (the rest is memsetted in block.c), however
the original qiov was used for this request.

This patch makes the qiov size match the request size, avoiding a
potential buffer overflow in raw-posix.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>