MCPcopy Create free account
hub / github.com/capstone-engine/capstone / get_code

Function get_code

suite/fuzz.py:58–65  ·  view source on GitHub ↗
(f, size)

Source from the content-addressed store, hash-verified

56# read @size bytes from @f & return data.
57# return None when there is not enough data
58def get_code(f, size):
59 code = f.read(size)
60 if len(code) != size: # reached end-of-file?
61 # then reset file position to begin-of-file
62 f.seek(0)
63 return None
64
65 return code
66
67
68def cs(md, code):

Callers 1

fuzz.pyFile · 0.70

Calls 1

readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…