[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 0/6 v2] xen: parsing and sexpr escaping fixes



This series fixes some xen XM parsing and sexpr generation issues.

The first three patches fix parsing /etc/xen files that use python style
triple quotes (which libvirt will actually generate in certain situations).

The last three patches fix generating xend sexpr with the reserved characters
& \ or '

v2:
    Tweak domain schema path usage
    Cleanup virBufferEscape*
    Small improvements in xend sexpr formatting
    More sensible values in sexpr escape tests

Cole Robinson (6):
  schemas: domain: Add more valid file path chars
  conf: Convert ParseString to use STRPREFIX
  conf: Fix parsing python style triple quotes
  xend: urlencode: Properly escape '&'
  buf: Simplify virBufferEscapeString
  xend: Escape reserved sexpr characters

 docs/schemas/domain.rng                    |   23 ++----
 src/util/buf.c                             |   79 ++++++++++++++------
 src/util/buf.h                             |    1 +
 src/util/conf.c                            |   20 +++--
 src/xen/xend_internal.c                    |  113 +++++++++++++++------------
 tests/xmconfigdata/test-escape-paths.cfg   |    2 +-
 tests/xmconfigdata/test-escape-paths.xml   |    5 +
 tests/xml2sexprdata/xml2sexpr-escape.sexpr |    1 +
 tests/xml2sexprdata/xml2sexpr-escape.xml   |   24 ++++++
 tests/xml2sexprtest.c                      |    1 +
 10 files changed, 172 insertions(+), 97 deletions(-)
 create mode 100644 tests/xml2sexprdata/xml2sexpr-escape.sexpr
 create mode 100644 tests/xml2sexprdata/xml2sexpr-escape.xml

-- 
1.7.3.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]