Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooking inline function #303

Open
djn3m0 opened this issue Oct 25, 2023 · 1 comment
Open

Hooking inline function #303

djn3m0 opened this issue Oct 25, 2023 · 1 comment
Labels

Comments

@djn3m0
Copy link

djn3m0 commented Oct 25, 2023

Hello,

I want to hook a function that in the C source code it is indeed a function, but when compiled it is inlined by compiler optimizations.
What are my options to hook this function?

Thanks

@NoMoreFood
Copy link

I know this is old, but this is an easy one to respond to. You cannot detour an inlined function. At a simple level, an inlined function is pretty much just copying and pasting the code into where the function is called. Is has no signature that you can hook into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants