Merge pull request #9030 from ethereum/issue-8923

Fix ICE when trying to decode too large static arrays
This commit is contained in:
chriseth
2020-05-27 11:45:39 +02:00
committed by GitHub
3 changed files with 21 additions and 0 deletions
+12
View File
@@ -193,6 +193,18 @@ TypePointers TypeChecker::typeCheckABIDecodeAndRetrieveReturnType(FunctionCall c
typeArgument->location(),
"Decoding type " + actualType->toString(false) + " not supported."
);
if (auto referenceType = dynamic_cast<ReferenceType const*>(actualType))
{
auto result = referenceType->validForLocation(referenceType->location());
if (!result)
m_errorReporter.typeError(
6118_error,
typeArgument->location(),
result.message()
);
}
components.push_back(actualType);
}
else