Opened 12 years ago
Closed 9 years ago
#5259 closed Bugs (invalid)
embedded nulls not processed parsed correctly from xml
| Reported by: | Owned by: | Sebastian Redl | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | property_tree | 
| Version: | Boost 1.46.0 | Severity: | Problem | 
| Keywords: | Cc: | 
Description
Embedded null in any value field of an xml file will result in a truncated string in the property_tree.
Attachments (1)
Change History (6)
by , 12 years ago
comment:2 by , 11 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
comment:3 by , 10 years ago
It is supposed that Ptree have constructor from std::basic_string (see property_tree/detail/xml_parser_read_rapidxml.hpp line 77), but it actually doesn't. We don't use boost::property_tree::ptree, we use our implementation of pree. BTW user can use boost::property_tree::basic_ptree from different types.
Please revert this fix!
comment:4 by , 10 years ago
| Resolution: | fixed | 
|---|---|
| Status: | closed → reopened | 
comment:5 by , 9 years ago
| Resolution: | → invalid | 
|---|---|
| Status: | reopened → closed | 
All the serializers only work with PTrees whose data type is std::basic_string. Anything different is just an accident.
This will be clarified with the doc update, and possibly changed eventually. But I have to figure out a good way of doing so.

a test file along with a test function and a patch file