]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
util: check for an illegal character in a XML namespace prefix
authorErik Skultety <eskultet@redhat.com>
Thu, 4 Dec 2014 13:37:09 +0000 (14:37 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 5 Dec 2014 11:40:10 +0000 (12:40 +0100)
commit2c22954f99a70ed654e4116a18f433afa24d41c5
tree9cfba7adffe5290cb5b12ff2a1d154e2e3cbd004
parent25bf888a6653ecdeca58c597c296757f4cf8a229
util: check for an illegal character in a XML namespace prefix

When user tries to insert element metadata providing a namespace
declaration as well, currently we insert the element without any validation
check for XML prefix (if provided). The next VM start would then
fail with parse error. This patch fixes this issue by adding a call to
xmlValidateNCName function to check for illegal characters in the
prefix.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1143921
src/util/virxml.c