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
L376(if self._is_autogenerated_code(offset, length, idx):) will cause UnboundLocalError: local variable 'offset' referenced before assignment if L367(if len(mapping) > 0 and len(mapping[0]) > 0:) is False.
The text was updated successfully, but these errors were encountered:
Hi @kabeor , That was intended as previous solc-mapping adhered to such convention starting with non-zero offset and only using "" when a previous offset exists, although I should have used a custom Exception in such scenario.
It could be a change in mapping from the recent solidity version. Can you point out the version of solidity where this bug pops up?
https://github.com/ConsenSys/mythril/blob/develop/mythril/solidity/soliditycontract.py#L368C18-L368C18
L376(
if self._is_autogenerated_code(offset, length, idx):
) will causeUnboundLocalError: local variable 'offset' referenced before assignment
if L367(if len(mapping) > 0 and len(mapping[0]) > 0:
) isFalse
.The text was updated successfully, but these errors were encountered: