Opened 12 years ago

Closed 11 years ago

Last modified 7 years ago

#5412 closed Bugs (fixed)

XML formatter in test library processes strings with subsequences ']]>' incorrectly

Reported by: Hsilgos@… Owned by: Gennadiy Rozental
Milestone: Boost 1.59.0 Component: test
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

I test my xml paser and use boost's test library for this. Also i want to have output during testing in xml format. This is my test code:

BOOST_CHECK_EQUAL(parseCData("Some comment]]>"), "Some comment");

xml_log_formatter in boost's test library makes next output:

<Error file="file.cpp" line="123"><![CDATA[parseCData("Some comment]]>") == "Some comment" failed [...] ]]></Error>

But it must be

<Error file="file.cpp" line="123"><![CDATA[parseCData("Some comment]]><![CDATA[>") == "Some comment" failed [...] ]]></Error>

I.e. library doesn't escape subsequences ']]>'.

Change History (2)

comment:1 by Gennadiy Rozental, 11 years ago

Resolution: fixed
Status: newclosed

(In [75003]) escape CDATA section end within CDATA section Fixes #5412

comment:2 by Raffi Enficiaud, 7 years ago

Milestone: To Be DeterminedBoost 1.59.0
Note: See TracTickets for help on using tickets.