libxc: don't pass uninitialized data to do_dm_op()
authorJan Beulich <JBeulich@suse.com>
Mon, 20 Feb 2017 16:53:27 +0000 (16:53 +0000)
committerWei Liu <wei.liu2@citrix.com>
Mon, 20 Feb 2017 16:53:27 +0000 (16:53 +0000)
commit78da0c2a7a9c621ba64e515528e11e5f28f15050
tree27ca009b961376b106c5a263e246f84831e4e6d8
parent450822276858f226d059752f319e681d076301d7
libxc: don't pass uninitialized data to do_dm_op()

do_dm_op() expects (void *, size_t) pairs, but with nr being uint32_t
the type of the expression of xc_hvm_track_dirty_vram()'s last argument
to the function is only a 32 bits one. Neither C nor the ABI require
the compiler to promote the type beyond int.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_misc.c