Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: too few arguments to function 'ptrace' #81

Open
ghost opened this issue Oct 25, 2017 · 1 comment
Open

error: too few arguments to function 'ptrace' #81

ghost opened this issue Oct 25, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 25, 2017

hampo@hampo-virtual-machine:/Desktop/CVE-2016-5195-master$ make
ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk APP_ABI=armeabi-v7a APP_PLATFORM=android-21
make[1]: Entering directory /home/hampo/Desktop/CVE-2016-5195-master' [armeabi-v7a] Compile thumb : dirtycow <= dirtycow.c ./dirtycow.c: In function 'ptrace_memcpy': ./dirtycow.c:111:3: warning: passing argument 4 of 'ptrace' makes pointer from integer without a cast [enabled by default] /usr/share/android-ndk-r10/platforms/android-19/arch-arm/usr/include/sys/ptrace.h:41:13: note: expected 'void *' but argument is of type 'long unsigned int' ./dirtycow.c:132:3: warning: passing argument 4 of 'ptrace' makes pointer from integer without a cast [enabled by default] /usr/share/android-ndk-r10/platforms/android-19/arch-arm/usr/include/sys/ptrace.h:41:13: note: expected 'void *' but argument is of type 'long unsigned int' ./dirtycow.c: In function 'exploit': ./dirtycow.c:217:4: error: too few arguments to function 'ptrace' /usr/share/android-ndk-r10/platforms/android-19/arch-arm/usr/include/sys/ptrace.h:41:13: note: declared here make[1]: *** [obj/local/armeabi-v7a/objs/dirtycow/dirtycow.o] Error 1 make[1]: Leaving directory /home/hampo/Desktop/CVE-2016-5195-master'
make: *** [build] Error 2
hampo@hampo-virtual-machine:
/Desktop/CVE-2016-5195-master$

How to solve this problem?

@timwr
Copy link
Owner

timwr commented Oct 25, 2017

Not sure.. off the top of my head maybe you need to use a more recent ndk? perhaps ndk-r13?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant