mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GP-3632 Corrected pointer and array replacement issues
This commit is contained in:
parent
2d9a1ac539
commit
b0b813edf9
2 changed files with 2 additions and 2 deletions
|
@ -282,7 +282,7 @@ class ArrayDB extends DataTypeDB implements Array {
|
|||
new ArrayDataType(newDt, getNumElements(), newElementLength, dataMgr);
|
||||
DataType existingArray =
|
||||
dataMgr.getDataType(newDt.getCategoryPath(), newArray.getName());
|
||||
if (existingArray != null) {
|
||||
if (existingArray != null && existingArray != this) {
|
||||
// avoid duplicate array - replace this array with existing one
|
||||
dataMgr.addDataTypeToReplace(this, existingArray);
|
||||
return;
|
||||
|
|
|
@ -367,7 +367,7 @@ class PointerDB extends DataTypeDB implements Pointer {
|
|||
hasLanguageDependantLength() ? -1 : getLength(), dataMgr);
|
||||
DataType existingPtr =
|
||||
dataMgr.getDataType(newDt.getCategoryPath(), newPtr.getName());
|
||||
if (existingPtr != null) {
|
||||
if (existingPtr != null && existingPtr != this) {
|
||||
// avoid duplicate pointer - replace this pointer with existing one
|
||||
dataMgr.addDataTypeToReplace(this, existingPtr);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue