Hello,
An ampersand (&) character when found in the command line arguments of
an application,
is not encoded into an xml safe form (&) when xml output is enabled.
The same characters are encoded properly in the "args" section,
but appear as-is in the "preample" section.
Please refer to the xml snippet below for an example.
This causes a parse failure with standard xml parsers.
Thanks,
Madhan.
<preamble>
<line>Memcheck, a memory error detector</line>
<line>Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.</line>
<line>Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info</line>
<line>Command: ./a && & \></line>
</preamble>
<pid>5546</pid>
<ppid>15439</ppid>
<tool>memcheck</tool>
<args>
<vargv>
<exe>/usr/local/bin/valgrind</exe>
<arg>--xml=yes</arg>
<arg>--xml-file=abc</arg>
</vargv>
<argv>
<exe>./a</exe>
<arg>&&</arg>
<arg>&</arg>
<arg>></arg>
</argv>
</args>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users