AndHook icon indicating copy to clipboard operation
AndHook copied to clipboard

Crash app when hook function read()

Open devjava81 opened this issue 6 years ago • 1 comments

My hook code:

static ssize_t (*sys_read)(int _fd, void * s, size_t _count); static ssize_t my_read(int _fd, void * s, size_t _count) { if(strstr((char*)s,"equastring")!=NULL){ strcpy(s, newString); } ssize_t ret = sys_read(_fd, s, _count); AKLog("my_read: %s", s); return ret; } On Load AKHookFunction(reinterpret_cast<void *>(read), reinterpret_cast<void *>(my_read), reinterpret_cast<void **>(&sys_read)); What wrong ?

devjava81 avatar Sep 18 '18 18:09 devjava81

Have you solved this?

hariharan-m avatar Nov 02 '18 21:11 hariharan-m