Thanks Julian, the following is the testcase.

valgrind --xml=yes --xml-file=ls.xml ls '&' '>'

Thanks,
Madhan.

On Tue, Nov 24, 2009 at 3:30 PM, Julian Seward <[email protected]> wrote:
>
> Easy enough to fix.  Can you send a small test program and commands to
> show the problem, so I can test the fix?
>
> J
>
> On Tuesday 24 November 2009, Madhan Sadasivam wrote:
>> Hello,
>>
>> An ampersand (&) character when found in the command line arguments of
>> an application,
>> is not encoded into an xml safe form (&amp;) 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>&amp;&amp;</arg>
>>     <arg>&amp;</arg>
>>     <arg>&gt;</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
>
>
>

------------------------------------------------------------------------------
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

Reply via email to