mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-02 07:41:33 +08:00
GP-4023 corrected auto-reference creation within byte-mapped memory
block.
This commit is contained in:
+1
-6
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user