[PATCH 08/12] virSecurityLabelDefParseXML: Don't use 'virXPathStringLimit'

Ján Tomko jtomko at redhat.com
Tue Nov 23 14:32:24 UTC 2021


On a Monday in 2021, Peter Krempa wrote:
>virXPathStringLimit doesn't give callers a way to differentiate between
>the queried XPath being empty and the length limit being exceeded.
>
>This means that callers are either overwriting the error message or
>ignoring it altogether.
>
>Move the length checks into the caller.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/conf/domain_conf.c | 22 ++++++++++++++--------
> 1 file changed, 14 insertions(+), 8 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/20211123/642c2f39/attachment-0001.sig>


More information about the libvir-list mailing list