You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 28, 2025. It is now read-only.
I am targeting the Android platform and when building my library against funchook, it works fine without tests (and I can successfully hook functions) but fails when enabled with the following:
[ 89%] Building C object third_party/funchook/test/CMakeFiles/funchook_test_static.dir/test_main.c.o
third_party/funchook/test/test_main.c:445:52: error: address of overloaded function'open' is ambiguous
open_func = (int (*)(const char*, int, mode_t))open;
^~~~
/usr/include/bits/fortify/fcntl.h:74:5: note: candidate address cannot be taken because candidate address cannot be taken because parameter 1 has pass_object_size attribute
int open(const char* const __pass_object_size pathname, int flags, mode_t modes)
^
/usr/include/bits/fortify/fcntl.h:63:5: note: candidate address cannot be taken because candidate address cannot be taken because parameter 1 has pass_object_size attribute
int open(const char* const __pass_object_size pathname, int flags)```
I am targeting the Android platform and when building my library against funchook, it works fine without tests (and I can successfully hook functions) but fails when enabled with the following: