libvirt/src/conf
Eric Blake c09acad352 conf: tighten up XML integer parsing
https://bugzilla.redhat.com/show_bug.cgi?id=617711 reported that
even with my recent patched to allow <memory unit='G'>1</memory>,
people can still get away with trying <memory>1G</memory> and
silently get <memory unit='KiB'>1</memory> instead.  While
virt-xml-validate catches the error, our C parser did not.

Not to mention that it's always fun to fix bugs while reducing
lines of code.  :)

* src/conf/domain_conf.c (virDomainParseMemory): Check for parse error.
(virDomainDefParseXML): Avoid strtoll.
* src/conf/storage_conf.c (virStorageDefParsePerms): Likewise.
* src/util/xml.c (virXPathLongBase, virXPathULongBase)
(virXPathULongLong, virXPathLongLong): Likewise.
2012-04-19 17:42:53 -06:00
..
capabilities.c caps: Improve error if passed an unknown arch 2012-02-20 13:41:43 -05:00
capabilities.h caps: Improve error if passed an unknown arch 2012-02-20 13:41:43 -05:00
cpu_conf.c cpu: Update guest CPU in host-* mode 2012-01-17 11:42:56 +01:00
cpu_conf.h cpu: Update guest CPU in host-* mode 2012-01-17 11:42:56 +01:00
domain_audit.c xml: use better types for memory values 2012-03-07 18:24:44 -07:00
domain_audit.h snapshot: make it possible to audit external snapshot 2011-09-05 07:03:05 -06:00
domain_conf.c conf: tighten up XML integer parsing 2012-04-19 17:42:53 -06:00
domain_conf.h Support clock=variable relative to localtime 2012-04-02 09:08:31 -06:00
domain_event.c Add support for the suspend event 2012-03-23 23:12:18 +08:00
domain_event.h Add support for the suspend event 2012-03-23 23:12:18 +08:00
domain_nwfilter.c Pass the VM's UUID into the nwfilter subsystem 2011-12-08 21:35:20 -05:00
domain_nwfilter.h Pass the VM's UUID into the nwfilter subsystem 2011-12-08 21:35:20 -05:00
interface_conf.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
interface_conf.h interface: implement a test driver for network config transaction API. 2011-05-27 14:34:13 -04:00
netdev_bandwidth_conf.c Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
netdev_bandwidth_conf.h Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
netdev_vport_profile_conf.c network: support Open vSwitch 2012-02-15 16:04:54 -05:00
netdev_vport_profile_conf.h Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
network_conf.c conf: forbid use of multicast mac addresses 2012-03-19 20:33:30 -04:00
network_conf.h Move virMacAddrXXX functions to src/util/virmacaddr.[ch] 2012-01-27 17:56:10 +00:00
node_device_conf.c npiv: Auto-generate WWN if it's not specified 2012-02-10 12:53:25 +08:00
node_device_conf.h npiv: Auto-generate WWN if it's not specified 2012-02-10 12:53:25 +08:00
nwfilter_conf.c Rename virXXXXMacAddr to virMacAddrXXX 2012-01-27 17:53:44 +00:00
nwfilter_conf.h nwfilter: Fix support for trusted DHCP servers 2012-04-19 10:21:43 -04:00
nwfilter_params.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
nwfilter_params.h Rename hash.h and hash.c to virhash.h and virhash.c 2012-01-26 14:11:13 +00:00
secret_conf.c conf: Improve incorrect root element error messages 2011-11-28 15:12:37 +01:00
secret_conf.h secret: add Ceph secret type 2011-10-28 11:34:17 -06:00
storage_conf.c conf: tighten up XML integer parsing 2012-04-19 17:42:53 -06:00
storage_conf.h xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
storage_encryption_conf.c snapshot: simplify indentation of disk encryption xml 2011-10-26 11:14:43 -06:00
storage_encryption_conf.h snapshot: simplify indentation of disk encryption xml 2011-10-26 11:14:43 -06:00
virconsole.c util: Add helpers for safe domain console operations 2012-02-27 15:05:17 +01:00
virconsole.h util: Add helpers for safe domain console operations 2012-02-27 15:05:17 +01:00