Skip to content

Commit

Permalink
Update EIP-5656: Move to Final
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
marioevz authored Mar 28, 2024
1 parent b04c576 commit 30fec79
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions EIPS/eip-5656.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ title: MCOPY - Memory copying instruction
description: An efficient EVM instruction for copying memory areas
author: Alex Beregszaszi (@axic), Paul Dworzanski (@poemm), Jared Wasinger (@jwasinger), Casey Detrio (@cdetrio), Pawel Bylica (@chfast), Charles Cooper (@charles-cooper)
discussions-to: https://ethereum-magicians.org/t/eip-5656-mcopy-instruction/10890
status: Last Call
last-call-deadline: 2024-02-20
status: Final
type: Standards Track
category: Core
created: 2021-02-01
Expand Down Expand Up @@ -165,11 +164,15 @@ pre (space at byte 8):
post:

```
0000010203040506 080000000000000000000000000000000000000000000000
0000010203040506 070000000000000000000000000000000000000000000000
```

gas used: 6

### Full test suite

A full suite of tests can be found in the execution spec tests: [MCOPY suite](https://github.com/ethereum/execution-spec-tests/tree/c0065176a79f89d93f4c326186fc257ec5b8d5f1/tests/cancun/eip5656_mcopy).

## Security Considerations

Clients should take care that their implementation does not use an intermediate buffer (see for instance that the C stdlib `memmove` function does not use an intermediate buffer), as this is a potential Denial of Service (DoS) vector. Most language builtins / standard library functions for moving bytes have the correct performance characteristics here.
Expand Down

0 comments on commit 30fec79

Please sign in to comment.