]> xenbits.xensource.com Git - libvirt.git/commit
virNodeDevCapPCIDevIommuGroupParseXML: Use virXMLProp*
authorTim Wiederhake <twiederh@redhat.com>
Tue, 18 May 2021 15:04:51 +0000 (17:04 +0200)
committerLaine Stump <laine@redhat.com>
Tue, 18 May 2021 16:27:14 +0000 (12:27 -0400)
commitc6b0b7ad1a9131668ff2e970d1f4c04302ebb642
treeb6abbf2972be49783faea4109cb3acc466c5c656
parentcd4c756fd5eece6b1d7723a407ead0ed1bf8a298
virNodeDevCapPCIDevIommuGroupParseXML: Use virXMLProp*

This strictens the parser to disallow negative values (interpreted as
`UINT_MAX + value + 1`) for attribute `number`. Allowing negative
numbers to be interpreted this way makes no sense for this attribute.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/conf/node_device_conf.c