jmpews / Dobby

a lightweight, multi-platform, multi-architecture hook framework.
Apache License 2.0
3.89k stars 798 forks source link

DobbyHook hook exit(0) Crash #137

Closed codesourse closed 3 years ago

codesourse commented 3 years ago

hook puts 等函数或者自定义c 函数都不会crash ,但是hook exit 或者 abort 都会报这个crash

void (*exit_p)(int a);

void myexit(int a){ NSLog(@"xxxxxx%d",a); }

jmpews commented 3 years ago

hook exit 发生 crash 是理所当然的