prevent uncaught exception in ThreadExecutor::handleRead() (#3514)
This commit is contained in:
parent
921f5c1818
commit
ba777b54d1
|
@ -121,7 +121,12 @@ int ThreadExecutor::handleRead(int rpipe, unsigned int &result)
|
||||||
mErrorLogger.reportOut(buf);
|
mErrorLogger.reportOut(buf);
|
||||||
} else if (type == REPORT_ERROR || type == REPORT_INFO) {
|
} else if (type == REPORT_ERROR || type == REPORT_INFO) {
|
||||||
ErrorMessage msg;
|
ErrorMessage msg;
|
||||||
|
try {
|
||||||
msg.deserialize(buf);
|
msg.deserialize(buf);
|
||||||
|
} catch (const InternalError& e) {
|
||||||
|
std::cerr << "#### ThreadExecutor::handleRead error, internal error:" << e.errorMessage << std::endl;
|
||||||
|
std::exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
if (!mSettings.nomsg.isSuppressed(msg.toSuppressionsErrorMessage())) {
|
if (!mSettings.nomsg.isSuppressed(msg.toSuppressionsErrorMessage())) {
|
||||||
// Alert only about unique errors
|
// Alert only about unique errors
|
||||||
|
|
|
@ -1803,7 +1803,7 @@ void CheckCondition::checkCompareValueOutOfTypeRange()
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
if (bits == 0 || bits >= 64)
|
if (bits == 0 || bits >= 64)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
@ -998,7 +998,7 @@ void SymbolDatabase::createSymbolDatabaseVariableSymbolTable()
|
||||||
|
|
||||||
void SymbolDatabase::createSymbolDatabaseSetScopePointers()
|
void SymbolDatabase::createSymbolDatabaseSetScopePointers()
|
||||||
{
|
{
|
||||||
auto setScopePointers = [this](const Scope &scope, const Token *bodyStart, const Token *bodyEnd) {
|
auto setScopePointers = [](const Scope &scope, const Token *bodyStart, const Token *bodyEnd) {
|
||||||
assert(bodyStart);
|
assert(bodyStart);
|
||||||
assert(bodyEnd);
|
assert(bodyEnd);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue