core: using math.MaxUint64 instead of 0xffffffffffffffff

This commit is contained in:
cuiweixie 2024-02-27 08:14:41 +08:00
parent 93c541ad56
commit 255a6aa048

View file

@ -305,7 +305,7 @@ func opCallDataCopy(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext
)
dataOffset64, overflow := dataOffset.Uint64WithOverflow()
if overflow {
dataOffset64 = 0xffffffffffffffff
dataOffset64 = math.MaxUint64
}
// These values are checked for overflow during gas cost calculation
memOffset64 := memOffset.Uint64()