Merge pull request #193 from bitshares/fix-exception-to-string

Fix potential infinity loop in `exception::to_detail_string()`
This commit is contained in:
Abit 2020-03-30 15:42:58 +02:00 committed by GitHub
commit 3a2902e3c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,12 +205,12 @@ namespace fc
ss << "ERROR: Failed to convert log data to string!\n";
}
ss << " " << itr->get_context().to_string();
++itr;
} catch( std::bad_alloc& ) {
throw;
} catch( ... ) {
ss << "<- exception in to_detail_string.";
}
++itr;
if( itr != my->_elog.end() ) ss<<"\n";
}
} catch( std::bad_alloc& ) {