On 31.03.2017 19:05, Max Reitz wrote: > 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 <mre...@redhat.com> > --- > This supercedes Peter's patch "block/parallels.c: avoid integer overflow > in allocate_clusters()". > --- > block/parallels.c | 19 +++++++++++++------ > 1 file changed, 13 insertions(+), 6 deletions(-)
Thanks for reviewing, applied to my block branch: https://github.com/XanClic/qemu/commits/block Max
signature.asc
Description: OpenPGP digital signature