diff options
author | Max Reitz <mreitz@redhat.com> | 2017-03-31 19:05:12 +0200 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2017-04-03 17:11:40 +0200 |
commit | 86d1bd70987cd11d85d01f52aa5824c63d910471 (patch) | |
tree | e103c4b121c6b1d25c3b60cacb55ac3c2783697d /block/write-threshold.c | |
parent | f82c5b17ea85d8f432069a4afd6cbdb65d9d8a66 (diff) |
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/write-threshold.c')
0 files changed, 0 insertions, 0 deletions