fix(ghidra): reject names owned by another address

This commit is contained in:
N0zoM1z0
2026-10-10 23:18:07 +00:00
parent 8d3cfef753
commit 75881af7aa
5 changed files with 183 additions and 25 deletions
+10 -1
View File
@@ -9,6 +9,15 @@ volatile int rea_namespace_alpha_value
__asm__(REA_CPP_SYMBOL("_ZN5alpha5valueE")) = 3;
volatile int rea_namespace_nested_value
__asm__(REA_CPP_SYMBOL("_ZN5outer5inner5valueE")) = 1;
volatile int rea_name_data_first = 5;
volatile int rea_name_data_second = 9;
__attribute__((noinline, used)) int rea_name_first(int value) {
return value + rea_name_data_first;
}
__attribute__((noinline, used)) int rea_name_second(int value) {
return value + rea_name_data_second;
}
__attribute__((noinline, used)) int rea_namespace_alpha(int value)
__asm__(REA_CPP_SYMBOL("_ZN5alpha4sameEi"));
@@ -23,5 +32,5 @@ int rea_namespace_nested(int value) { return value - rea_namespace_nested_value;
int main(void) {
return rea_namespace_alpha(1) + rea_namespace_beta(2) +
rea_namespace_nested(3);
rea_namespace_nested(3) + rea_name_first(4) + rea_name_second(5);
}