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

Method is_safe_host_path

qiling/os/path.py:326–329  ·  view source on GitHub ↗
(self, hostpath: str)

Source from the content-addressed store, hash-verified

324 return str(hostpath)
325
326 def is_safe_host_path(self, hostpath: str) -> bool:
327 hpath = Path(hostpath)
328
329 return self.__is_safe_host_path(hpath, strict=False)
330
331 @staticmethod
332 def __host_casefold_path(hostpath: str) -> Optional[str]:

Callers 15

__open_newMethod · 0.80
file_existsMethod · 0.80
_GetTempPathFunction · 0.80
hook_CreateDirectoryAFunction · 0.80
hook_CopyFileAFunction · 0.80
_DeleteFileFunction · 0.80
ql_syscall_chmodFunction · 0.80
ql_syscall_mkdirFunction · 0.80
ql_syscall_rmdirFunction · 0.80
ql_syscall_faccessatFunction · 0.80
ql_syscall_accessFunction · 0.80
__do_readlinkFunction · 0.80

Calls 1

__is_safe_host_pathMethod · 0.95

Tested by

no test coverage detected