Date: Sat, 20 Mar 2010 16:16:13 +0000 (UTC) From: Jaakko Heinonen <jh@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/geom geom_dump.c Message-ID: <201003201616.o2KGGPAd033459@repoman.freebsd.org>
index | next in thread | raw e-mail
jh 2010-03-20 16:16:13 UTC
FreeBSD src repository
Modified files:
sys/geom geom_dump.c
Log:
SVN rev 205385 on 2010-03-20 16:16:13Z by jh
Escape characters unsafe for XML output in GEOM class, instance and
provider names.
- Characters in range 0x01-0x1f except '\t', '\n', and '\r' are replaced
with '?'. Those characters are disallowed in XML.
- '&', '<', '>', '\'', '"' and characters in range 0x7f-0xff are
replaced with XML numeric character reference.
If the kern.geom.confxml sysctl provides invalid XML, libgeom
geom_xml2tree() fails and utilities using it do not work. Unsafe
characters are common in msdosfs and cd9660 labels.
PR: kern/104389
Submitted by: Doug Steinwand (original version)
Reviewed by: pjd
Discussed on: freebsd-geom
MFC after: 3 weeks
Revision Changes Path
1.34 +25 -3 src/sys/geom/geom_dump.c
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003201616.o2KGGPAd033459>
