mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-2486_HexStack
This commit is contained in:
parent
9408479d75
commit
d094cdf091
5 changed files with 12 additions and 12 deletions
|
@ -482,7 +482,7 @@ string ScopeLocal::buildVariableName(const Address &addr,
|
|||
s << 'Y'; // Indicate unusual region of stack
|
||||
}
|
||||
}
|
||||
s << dec << start;
|
||||
s << '_' << hex << start;
|
||||
return makeNameUnique(s.str());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -122,9 +122,9 @@ e88b008d50fd488b45f08910905dc3
|
|||
</script>
|
||||
<stringmatch name="Intermediate pointers #1" min="1" max="1">argv\[\(int8\)a \+ 1\] = "Hello";</stringmatch>
|
||||
<stringmatch name="Intermediate pointers #2" min="1" max="1">argv\[\(int8\)a \+ 2\] = "Goodbye";</stringmatch>
|
||||
<stringmatch name="Intermediate pointers #3" min="1" max="1">aStack168\.arr1\[a\] = aStack168\.arr1\[a\] >> 3 & 0xf;</stringmatch>
|
||||
<stringmatch name="Intermediate pointers #3" min="1" max="1">aStack_a8\.arr1\[a\] = aStack_a8\.arr1\[a\] >> 3 & 0xf;</stringmatch>
|
||||
<stringmatch name="Intermediate pointers #4" min="1" max="1">ptr->arr1\[a\] = ptr->arr1\[a\] >> 3 & 0xf;</stringmatch>
|
||||
<stringmatch name="Intermediate pointers #5" min="1" max="1">aaStack1400\[\(int8\)a \+ 1\]\.arr1\[7\] = aaStack1400\[a\]\.arr1\[7\] \+ 0x25;</stringmatch>
|
||||
<stringmatch name="Intermediate pointers #5" min="1" max="1">aaStack_578\[\(int8\)a \+ 1\]\.arr1\[7\] = aaStack_578\[a\]\.arr1\[7\] \+ 0x25;</stringmatch>
|
||||
<stringmatch name="Intermediate pointers #6" min="1" max="1">ptr->arr1\[a\] = 7;</stringmatch>
|
||||
<stringmatch name="Intermediate pointers #7" min="1" max="1">ptr->arr2\[a\] = 0x6f;</stringmatch>
|
||||
<stringmatch name="Intermediate pointers #8" min="1" max="1">ptr->arr1\[a\]\.d = 0x1e;</stringmatch>
|
||||
|
|
|
@ -24,7 +24,7 @@ ebce000000000000488d7c2404c64424
|
|||
<com>print C</com>
|
||||
<com>quit</com>
|
||||
</script>
|
||||
<stringmatch name="Multi-size return #1" min="1" max="1">Stack20 = CONCAT31.*0x61</stringmatch>
|
||||
<stringmatch name="Multi-size return #2" min="1" max="1">Stack20 = CONCAT22.*0x3e9</stringmatch>
|
||||
<stringmatch name="Multi-size return #3" min="1" max="1">Stack20 = param_1</stringmatch>
|
||||
<stringmatch name="Multi-size return #1" min="1" max="1">Stack_14 = CONCAT31.*0x61</stringmatch>
|
||||
<stringmatch name="Multi-size return #2" min="1" max="1">Stack_14 = CONCAT22.*0x3e9</stringmatch>
|
||||
<stringmatch name="Multi-size return #3" min="1" max="1">Stack_14 = param_1</stringmatch>
|
||||
</decompilertest>
|
||||
|
|
|
@ -31,10 +31,10 @@ f30f104df0f30f58c1f30f1145f04883
|
|||
<com>parse line extern int4 process_array(mystruct *ptr,int4 count);</com>
|
||||
<com>lo fu process_array</com>
|
||||
<com>dec</com>
|
||||
<com>retype piStack16 myptroff ptrrel</com>
|
||||
<com>rename iStack20 i</com>
|
||||
<com>rename fStack24 fSum</com>
|
||||
<com>rename iStack28 iSum</com>
|
||||
<com>retype piStack_10 myptroff ptrrel</com>
|
||||
<com>rename iStack_14 i</com>
|
||||
<com>rename fStack_18 fSum</com>
|
||||
<com>rename iStack_1c iSum</com>
|
||||
<com>dec</com>
|
||||
<com>print C</com>
|
||||
<com>quit</com>
|
||||
|
|
|
@ -26,7 +26,7 @@ f85dc3
|
|||
<com>print C</com>
|
||||
<com>quit</com>
|
||||
</script>
|
||||
<stringmatch name="Three dimension #1" min="1" max="1">iStack16 = myarray\[globindex\]\[iStack12\]\[valin\];</stringmatch>
|
||||
<stringmatch name="Three dimension #2" min="1" max="1">myarray\[globindex\]\[iStack12\]\[valout\] = iStack16;</stringmatch>
|
||||
<stringmatch name="Three dimension #1" min="1" max="1">iStack_10 = myarray\[globindex\]\[iStack_c\]\[valin\];</stringmatch>
|
||||
<stringmatch name="Three dimension #2" min="1" max="1">myarray\[globindex\]\[iStack_c\]\[valout\] = iStack_10;</stringmatch>
|
||||
<stringmatch name="Three dimension #3" min="0" max="0"> \* </stringmatch>
|
||||
</decompilertest>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue