libvirt/src/node_device
Eric Blake 430156cf32 build: add compiler attributes to virUUIDParse
Coverity complained that most, but not all, clients of virUUIDParse
were checking for errors.  Silence those coverity warnings by
explicitly marking the cases where we trust the input, and fixing
one instance that really should have been checking.  In particular,
this silences a rather large percentage of the warnings I saw on my
most recent Coverity analysis run.

* src/util/uuid.h (virUUIDParse): Enforce rules.
* src/util/uuid.c (virUUIDParse): Drop impossible check; at least
Coverity will detect if we break rules and pass NULL.
* src/xenapi/xenapi_driver.c (xenapiDomainCreateXML)
(xenapiDomainLookupByID, xenapiDomainLookupByName)
(xenapiDomainDefineXML): Ignore return when we trust data source.
* src/vbox/vbox_tmpl.c (nsIDtoChar, vboxIIDToUUID_v3_x)
(vboxCallbackOnMachineStateChange)
(vboxCallbackOnMachineRegistered, vboxStoragePoolLookupByName):
Likewise.
* src/node_device/node_device_hal.c (gather_system_cap): Likewise.
* src/xenxs/xen_sxpr.c (xenParseSxpr): Check for errors.
2011-10-13 12:23:37 -06:00
..
node_device_driver.c node_device: reject unknown flags 2011-07-13 09:04:54 -06:00
node_device_driver.h pci: Move some pci sriov helper code out of node device driver to util/pci 2011-08-16 11:59:00 -04:00
node_device_hal.c build: add compiler attributes to virUUIDParse 2011-10-13 12:23:37 -06:00
node_device_hal.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
node_device_linux_sysfs.c pci: Move some pci sriov helper code out of node device driver to util/pci 2011-08-16 11:59:00 -04:00
node_device_udev.c debug: Annotate some variables as unused 2011-09-27 10:16:46 +02:00
node_device_udev.h maint: make Red Hat copyright notices consistent 2010-03-18 16:48:05 +01:00