0

I am reverse engineering a program using IDA Pro Free 5. In one of the functions, the compiler has reused the stack space of one of the passed in arguments as a local variable of a different type, but the same size.

Is there a way to rename a stack variable part of the way through a function? At the moment, I'm using a manual operand, but its not optimal.

1 Answer 1

2

As far as I know this is not even possible in IDA 6.9 yet, and definitely not possible in IDA 5.

When encountering such cases (which are quite frequent with certain compilers), I often find it the easiest to give such variables a name that denotes them as having two different purposes shared on the same stack address.

1
  • 1
    Well, that's a pain. I was thinking of working around with SP diff, but that's messier. I guess I could use your naming and a union to show which context is being used. May 5, 2017 at 0:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.