]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainDeviceUSBMasterParseXML: Use virXMLProp*
authorTim Wiederhake <twiederh@redhat.com>
Tue, 18 May 2021 15:04:44 +0000 (17:04 +0200)
committerLaine Stump <laine@redhat.com>
Tue, 18 May 2021 16:27:12 +0000 (12:27 -0400)
commit081f22c209129b5914064c9db61580c87136668f
tree73b33056e93efe717a3d64296b1c5d9837337d71
parent793e71ee76acb49b215e31ee89e0c9cb52322811
virDomainDeviceUSBMasterParseXML: Use virXMLProp*

This strictens the parser to disallow negative values (interpreted as
`UINT_MAX + value + 1`) for attribute `startport`. 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/domain_conf.c