mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-4023 corrected auto-reference creation within byte-mapped memory
block.
This commit is contained in:
parent
a9e7ad1da2
commit
3541425450
1 changed files with 1 additions and 6 deletions
|
@ -2094,13 +2094,8 @@ public class CodeManager implements ErrorHandler, ManagerDB {
|
||||||
* data.
|
* data.
|
||||||
*/
|
*/
|
||||||
private void addDataReferences(Data data, List<Address> longSegmentAddressList) {
|
private void addDataReferences(Data data, List<Address> longSegmentAddressList) {
|
||||||
Memory mem = program.getMemory();
|
|
||||||
MemoryBlock block = mem.getBlock(data.getAddress());
|
|
||||||
if (block == null || !block.isInitialized()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
DataType dt = data.getDataType();
|
DataType dt = data.getDataType();
|
||||||
if (Address.class.equals(dt.getValueClass(null))) {
|
if (Address.class.equals(dt.getValueClass(data))) {
|
||||||
Object obj = data.getValue();
|
Object obj = data.getValue();
|
||||||
if (obj instanceof Address) {
|
if (obj instanceof Address) {
|
||||||
// creates a reference unless the value is 0 or all f's
|
// creates a reference unless the value is 0 or all f's
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue