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