diff options
author | Joey Jiaojg <77719320+joeyjiaojg@users.noreply.github.com> | 2021-01-28 12:51:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 05:51:45 +0100 |
commit | 47f62eb0ca087bf26e79f2f0ce5935eda2599064 (patch) | |
tree | b2b012f6c5408e38f963852a55f6eeabe7d3758a /utils/afl_untracer | |
parent | 2044c7e2b548e2747fde5deff65c78dd05e2ec8d (diff) | |
download | afl++-47f62eb0ca087bf26e79f2f0ce5935eda2599064.tar.gz |
Fix dev branch for android (#710)
* android: replace rindex with strrchr * android: support 64bit only due to 128bit integer not supported by 32bit system Co-authored-by: joeyjiaojg@qq.com <joeyjiaojg@163.com>
Diffstat (limited to 'utils/afl_untracer')
-rw-r--r-- | utils/afl_untracer/afl-untracer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/afl_untracer/afl-untracer.c b/utils/afl_untracer/afl-untracer.c index 695f8dd1..f3894a06 100644 --- a/utils/afl_untracer/afl-untracer.c +++ b/utils/afl_untracer/afl-untracer.c @@ -143,7 +143,7 @@ void read_library_information(void) { b = buf; m = index(buf, '-'); e = index(buf, ' '); - if ((n = rindex(buf, '/')) == NULL) n = rindex(buf, ' '); + if ((n = strrchr(buf, '/')) == NULL) n = strrchr(buf, ' '); if (n && ((*n >= '0' && *n <= '9') || *n == '[' || *n == '{' || *n == '(')) n = NULL; |