This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Pre-Charge max size when contracts access storage #10508
Labels
I2-security
The client fails to follow expected, security-sensitive, behaviour.
Previously, we assumed that the size of a storage item can be accessed in constant time (not dependent on the item's size). However, this turns out to be untrue.
What we need to do every time we access a variable sized storage item:
This applies to:
This is also needed for #10301 because when reading the length of a storage value this requires the whole item to be included into the PoV.
The text was updated successfully, but these errors were encountered: