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
slither reports uninitialized-local for StructType memory structVar in this case.
a useful addition would be to check for each struct field whether it is assigned below before it is read.
alternatively this detector could detect that locals (and storage variables) are initialized before they are read instead of checking that they are initialized in the line they are defined.
this should result in catching all dangerous unintended reads from uninitialized variables while producing less noise.
when handling structs it could treat each field separately.
the same could be done for uninitialized-state.
The text was updated successfully, but these errors were encountered:
given
StructType
a common pattern is:slither reports
uninitialized-local
forStructType memory structVar
in this case.a useful addition would be to check for each struct field whether it is assigned below before it is read.
alternatively this detector could detect that locals (and storage variables) are initialized before they are read instead of checking that they are initialized in the line they are defined.
this should result in catching all dangerous unintended reads from uninitialized variables while producing less noise.
when handling structs it could treat each field separately.
the same could be done for
uninitialized-state
.The text was updated successfully, but these errors were encountered: