diff options
author | aflpp <aflpp@aflplus.plus> | 2021-01-31 17:29:37 +0100 |
---|---|---|
committer | aflpp <aflpp@aflplus.plus> | 2021-01-31 17:29:37 +0100 |
commit | e5116c6d55185177413104cad1232ca64e04b844 (patch) | |
tree | b374b03fb887ecd12aa98c7e1b05120bad8dc2e4 /utils/libtokencap/libtokencap.so.c | |
parent | 9d08f0d098c91e69b5fe41674e4c5d05363af604 (diff) | |
download | afl++-e5116c6d55185177413104cad1232ca64e04b844.tar.gz |
fix -Z, remove q->next
Diffstat (limited to 'utils/libtokencap/libtokencap.so.c')
-rw-r--r-- | utils/libtokencap/libtokencap.so.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/libtokencap/libtokencap.so.c b/utils/libtokencap/libtokencap.so.c index 3629e804..26033b46 100644 --- a/utils/libtokencap/libtokencap.so.c +++ b/utils/libtokencap/libtokencap.so.c @@ -161,8 +161,8 @@ static void __tokencap_load_mappings(void) { #elif defined __FreeBSD__ || defined __OpenBSD__ || defined __NetBSD__ - #if defined __FreeBSD__ - int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_VMMAP, __tokencap_pid}; + #if defined __FreeBSD__ + int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_VMMAP, __tokencap_pid}; #elif defined __OpenBSD__ int mib[] = {CTL_KERN, KERN_PROC_VMMAP, __tokencap_pid}; #elif defined __NetBSD__ @@ -177,7 +177,7 @@ static void __tokencap_load_mappings(void) { #if defined __FreeBSD__ || defined __NetBSD__ len = len * 4 / 3; - #elif defined __OpenBSD__ + #elif defined __OpenBSD__ len -= len % sizeof(struct kinfo_vmentry); #endif @@ -202,8 +202,8 @@ static void __tokencap_load_mappings(void) { #if defined __FreeBSD__ || defined __NetBSD__ - #if defined __FreeBSD__ - size_t size = region->kve_structsize; + #if defined __FreeBSD__ + size_t size = region->kve_structsize; if (size == 0) break; #elif defined __NetBSD__ |