mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-21 15:50:07 +01:00
Add constant for maximum stack size
This commit is contained in:
@@ -1028,7 +1028,7 @@ bool EvalScript(std::vector<std::vector<unsigned char> >& stack, const CScript&
|
||||
}
|
||||
|
||||
// Size limits
|
||||
if (stack.size() + altstack.size() > 1000)
|
||||
if (stack.size() + altstack.size() > MAX_STACK_SIZE)
|
||||
return set_error(serror, SCRIPT_ERR_STACK_SIZE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user