diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-01-22 14:26:38 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-01-26 16:41:07 -0600 |
commit | 053965c7ff5b260672719884e644ce4117d01995 (patch) | |
tree | 0796fd4464b02dadafc2a3ce0e21dcdb35172cf9 /qemu-nbd.texi | |
parent | f8a83245d9ec685bc6aa6173d6765fe03e20688f (diff) |
block/raw-posix: Abort on pread beyond end of non-growable file
This shouldn't happen under any normal circumstances. However, it looks like
it's possible to achieve this with corrupted images. Without this patch
raw_pread is hanging in an endless loop in such cases.
The patch is not affecting growable files, for which such reads happen in
normal use cases. raw_pread_aligned already handles these cases and won't
return zero in the first place.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-nbd.texi')
0 files changed, 0 insertions, 0 deletions