core: using math.MaxUint64 instead of 0xffffffffffffffff (#29094)

pull/29150/head
cui 9 months ago committed by GitHub
parent 57d2b552c7
commit 02d77c98f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      core/vm/instructions.go

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

Loading…
Cancel
Save