forked from Mirrors/openclonk
Script: Crash when parsing a function call with more than ten parameters
parent
a3ec7b5ae2
commit
c667de49b5
|
@ -1999,7 +1999,7 @@ int C4AulParseState::Parse_Params(int iMaxCnt, const char * sWarn, C4AulFunc * p
|
|||
{
|
||||
// get a parameter
|
||||
Parse_Expression();
|
||||
if (pFunc && (Type == PARSER))
|
||||
if (pFunc && (Type == PARSER) && size < iMaxCnt)
|
||||
{
|
||||
C4V_Type to = pFunc->GetParType()[size];
|
||||
// pFunc either was the return value from a GetFirstFunc-Call or
|
||||
|
|
Loading…
Reference in New Issue