diff options
author | WorksButNotTested <62701594+WorksButNotTested@users.noreply.github.com> | 2021-05-27 21:33:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 22:33:44 +0200 |
commit | f677be5e86a096edbba74cb8c739e8b10850a379 (patch) | |
tree | 1335aaa0592d251926a1b0e62acf28ceaba2e41e /frida_mode/src/util.c | |
parent | 14178141dcdc1a81ea4f4461790ec87f60606985 (diff) | |
download | afl++-f677be5e86a096edbba74cb8c739e8b10850a379.tar.gz |
Support for AFL_FRIDA_PERSISTENT_RET (#941)
Co-authored-by: Your Name <you@example.com>
Diffstat (limited to 'frida_mode/src/util.c')
-rw-r--r-- | frida_mode/src/util.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/frida_mode/src/util.c b/frida_mode/src/util.c index 86b94970..09e8a58b 100644 --- a/frida_mode/src/util.c +++ b/frida_mode/src/util.c @@ -10,7 +10,7 @@ guint64 util_read_address(char *key) { if (!g_str_has_prefix(value_str, "0x")) { - FATAL("Invalid address should have 0x prefix: %s\n", value_str); + FATAL("Invalid address should have 0x prefix: %s=%s\n", key, value_str); } @@ -20,8 +20,8 @@ guint64 util_read_address(char *key) { if (!g_ascii_isxdigit(*c)) { - FATAL("Invalid address not formed of hex digits: %s ('%c')\n", value_str, - *c); + FATAL("Invalid address not formed of hex digits: %s=%s ('%c')\n", key, + value_str, *c); } @@ -30,7 +30,7 @@ guint64 util_read_address(char *key) { guint64 value = g_ascii_strtoull(value_str2, NULL, 16); if (value == 0) { - FATAL("Invalid address failed hex conversion: %s\n", value_str2); + FATAL("Invalid address failed hex conversion: %s=%s\n", key, value_str2); } @@ -48,7 +48,8 @@ guint64 util_read_num(char *key) { if (!g_ascii_isdigit(*c)) { - FATAL("Invalid address not formed of decimal digits: %s\n", value_str); + FATAL("Invalid address not formed of decimal digits: %s=%s\n", key, + value_str); } @@ -57,7 +58,7 @@ guint64 util_read_num(char *key) { guint64 value = g_ascii_strtoull(value_str, NULL, 10); if (value == 0) { - FATAL("Invalid address failed numeric conversion: %s\n", value_str); + FATAL("Invalid address failed numeric conversion: %s=%s\n", key, value_str); } |