[libvirt] [PATCHv2 5/5] Strip control codes in virBufferEscapeString
Peter Krempa
pkrempa at redhat.com
Wed Apr 15 12:29:22 UTC 2015
On Tue, Apr 14, 2015 at 13:28:50 +0200, Ján Tomko wrote:
> These cannot be represented in XML.
>
> We have been stripping them, but only if the string had
> characters that needed escaping: <>"'&
>
> Extend the strcspn check to include control codes, and strip
> them even if we don't do any escaping.
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1184131
> https://bugzilla.redhat.com/show_bug.cgi?id=1066564
> ---
> src/util/virbuffer.c | 14 +++++++++++---
> tests/virbuftest.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 60 insertions(+), 3 deletions(-)
ACK,
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150415/4bd7f3bd/attachment-0001.sig>
More information about the libvir-list
mailing list