Skip to content

Commit

Permalink
core: using math.MaxUint64 instead of 0xffffffffffffffff (ethereum#29094
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cuiweixie authored Feb 28, 2024
1 parent 57d2b55 commit 02d77c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/instructions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 02d77c9

Please sign in to comment.