Skip to contentSkip to conversation

dirtyc0w: Include stdint.h

PATCH New Khem Raj 2 participants 2 messages Jun 9, 2017 – Jun 13, 2017

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 dirtyc0w: Include stdint.h

uintptr_t is defined in stdint.h

Fixes

| dirtyc0w_child.c:76:15: error: 'uintptr_t' undeclared (first use in this function); did you mean 'intptr_t'?
|    lseek(mfd, (uintptr_t) map, SEEK_SET);
|                ^~~~~~~~~
---
 testcases/kernel/security/dirtyc0w/dirtyc0w_child.c | 1 +
 1 file changed, 1 insertion(+)
testcases/kernel/security/dirtyc0w/dirtyc0w_child.c +1 -0
index 5328a9bc4..49abdd6ba 100644
@@ -23,6 +23,7 @@
 #include <sys/stat.h>
 #include <string.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <pwd.h>
 
 #include "tst_safe_pthread.h"
Signature · 1 line
2.13.1
#1 lore raw

PATCH 1/1 dirtyc0w: Include stdint.h

----- Original Message -----

Quoted 7 lines

uintptr_t is defined in stdint.h

Fixes

| dirtyc0w_child.c:76:15: error: 'uintptr_t' undeclared (first use in this
| function); did you mean 'intptr_t'?
|    lseek(mfd, (uintptr_t) map, SEEK_SET);
|                ^~~~~~~~~

Pushed.

Thanks,
Jan