fix(ghidra): reject address names owned by another symbol
Check function and label ownership in the existing namespace before renaming. Keep same-address renames idempotent and reject duplicate batch members inside their individual transactions. Extend real-provider namespace checks for single and batch collisions without conflating function and label fixture names. Validation: real Ghidra 12.1.4 host-native verification passed on macOS ARM64 with JDK 21.0.12.1, including public CLI/stdIO MCP, qualified-name round trips, rollback, source-byte immutability, and complete cleanup. Windows mutation authority remains unchanged. Fixes #1649
This commit is contained in:
@@ -10,6 +10,17 @@ volatile int rea_namespace_alpha_value
|
||||
volatile int rea_namespace_nested_value
|
||||
__asm__(REA_CPP_SYMBOL("_ZN5outer5inner5valueE")) = 1;
|
||||
|
||||
volatile int rea_duplicate_label_a = 3;
|
||||
volatile int rea_duplicate_label_b = 4;
|
||||
|
||||
__attribute__((noinline, used)) int rea_duplicate_function_a(int value) {
|
||||
return value + 1;
|
||||
}
|
||||
|
||||
__attribute__((noinline, used)) int rea_duplicate_function_b(int value) {
|
||||
return value + 2;
|
||||
}
|
||||
|
||||
__attribute__((noinline, used)) int rea_namespace_alpha(int value)
|
||||
__asm__(REA_CPP_SYMBOL("_ZN5alpha4sameEi"));
|
||||
__attribute__((noinline, used)) int rea_namespace_beta(int value)
|
||||
|
||||
Reference in New Issue
Block a user