[PATCH 12/43] util: xml: Disallow aliasing of negative numbers in virXPathULongLong

Ján Tomko jtomko at redhat.com
Tue Nov 1 14:16:58 UTC 2022


On a Monday in 2022, Peter Krempa wrote:
>Passing negative number as an alias for the max value is an anti-feature
>we unfortunately allowed in virsh, but luckily never encouraged in the
>XML.
>
>Refuse numbers with negative sign when parsing unsigned long long from
>XPaths.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/util/virxml.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

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

Jano


More information about the libvir-list mailing list