[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

[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 arm...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- scripts/coverity-model.c | 6 +++--- 1 file

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

2015-05-04 Thread Markus Armbruster
Paolo Bonzini pbonz...@redhat.com 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 arm...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com

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 jan.kis...@siemens.com writes: Allocate the calculated overall size, not only the size of a single element. Signed-off-by: Jan Kiszka jan.kis...@siemens.com I'm feeding this to Coverity locally to gauge its impact. I got no

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

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

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

2015-03-17 Thread Markus Armbruster
Paolo Bonzini pbonz...@redhat.com writes: On 17/03/2015 09:34, Markus Armbruster wrote: Jan Kiszka jan.kis...@siemens.com writes: Allocate the calculated overall size, not only the size of a single element. Signed-off-by: Jan Kiszka jan.kis...@siemens.com I'm feeding this to Coverity

[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 jan.kis...@siemens.com --- 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