[libvirt PATCH v2 2/6] virDomainSoundDefParseXML: Use virXMLProp*

Ján Tomko jtomko at redhat.com
Tue Apr 27 18:08:39 UTC 2021


On a Tuesday in 2021, Tim Wiederhake wrote:
>This strictens the parser to disallow negative values (interpreted as
>`UINT_MAX + value + 1`) for attribute `id`.
>
>`id` must be greater than 0 and does not benefit from being referable as
>e.g. "-7" for host audio backend 4294967289, as this value is distinctly
>out of range for normal use.
>
>Additionally, this patch fixes a use of NULL string with printf's %s
>modifier if the `model` attribute is absent.
>
>Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
>---
> src/conf/domain_conf.c | 25 +++++--------------------
> 1 file changed, 5 insertions(+), 20 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210427/513e2f54/attachment-0001.sig>


More information about the libvir-list mailing list