MCPcopy Index your code
hub / github.com/qilingframework/qiling / Fake_maps

Class Fake_maps

tests/test_android.py:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15
16class Fake_maps(QlFsMappedObject):
17 def __init__(self, ql: Qiling):
18 self.ql = ql
19
20 def read(self, size):
21 return ''.join(f'{lbound:x}-{ubound:x} {perms}p {label}\n' for lbound, ubound, perms, label, _ in self.ql.mem.get_mapinfo()).encode()
22
23 def fstat(self):
24 return defaultdict(int)
25
26 def close(self):
27 return 0
28
29
30def my_syscall_close(ql: Qiling, fd: int) -> int:

Callers 2

test_android_arm64Method · 0.85
test_android_armMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_android_arm64Method · 0.68
test_android_armMethod · 0.68