]> xenbits.xensource.com Git - libvirt.git/commit
conf: Check if number of vCPUs fits in the storage variable
authorPeter Krempa <pkrempa@redhat.com>
Tue, 22 Jan 2013 14:27:04 +0000 (15:27 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 22 Jan 2013 16:36:46 +0000 (17:36 +0100)
commitc58e1f4de2e120c124fb008629c05de03f72b2ca
tree8549cf0c5a6391a3a0c7b01ed3e73909df97b26d
parenta54f25a9460b70088dcc99f0d637c3cc0d957702
conf: Check if number of vCPUs fits in the storage variable

The count of vCPUs for a domain is extracted as a usingned long variable
but is stored in a unsigned short. If the actual number was too large,
a faulty number was stored.
src/conf/domain_conf.c