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
Given a function (HighFunction) and one of its local variables, how can I, using the API, figure out if that variable is dereferenced in that function?
Because I couldnt find anything regarding that, what I did was iterate over the Pcode instructions, check if its a LOAD or STORE instruction and then checked if a storage varnode of said variable serves as relevant input. This worked fine until I tried some functions with double dereferenciation (i.e. var[i][j]).
Is there some functionality to the API that I missed?
This discussion was converted from issue #2802 on March 21, 2023 14:48.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Given a function (HighFunction) and one of its local variables, how can I, using the API, figure out if that variable is dereferenced in that function?
Because I couldnt find anything regarding that, what I did was iterate over the Pcode instructions, check if its a LOAD or STORE instruction and then checked if a storage varnode of said variable serves as relevant input. This worked fine until I tried some functions with double dereferenciation (i.e. var[i][j]).
Is there some functionality to the API that I missed?
Beta Was this translation helpful? Give feedback.
All reactions