Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uc_mem_write argument error #5

Open
merkiff opened this issue Mar 25, 2024 · 0 comments
Open

uc_mem_write argument error #5

merkiff opened this issue Mar 25, 2024 · 0 comments

Comments

@merkiff
Copy link

merkiff commented Mar 25, 2024

I wanted to run your fuzzer, but there are some errors. I think almost errors are occured by version issue. I runned mips_test.py in examples directory.

File "/home/loca/firmcorn2/FIRMCORN-V2/examples/../firmcorn.py", line 346, in set_memory

    self.mem_write(seg_start, '\x00' * (seg_end - seg_start))

  File "/home/loca/.local/lib/python3.10/site-packages/unicorn/unicorn.py", line 584, in mem_write

    status = _uc.uc_mem_write(self._uch, address, data, len(data))

ctypes.ArgumentError: argument 3: TypeError: wrong type

in firmcorn.py, it contains only 2 arguments for mem_write, but uc_mem_write in unicorn.py, requires 4 argument. the unicorn version is 2.0.1(post). What argument can be added for third, fourth argument(data, len(data))?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant