]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainFeaturesDefParse: Use virXMLPropUInt
authorTim Wiederhake <twiederh@redhat.com>
Tue, 27 Apr 2021 11:12:54 +0000 (13:12 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 3 May 2021 09:17:40 +0000 (11:17 +0200)
commitf45937c9cf21243a9671be8f742473b3ed45a6f0
tree262a73d1377b646912774b93877b1432a120b24d
parent47896e0ba231eb2a50a86f7a6bfadd38110f5ed1
virDomainFeaturesDefParse: Use virXMLPropUInt

This strictens the parser to disallow negative values (interpreted as
`UINT_MAX + value + 1`) for attribute `retries`. UINT_MAX holds no
special significance for this attribute and is distinctly out of range
for normal use.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c