]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainAudioOSSParse: Use virXMLProp*
authorTim Wiederhake <twiederh@redhat.com>
Tue, 18 May 2021 15:04:50 +0000 (17:04 +0200)
committerLaine Stump <laine@redhat.com>
Tue, 18 May 2021 16:27:14 +0000 (12:27 -0400)
commitcd4c756fd5eece6b1d7723a407ead0ed1bf8a298
treed5b1a0b99bac50a88aa1a2a331edb13e10e9942c
parent23e763eb46271a211de300a910aa779cd3a2b22d
virDomainAudioOSSParse: Use virXMLProp*

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