Boost C++ Libraries: Ticket #2856: Rapid XML 1.12 doesn't handle zero-length strings correctly https://svn.boost.org/trac10/ticket/2856 <p> [My patch, copied from sourceforge.] </p> <p> Rapid XML 1.12 interprets a zero, when specified as a string's length, as indicating that the string is a C-string &amp; its length should be calculated appropriately. This makes it difficult to add variable length data where it may have zero length, but isn't necessarily a C-string. This may have also introduced hidden bugs into users code. Zero is a valid length for data &amp; should be interpreted literally. </p> <p> The attached patch defines a new constant <code>auto_size</code> to use instead of <code>0</code> and modifies code appropriately. Note: The change was sufficient for my usage. It probably requires some further work to update every occurrence. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2856 Trac 1.4.3 Chris Sat, 14 Mar 2009 15:12:47 GMT attachment set https://svn.boost.org/trac10/ticket/2856 https://svn.boost.org/trac10/ticket/2856 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">rapidxml.hpp.diff2</span> </li> </ul> <p> Initial patch to handle zero-length strings. </p> Ticket Chris Tue, 19 May 2009 23:44:27 GMT milestone changed https://svn.boost.org/trac10/ticket/2856#comment:1 https://svn.boost.org/trac10/ticket/2856#comment:1 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.39.0</span> → <span class="trac-field-new">Boost 1.40.0</span> </li> </ul> Ticket mloskot <mateusz@…> Sat, 03 Oct 2009 21:34:59 GMT cc set https://svn.boost.org/trac10/ticket/2856#comment:2 https://svn.boost.org/trac10/ticket/2856#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">mateusz@…</span> added </li> </ul> Ticket Sebastian Redl Sun, 04 Oct 2009 12:10:42 GMT owner, status changed https://svn.boost.org/trac10/ticket/2856#comment:3 https://svn.boost.org/trac10/ticket/2856#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">kaalus</span> to <span class="trac-author">Sebastian Redl</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Sebastian Redl Fri, 18 Feb 2011 16:20:18 GMT <link>https://svn.boost.org/trac10/ticket/2856#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2856#comment:4</guid> <description> <p> RapidXML is an implementation detail. Why would I care about its suitability for the end user? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Fri, 18 Feb 2011 16:20:35 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2856#comment:5 https://svn.boost.org/trac10/ticket/2856#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> Ticket