aboutsummaryrefslogtreecommitdiff
path: root/include/android-ashmem.h
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-11-17 11:49:07 +0100
committerGitHub <noreply@github.com>2019-11-17 11:49:07 +0100
commitc8d94e88a7f2e65a068cfdd4ea07c437dafdfa38 (patch)
tree910c078b4133cd2a6696ad1225bacf64f48a035a /include/android-ashmem.h
parenta8f6ce5475fc369deea40ac566eb56183f5450ba (diff)
parentf3a23e51fabf14f2bac1be26d1f55817c37e02a4 (diff)
downloadAFLplusplus-c8d94e88a7f2e65a068cfdd4ea07c437dafdfa38.tar.gz
Merge pull request #109 from hac425xxx/qbdi_mode
Qbdi mode
Diffstat (limited to 'include/android-ashmem.h')
-rwxr-xr-x[-rw-r--r--]include/android-ashmem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/android-ashmem.h b/include/android-ashmem.h
index 984df4d4..2d515cc5 100644..100755
--- a/include/android-ashmem.h
+++ b/include/android-ashmem.h
@@ -52,7 +52,7 @@ static inline int shmctl(int __shmid, int __cmd, struct shmid_ds *__buf) {
if (__cmd == IPC_RMID) {
int length = ioctl(__shmid, ASHMEM_GET_SIZE, NULL);
- struct ashmem_pin pin = {0, length};
+ struct ashmem_pin pin = {0, (unsigned int)length};
ret = ioctl(__shmid, ASHMEM_UNPIN, &pin);
close(__shmid);