unicornafl example: fix incorrect comment (#2315)

This commit is contained in:
moonkick64 2025-02-27 22:29:41 +09:00 committed by GitHub
parent cc1d41f59d
commit 21e75d73a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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)