Ticket #7745: text-iarchive-crash.patch

File text-iarchive-crash.patch, 678 bytes (added by ivagulin@…, 10 years ago)

attached patch fixes problem for me

  • boost/archive/impl/text_iarchive_impl.ipp

     
    3131BOOST_ARCHIVE_DECL(void)
    3232text_iarchive_impl<Archive>::load(char *s)
    3333{
    34     std::size_t size;
     34    std::size_t size = 0;
    3535    * this->This() >> size;
    3636    // skip separating space
    3737    is.get();
     
    4444BOOST_ARCHIVE_DECL(void)
    4545text_iarchive_impl<Archive>::load(std::string &s)
    4646{
    47     std::size_t size;
     47    std::size_t size = 0;
    4848    * this->This() >> size;
    4949    // skip separating space
    5050    is.get();