[Boost-bugs] [Boost C++ Libraries] #4245: encode_char_entities does not handle empty string properly (affects write_graphml)

Subject: [Boost-bugs] [Boost C++ Libraries] #4245: encode_char_entities does not handle empty string properly (affects write_graphml)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-05-20 15:55:29


#4245: encode_char_entities does not handle empty string properly (affects
write_graphml)
------------------------------------------------------------+---------------
 Reporter: Christopher Alfeld <alfeld@…> | Owner: cornedbee
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: property_tree
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: graph, write_graphml, xml |
------------------------------------------------------------+---------------
 The write_graphml function uses encode_char_entities from the
 property_tree::xml_parser. This latter function does not behave properly
 when passed an empty string.

 I fixed this by modifying encode_char_entities to work properly in the
 empty string case. I found this preferable to patching write_graphml to
 be aware of the limitation of encode_char_entities.

 Attached is a sample program that crashes on my system (Snow Leopard), the
 output and stack trace of that crash, and a patch to trunk r62110 which
 fixes the issue.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4245>
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:50:03 UTC