-
Notifications
You must be signed in to change notification settings - Fork 996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: convert_library_call is buggy and doesn't convert high level call/ set function properly #1286
Labels
bug
Something isn't working
Comments
Here, slither/slither/slithir/convert.py Lines 529 to 532 in ce9dbf6
Thus, the high level call is not converted to a library call and the function attribute is not set, producing the following incorrect IR:
EDIT: |
pull bot
pushed a commit
to bbhunter/slither
that referenced
this issue
Aug 17, 2022
Fixes crytic#1286 IR generated after this PR ``` Contract Setter Function Setter.set(uint256[1],uint256,uint256) (*) Expression: self[key] = value IRs: REF_0(uint256) -> self[key] REF_0 (->self) := value(uint256) Contract SetterTest Function SetterTest.f(uint256,uint256) (*) Expression: params.set(key,value) IRs: LIBRARY_CALL, dest:Setter, function:Setter.set(uint256[1],uint256,uint256), arguments:['params', 'key', 'value'] ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue:
Slither with
slither . --print echidna
throws this error when the contract uses a library with fixed sized arrays.Code example to reproduce the issue:
Version:
Relevant log output:
The text was updated successfully, but these errors were encountered: