diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-06-25 17:13:16 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-06-25 17:13:16 +0200 |
commit | 3a62bb68e0867ceb920761bc19c96f5ca1992003 (patch) | |
tree | 2f403d0b9911002f4b5d8c2edd09a6b1117c93d1 /libtokencap | |
parent | aad433e11efa4a8350a264313c66db8ef6d17088 (diff) | |
parent | 8178f4dfddfb51f7a3e2f94e67bb9cf7332c7ef1 (diff) | |
download | afl++-3a62bb68e0867ceb920761bc19c96f5ca1992003.tar.gz |
updated unicornafl
Diffstat (limited to 'libtokencap')
-rw-r--r-- | libtokencap/libtokencap.so.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libtokencap/libtokencap.so.c b/libtokencap/libtokencap.so.c index 88b5c041..600d2a5d 100644 --- a/libtokencap/libtokencap.so.c +++ b/libtokencap/libtokencap.so.c @@ -33,7 +33,7 @@ #include "../types.h" #include "../config.h" -#if !defined __linux__ && !defined __APPLE__ && !defined __FreeBSD__ && \ +#if !defined __linux__ && !defined __APPLE__ && !defined __FreeBSD__ && \ !defined __OpenBSD__ && !defined __NetBSD__ && !defined __DragonFly__ && \ !defined(__HAIKU__) #error "Sorry, this library is unsupported in this platform for now!" @@ -233,18 +233,19 @@ static void __tokencap_load_mappings(void) { } munmap(buf, len); - #elif defined __HAIKU__ +#elif defined __HAIKU__ image_info ii; - int32_t group = 0; + int32_t group = 0; while (get_next_image_info(0, &group, &ii) == B_OK) { - __tokencap_ro[__tokencap_ro_cnt].st = ii.text; - __tokencap_ro[__tokencap_ro_cnt].en = ((char *)ii.text) + ii.text_size; + __tokencap_ro[__tokencap_ro_cnt].st = ii.text; + __tokencap_ro[__tokencap_ro_cnt].en = ((char *)ii.text) + ii.text_size; - if (++__tokencap_ro_cnt == MAX_MAPPINGS) break; + if (++__tokencap_ro_cnt == MAX_MAPPINGS) break; } + #endif } |