You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If applicable, provide a small example. If not, delete this section.
🤦 Bad:
unit[] public array;
function _requireLength(unit[] memory_array) internalpure {
// The memory keyword leads to SLOADing the entire array into memory, i.e. creates hidden, unbounded loop.require(_array.length>0, "Empty array");
}
🚀 Good:
unit[] public array;
function _requireLength(unit[] storage_array) internalpure {
// No hidden loop.require(_array.length>0, "Empty array");
}
Hidden unbounded loop in function call due to storage to memory copy
Severity
Which severity would you assign to this Issue?
Description
See https://twitter.com/danielvf/status/1519381832592199681.
Example
If applicable, provide a small example. If not, delete this section.
🤦 Bad:
🚀 Good:
Background Information
See https://twitter.com/danielvf/status/1519381832592199681.
Code4Rena Report/Issue Link
TODO: Not found yet
The text was updated successfully, but these errors were encountered: