Skip to content

Latest commit

 

History

History
16 lines (16 loc) · 696 Bytes

File metadata and controls

16 lines (16 loc) · 696 Bytes

Copying an empty byte array (or string) from memory or calldata to storage can result in data corruption if the target array's length is increased subsequently without storing new data. This is due to a compiler bug fixed in v0.7.4. (see here)


Slide Screenshot

091.jpg


Slide Text

  • Empty Byte Array Copy
  • Memory/Calldata -> Storage
  • Increase Length -> No New Data -> Corruption
  • Compiler Bug Fixed 0.7.4

References


Tags