[Qemu-devel] [PATCH] Coverity Fix

2016-10-01 Thread David Kiarie
Hi all, The following patch fixes a few issues reported by coverity in the file hw/i386/amd_iommu.c David Kiarie (1): hw/iommu: Fix problems reported by Coverity scan hw/i386/amd_iommu.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) -- 2.1.4

Re: [Qemu-devel] [PATCH] coverity: fix address_space_rw model

2015-05-04 Thread Markus Armbruster
Paolo Bonzini writes: > If the is_write argument is true, address_space_rw writes to memory > and thus reads from the buffer. The opposite holds if is_write is > false. Fix the model. > > Cc: Markus Armbruster > Signed-off-by: Paolo Bonzini > --- > scripts/coverity-model.c | 6 +++--- > 1 fi

[Qemu-devel] [PATCH] coverity: fix address_space_rw model

2015-05-04 Thread Paolo Bonzini
If the is_write argument is true, address_space_rw writes to memory and thus reads from the buffer. The opposite holds if is_write is false. Fix the model. Cc: Markus Armbruster Signed-off-by: Paolo Bonzini --- scripts/coverity-model.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(

Re: [Qemu-devel] [PATCH] coverity: Fix g_malloc_n-like models

2015-03-17 Thread Markus Armbruster
Paolo Bonzini writes: > On 17/03/2015 09:34, Markus Armbruster wrote: >> Jan Kiszka writes: >> >>> Allocate the calculated overall size, not only the size of a single >>> element. >>> >>> Signed-off-by: Jan Kiszka >> >> I'm feeding this to Coverity locally to gauge its impact. > > I got no ch

Re: [Qemu-devel] [PATCH] coverity: Fix g_malloc_n-like models

2015-03-17 Thread Paolo Bonzini
On 17/03/2015 09:34, Markus Armbruster wrote: > Jan Kiszka writes: > >> Allocate the calculated overall size, not only the size of a single >> element. >> >> Signed-off-by: Jan Kiszka > > I'm feeding this to Coverity locally to gauge its impact. I got no changes. Paolo

Re: [Qemu-devel] [PATCH] coverity: Fix g_malloc_n-like models

2015-03-17 Thread Markus Armbruster
Jan Kiszka writes: > Allocate the calculated overall size, not only the size of a single > element. > > Signed-off-by: Jan Kiszka I'm feeding this to Coverity locally to gauge its impact.

[Qemu-devel] [PATCH] coverity: Fix g_malloc_n-like models

2015-03-12 Thread Jan Kiszka
Allocate the calculated overall size, not only the size of a single element. Signed-off-by: Jan Kiszka --- scripts/coverity-model.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/coverity-model.c b/scripts/coverity-model.c index 58356af..cdda259 100644 --- a/sc