Re: [Qemu-devel] [PATCH 1/4] block: Make qiov match the request size until EOF

2014-07-05 Thread Max Reitz
On 04.07.2014 17:55, Kevin Wolf wrote: 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 potenti

[Qemu-devel] [PATCH 1/4] block: Make qiov match the request size until EOF

2014-07-04 Thread Kevin Wolf
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-