comex/inject_and_interpose — Issue #5: Cannot Hook the Callback functions?
Author: rtibdewal
Created: 2011-10-27 14:12:57+00:00
State: open

Hello there,

If you modify puts() in file testputs.c for using callback mechanism then function hooking does not work.

Below is the source code to test it.

#include
#include

int main() {

typeof(puts) *putting = puts;

while(1) {
putting("Hi!\n");
sleep(1);
}
}