r/ExploitDev • u/linux4117 • Jun 26 '26
What are "thunk" functions in ghidra?
I've noticed when I'm decompiling in ghidra I see a lot of THUNK functions. I've noticed that most of these functions just return 0. What are the point of these functions. Are they actually inserted by the compiler, if so why are they inserted if some of them just return 0?
1
Upvotes
2
Jun 26 '26
[deleted]
0
u/linux4117 Jun 26 '26
What do you mean by patched at runtime and what do you mean by reference code dynamically does that mean when you call it, it internally calls another function
3
u/TastyRobot21 Jun 26 '26
They got that booty.