vmime
vmime copied to clipboard
Segfault on vs2014 using messageParser
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;
}
Seems to be a stale .lib closing
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.