vmime icon indicating copy to clipboard operation
vmime copied to clipboard

Segfault on vs2014 using messageParser

Open fivethreeo opened this issue 10 years ago • 2 comments

Using the code below the program stops with without catching any error just get a a windows error that the program has stopped responding when parsing a large string (700k).

If I first pass it a small string (40k) and then pass it the large string it works and keeps working with large strings.

Running multithreaded statically linked on a async c++ http server using icu.

        vmime::utility::inputStreamAdapter is(request->content);
        vmime::string stringdata;
        vmime::utility::outputStreamStringAdapter os(stringdata);
        vmime::utility::bufferedStreamCopy(is , os);
        vmime::shared_ptr<vmime::message> msg = vmime::make_shared<vmime::message>();
        msg->parse(stringdata);       

        try
        {
            vmime::messageParser mp(msg);
        }
        catch(...)
       {
            cerr << boost::current_exception_diagnostic_information() << std::endl;
       }

fivethreeo avatar Oct 20 '15 19:10 fivethreeo

Seems to be a stale .lib closing

fivethreeo avatar Oct 21 '15 10:10 fivethreeo

Do you have any more info about the specific location of the segfault? I'm having what I think is a related issue.

Edit: Tracked down my issue, in I believe it was unrelated.

Mindful avatar Oct 28 '15 04:10 Mindful