Files
xen/tools/libxc
Jennifer Herbert b9dbe33d15 libxc: Fix misleading use of strncpy code in build_hvm_info()
hvm_info->signature is not a string, but an 64 bit int, and is not
NULL terminated.  The use of strncpy to populate it is inappropriate and
potentially misleading.  A cursory glance might have you thinking someone
had miscounted the length of the string literal - not realising it was
intentionally cropping of the null termination.
Also, since we wish to initialise all of hvm_info->signature, and
certainly no more, the use of sizeof is safer.

Coverity-ID: 1198710

Signed-off-by: Jennifer Herbert <jennifer.herbert@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
2015-07-03 16:48:18 +01:00
..
2010-08-24 18:42:59 +01:00
2010-08-24 18:42:59 +01:00
2010-08-24 18:42:59 +01:00
2015-06-25 13:01:22 +01:00
2010-08-24 18:42:59 +01:00
2010-08-24 18:42:59 +01:00
2014-06-18 17:17:49 +01:00
2013-11-12 11:47:07 +01:00
2014-09-23 14:40:07 +01:00
2010-08-24 18:42:59 +01:00
2014-05-02 13:34:34 +01:00