Handle PAC related to instructions and access to x18 register on arm64 #6148
Labels
Arch: ARM/Thumb
Issues with the ARM/Thumb architecture plugin
Component: Architecture
Issue needs changes to an architecture plugin
Effort: Medium
Issue should take < 1 month
Impact: Low
Issue is a papercut or has a good, supported workaround
Type: Enhancement
Issue is a small enhancement to existing functionality
Bug Description:
in Pseudo C code, when we are calculating the number of arguments, we treat the following reg of x18 as an argument:
Here is the code
I think it is not a special case in the specific function, I found it in many functions.
But to be honest, the real definition of this function is
And also, because this assemble instruction code locates before
paciasp
as this is a Pac instruction, I don't know whether I am right. as my personal sense, Pac is added by the compiler.
So, register of x18 is not designed by normal programmer, So, it is not the arguments of the original function.
As a comparation of Ida, we get the follow code
a little urgly but maybe the true result.
If we need the binary plz call me.
The text was updated successfully, but these errors were encountered: