Skip to content

SSA Operations using wrong variable for function args? #1682

Answered by montyly
bsamuels453 asked this question in Q&A
Discussion options

You must be logged in to vote

SlithIR has two representation, the SSA and the non-SSA one. So here if you use is_tained_ssa you should use slithir_ssa_operations. Most of our detectors don't actually direct use the SSA representation.

For completion, in practice, Slither uses even a third representation, which is a temp representation when converting Solidity to SlithIR.

However there seems to be an issue is the SSA index, where the function parameters start at the index 1, while they should start at the index zero. I created an issue to track this here: #1683

Replies: 3 comments

Comment options

bsamuels453
Feb 23, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bsamuels453
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants