about summary refs log tree commit diff
path: root/frida_mode/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-04-29 15:09:20 +0200
committervanhauser-thc <vh@thc.org>2021-04-29 15:09:20 +0200
commit17b860d811cbd7695ab9756671c3f2d876ab25e8 (patch)
tree9ddb6c5ca093b105f21cf3f336294e8833800813 /frida_mode/src
parent29dbe665a7a7dc6b2232487dbc6c1ebecbbdfb06 (diff)
downloadafl++-17b860d811cbd7695ab9756671c3f2d876ab25e8.tar.gz
nits
Diffstat (limited to 'frida_mode/src')
-rw-r--r--frida_mode/src/util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/frida_mode/src/util.c b/frida_mode/src/util.c
index f42afd64..bd13781d 100644
--- a/frida_mode/src/util.c
+++ b/frida_mode/src/util.c
@@ -14,22 +14,22 @@ guint64 util_read_address(char *key) {
 
   }
 
-  value_str = &value_str[2];
+  char *value_str2 = &value_str[2];
 
-  for (char *c = value_str; *c != '\0'; c++) {
+  for (char *c = value_str2; *c != '\0'; c++) {
 
     if (!g_ascii_isxdigit(*c)) {
 
-      FATAL("Invalid address not formed of hex digits: %s\n", value_str);
+      FATAL("Invalid address not formed of hex digits: %s ('%c')\n", value_str, *c);
 
     }
 
   }
 
-  guint64 value = g_ascii_strtoull(value_str, NULL, 16);
+  guint64 value = g_ascii_strtoull(value_str2, NULL, 16);
   if (value == 0) {
 
-    FATAL("Invalid address failed hex conversion: %s\n", value_str);
+    FATAL("Invalid address failed hex conversion: %s\n", value_str2);
 
   }