about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--frida_mode/src/instrument/instrument_arm32.c4
-rw-r--r--utils/argv_fuzzing/argv-fuzz-inl.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/frida_mode/src/instrument/instrument_arm32.c b/frida_mode/src/instrument/instrument_arm32.c
index 84dbb3be..51f78a35 100644
--- a/frida_mode/src/instrument/instrument_arm32.c
+++ b/frida_mode/src/instrument/instrument_arm32.c
@@ -276,9 +276,13 @@ gpointer instrument_cur(GumStalkerOutput *output) {
   gpointer curr = NULL;
 
   if (output->encoding == GUM_INSTRUCTION_SPECIAL) {
+
     curr = gum_thumb_writer_cur(output->writer.thumb);
+
   } else {
+
     curr = gum_arm_writer_cur(output->writer.arm);
+
   }
 
   return curr;
diff --git a/utils/argv_fuzzing/argv-fuzz-inl.h b/utils/argv_fuzzing/argv-fuzz-inl.h
index e350dd4e..ec22c53b 100644
--- a/utils/argv_fuzzing/argv-fuzz-inl.h
+++ b/utils/argv_fuzzing/argv-fuzz-inl.h
@@ -65,9 +65,7 @@ static char **afl_init_argv(int *argc) {
   int   rc = 0;
 
   ssize_t num = read(0, in_buf, MAX_CMDLINE_LEN - 2);
-  if (num < 0) {
-      exit(1);
-  }
+  if (num < 1) { _exit(1); }
   in_buf[num] = '\0';
   in_buf[num + 1] = '\0';