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);
|
||||
} else if (type == REPORT_ERROR || type == REPORT_INFO) {
|
||||
ErrorMessage msg;
|
||||
try {
|
||||
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())) {
|
||||
// Alert only about unique errors
|
||||
|
|
|
@ -1803,7 +1803,7 @@ void CheckCondition::checkCompareValueOutOfTypeRange()
|
|||
break;
|
||||
default:
|
||||
break;
|
||||
};
|
||||
}
|
||||
if (bits == 0 || bits >= 64)
|
||||
continue;
|
||||
|
||||
|
|
|
@ -998,7 +998,7 @@ void SymbolDatabase::createSymbolDatabaseVariableSymbolTable()
|
|||
|
||||
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(bodyEnd);
|
||||
|
||||
|
|
Loading…
Reference in New Issue