From 21e75d73a6d73f0c2e6639f56c9411747d47d407 Mon Sep 17 00:00:00 2001 From: moonkick64 Date: Thu, 27 Feb 2025 22:29:41 +0900 Subject: [PATCH] unicornafl example: fix incorrect comment (#2315) --- unicorn_mode/samples/python_simple/simple_test_harness.py | 3 ++- unicorn_mode/samples/python_simple/simple_test_harness_alt.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/unicorn_mode/samples/python_simple/simple_test_harness.py b/unicorn_mode/samples/python_simple/simple_test_harness.py index e32cdf81..256b256f 100644 --- a/unicorn_mode/samples/python_simple/simple_test_harness.py +++ b/unicorn_mode/samples/python_simple/simple_test_harness.py @@ -114,6 +114,7 @@ def main(): # --------------------------------------------------- # Load the binary to emulate and map it into memory + # Load the binary to emulate print("Loading data input from {}".format(args.input_file)) binary_file = open(BINARY_FILE, "rb") binary_code = binary_file.read() @@ -124,7 +125,7 @@ def main(): print("Binary code is too large (> {} bytes)".format(CODE_SIZE_MAX)) return - # Write the mutated command into the data buffer + # Map the binary into memory uc.mem_map(CODE_ADDRESS, CODE_SIZE_MAX) uc.mem_write(CODE_ADDRESS, binary_code) diff --git a/unicorn_mode/samples/python_simple/simple_test_harness_alt.py b/unicorn_mode/samples/python_simple/simple_test_harness_alt.py index 5fb3f82f..24fbfc46 100644 --- a/unicorn_mode/samples/python_simple/simple_test_harness_alt.py +++ b/unicorn_mode/samples/python_simple/simple_test_harness_alt.py @@ -142,6 +142,7 @@ def main(): # --------------------------------------------------- # Load the binary to emulate and map it into memory + # Load the binary to emulate print("Loading data input from {}".format(args.input_file)) binary_file = open(BINARY_FILE, "rb") binary_code = binary_file.read() @@ -152,7 +153,7 @@ def main(): print("Binary code is too large (> {} bytes)".format(CODE_SIZE_MAX)) return - # Write the mutated command into the data buffer + # Map the binary into memory uc.mem_map(CODE_ADDRESS, CODE_SIZE_MAX) uc.mem_write(CODE_ADDRESS, binary_code)