Skip to content

Commit b25cbe1

Browse files
committed
Unpack zip generator into a tuple for robustness
1 parent b59818f commit b25cbe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiling/os/fcall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def __get_typed_args(proto: Mapping[str, Any], args: Mapping[str, Any]) -> Itera
114114
if len(names) > len(types):
115115
types.extend([None] * (len(names) - len(types)))
116116

117-
return zip(types, names, values)
117+
return tuple(zip(types, names, values))
118118

119119
def call(self, func: CallHook, proto: Mapping[str, Any], params: Mapping[str, Any], hook_onenter: Optional[OnEnterHook], hook_onexit: Optional[OnExitHook], passthru: bool) -> Tuple[Iterable[TypedArg], int, int]:
120120
"""Execute a hooked function.

0 commit comments

Comments
 (0)