mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
core/vm: check for returnStack overflow in opCallf
This commit is contained in:
parent
3d8ca3c526
commit
b2ae97892d
1 changed files with 1 additions and 1 deletions
|
|
@ -823,7 +823,7 @@ func opCallf(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]by
|
||||||
if scope.Stack.len()+int(typ.MaxStackHeight) >= 1024 {
|
if scope.Stack.len()+int(typ.MaxStackHeight) >= 1024 {
|
||||||
return nil, fmt.Errorf("stack overflow")
|
return nil, fmt.Errorf("stack overflow")
|
||||||
}
|
}
|
||||||
if len(scope.ReturnStack) >= 1024 {
|
if len(scope.ReturnStack) > 1024 {
|
||||||
return nil, fmt.Errorf("return stack overflow")
|
return nil, fmt.Errorf("return stack overflow")
|
||||||
}
|
}
|
||||||
retCtx := &ReturnContext{
|
retCtx := &ReturnContext{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue