HideLeak(const AStack: UnicodeString) Invalid under 64bits

contains all delphi packages mentioned below
Post Reply
advwang
Posts: 11
Joined: Fri Mar 15, 2019 4:48 am

HideLeak(const AStack: UnicodeString) Invalid under 64bits

Post by advwang »

Hideleak doesn't work with 64 bits.

In 32 bits, you use EBP to find the address of the call to return the next instruction. That's right.
In 64 bit, you use the undocumented function RtlGetCallerAddress, but you get the wrong argument.
The first out pointer of this function is to return the address of the next instruction,
and the second argument is the address of the caller's caller.
You should use the first pointer instead of the second.

After the above modifications, hideleak works normally
madshi
Site Admin
Posts: 10527
Joined: Sun Mar 21, 2004 5:25 pm

Re: HideLeak(const AStack: UnicodeString) Invalid under 64bi

Post by madshi »

Thanks, not sure how that happened. Should be fixed in the next build.
Post Reply