Skip to content

uc_mem_write argument error #5

@merkiff

Description

@merkiff

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions