MCPcopy Create free account
hub / github.com/qilingframework/qiling / try_read_string

Method try_read_string

qiling/debugger/qdb/context.py:128–137  ·  view source on GitHub ↗

Attempt to read a string from memory.

(self, address: int)

Source from the content-addressed store, hash-verified

126 return self.ql.mem.string(address)
127
128 def try_read_string(self, address: int) -> Optional[str]:
129 """Attempt to read a string from memory.
130 """
131
132 try:
133 s = self.read_string(address)
134 except UcError:
135 s = None
136
137 return s
138
139 def get_deref(self, ptr: int) -> Union[int, str, None]:
140 """Get content referenced by a pointer.

Callers 2

get_derefMethod · 0.95
handle_examineMethod · 0.80

Calls 1

read_stringMethod · 0.95

Tested by

no test coverage detected