mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-07 07:41:33 +00:00
unicornafl example: fix incorrect comment (#2315)
This commit is contained in:
parent
cc1d41f59d
commit
21e75d73a6
@ -114,6 +114,7 @@ def main():
|
|||||||
# ---------------------------------------------------
|
# ---------------------------------------------------
|
||||||
# Load the binary to emulate and map it into memory
|
# Load the binary to emulate and map it into memory
|
||||||
|
|
||||||
|
# Load the binary to emulate
|
||||||
print("Loading data input from {}".format(args.input_file))
|
print("Loading data input from {}".format(args.input_file))
|
||||||
binary_file = open(BINARY_FILE, "rb")
|
binary_file = open(BINARY_FILE, "rb")
|
||||||
binary_code = binary_file.read()
|
binary_code = binary_file.read()
|
||||||
@ -124,7 +125,7 @@ def main():
|
|||||||
print("Binary code is too large (> {} bytes)".format(CODE_SIZE_MAX))
|
print("Binary code is too large (> {} bytes)".format(CODE_SIZE_MAX))
|
||||||
return
|
return
|
||||||
|
|
||||||
# Write the mutated command into the data buffer
|
# Map the binary into memory
|
||||||
uc.mem_map(CODE_ADDRESS, CODE_SIZE_MAX)
|
uc.mem_map(CODE_ADDRESS, CODE_SIZE_MAX)
|
||||||
uc.mem_write(CODE_ADDRESS, binary_code)
|
uc.mem_write(CODE_ADDRESS, binary_code)
|
||||||
|
|
||||||
|
@ -142,6 +142,7 @@ def main():
|
|||||||
# ---------------------------------------------------
|
# ---------------------------------------------------
|
||||||
# Load the binary to emulate and map it into memory
|
# Load the binary to emulate and map it into memory
|
||||||
|
|
||||||
|
# Load the binary to emulate
|
||||||
print("Loading data input from {}".format(args.input_file))
|
print("Loading data input from {}".format(args.input_file))
|
||||||
binary_file = open(BINARY_FILE, "rb")
|
binary_file = open(BINARY_FILE, "rb")
|
||||||
binary_code = binary_file.read()
|
binary_code = binary_file.read()
|
||||||
@ -152,7 +153,7 @@ def main():
|
|||||||
print("Binary code is too large (> {} bytes)".format(CODE_SIZE_MAX))
|
print("Binary code is too large (> {} bytes)".format(CODE_SIZE_MAX))
|
||||||
return
|
return
|
||||||
|
|
||||||
# Write the mutated command into the data buffer
|
# Map the binary into memory
|
||||||
uc.mem_map(CODE_ADDRESS, CODE_SIZE_MAX)
|
uc.mem_map(CODE_ADDRESS, CODE_SIZE_MAX)
|
||||||
uc.mem_write(CODE_ADDRESS, binary_code)
|
uc.mem_write(CODE_ADDRESS, binary_code)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user