NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
49.06k stars 5.65k forks source link

HighFunction.getVarnodes(AddrSpace) does not return Varnodes with negative offsets #6652

Open sad-dev opened 1 week ago

sad-dev commented 1 week ago

Describe the bug As described in #6307 , the underlying VarnodeBank.locRange method used to compute the Varnodes in the AddressSpace uses 0 as a lower bound. This means that varnodes with negative offsets e.g. stack are not returned, as shown below (when clicking on a token corresponding to a stack address)

Screenshots image