Subject: [Boost-bugs] [Boost C++ Libraries] #2856: Rapid XML 1.12 doesn't handle zero-length strings correctly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-03-14 15:08:23
#2856: Rapid XML 1.12 doesn't handle zero-length strings correctly
-------------------------------------+--------------------------------------
Reporter: Chris | Owner: kaalus
Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: property_tree
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
[My patch, copied from sourceforge.]
Rapid XML 1.12 interprets a zero, when specified as a string's length, as
indicating that the string is a C-string & 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 & should be
interpreted literally.
The attached patch defines a new constant `auto_size` to use instead of
`0` and modifies code appropriately. Note: The change was sufficient for
my usage. It probably requires some further work to update every
occurrence.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2856> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC