In forward slice, how to handle STORE
Pcode whose target is the global variable area?
#6603
Unanswered
Kalvin2077
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm writing a headless script about forward slice, but it doesn't handle global variables very well.
These codes are from GUI ghidra. I noticed the symbol (
line
) of the destination (global variable) has been shown. If I double-click theline
, the listing view can jump to the address ofline
.I thought I could use related methods to find ram varnode about global variable by symbol. Then I tried to get symbols for each inputs varnode, but I got the following logs:
I guess there is some pre-processing in GUI Ghidra, maybe backforward slice, to infer the symbol
line
.I have tried to find it in source code, but I have no direction.
Or should I manually implement a backward slice to find the ram varnode of the global variable?
This is a screenshot of the GUI Ghidra:
![ok](https://private-user-images.githubusercontent.com/114283763/335156264-53dadb82-bb7b-4210-a002-ef0c82fc129d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1OTQyOTIsIm5iZiI6MTcyMDU5Mzk5MiwicGF0aCI6Ii8xMTQyODM3NjMvMzM1MTU2MjY0LTUzZGFkYjgyLWJiN2ItNDIxMC1hMDAyLWVmMGM4MmZjMTI5ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMFQwNjQ2MzJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNTdkOGJjMmQ1YTljYTQ4MmM4OGZkODkwMzczNmIxMDUzYjQwNDkyNWJkYTE1ZTA4ZjBhZWFmNGRlZjk3NzljJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.mxZU5OKLZywi0b_Dlg5t4s-6uRpZg5yguzWAHbxZcaM)
Beta Was this translation helpful? Give feedback.
All reactions