Markus Armbruster 29cd81ffe3 coverity: Model g_memdup()
We model all the non-deprecated memory allocation functions from
https://developer.gnome.org/glib/stable/glib-Memory-Allocation.html
except for g_memdup(), g_clear_pointer(), g_steal_pointer().  We don't
use the latter two.  Model the former.

Coverity now reports an OVERRUN
vl.c:2317: alloc_strlen: Allocating insufficient memory for the terminating null of the string.
Correct, but we omit the terminating null intentionally there.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1448901152-11716-1-git-send-email-armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-12-17 17:33:49 +01:00
..
2015-03-10 10:49:25 +01:00
2015-10-29 17:59:27 +00:00
2015-09-04 13:18:04 +02:00
2015-12-17 17:33:49 +01:00
2014-02-20 13:14:18 +01:00
2012-03-30 08:14:11 -05:00
2015-10-12 18:44:54 +02:00
2015-10-12 18:46:50 +02:00
2015-12-17 08:21:29 +01:00
2015-10-29 17:59:27 +00:00
2015-02-16 15:07:18 +00:00
2012-04-16 15:41:20 +02:00
2014-02-15 16:10:25 +04:00
2014-06-09 15:43:40 +02:00