Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2006-05-15 03:18:34


Bugs item #1488660, was opened at 2006-05-15 07:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1488660&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: serialization
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexey Bash (alexey-b)
Assigned to: Robert Ramey (ramey)
Summary: Bug in xml_oarchive_impl<Archive>::save(const std::string&)

Initial Comment:
Bug in file "boost/archive/impl/xml_oarchive_impl.ipp"
line 82 method:
template<class Archive>
BOOST_ARCHIVE_DECL(void)
xml_oarchive_impl<Archive>::save(const std::string & s
).
Second argument of call:
std::copy(
xml_escape_translator(BOOST_MAKE_PFTO_WRAPPER(s.data()
)),
xml_escape_translator(BOOST_MAKE_PFTO_WRAPPER(s.data()+
s.size())),
boost::archive::iterators::ostream_iterator<char>(os))
is wrong: in constructor of xml_escape_translator the
method
template<class Base>
char xml_escape<Base>::fill(
    const char * & bstart,
    const char * & bend) is called for after-last
symbol!!! If this symbol is, e.g., '>' - we have error:
iterators _First and _Last in call of std::copy (see
above) are always not equal (members 'm_bnext' and
'm_bend' are always non-zero and comparation of these
iterators in this case are return always 'false') and
we have access violation.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1488660&group_id=7586

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk