diff options
| author | Max Reitz | 2017-03-31 19:05:12 +0200 |
|---|---|---|
| committer | Max Reitz | 2017-04-03 17:11:40 +0200 |
| commit | 86d1bd70987cd11d85d01f52aa5824c63d910471 (patch) | |
| tree | e103c4b121c6b1d25c3b60cacb55ac3c2783697d /block/commit.c | |
| parent | iotests: Improve image-clear tests on non-aligned image (diff) | |
| download | qemu-86d1bd70987cd11d85d01f52aa5824c63d910471.tar.gz qemu-86d1bd70987cd11d85d01f52aa5824c63d910471.tar.xz qemu-86d1bd70987cd11d85d01f52aa5824c63d910471.zip | |
block/parallels: Avoid overflows
Change the types of variables in allocate_clusters() to int64_t so we do
not have to worry about potential overflows.
Add an assertion that our accesses to s->bat[] do not result in a buffer
overflow and that the implicit conversion performed when invoking
bat_entry_off() does not result in an integer overflow.
Coverity-id: 1307776
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20170331170512.10381-1-mreitz@redhat.com
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/commit.c')
0 files changed, 0 insertions, 0 deletions
