mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-31 14:20:11 +08:00
GP-6008 Corrected regression bug for VT function stringable Imported
priority check
This commit is contained in:
+5
-3
@@ -996,10 +996,12 @@ public class FunctionSignatureStringable extends Stringable {
|
|||||||
if (first == second) {
|
if (first == second) {
|
||||||
return replaceSamePriorityNames;
|
return replaceSamePriorityNames;
|
||||||
}
|
}
|
||||||
// NOTE: If a new SourceType is added with a priority in between IMPORTED and USER_DEFINED
|
// Force IMPORTED to have highest priority
|
||||||
// VT and this code will need to change.
|
|
||||||
if (first == SourceType.IMPORTED) {
|
if (first == SourceType.IMPORTED) {
|
||||||
return true; // IMPORTED is highest priority
|
return true;
|
||||||
|
}
|
||||||
|
else if (second == SourceType.IMPORTED) {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return first.isHigherPriorityThan(second);
|
return first.isHigherPriorityThan(second);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user