From 29f9326a12e7cb7487f1f127fdecb5b4e79e77f6 Mon Sep 17 00:00:00 2001 From: Eli Date: Mon, 3 Jul 2023 15:27:55 +0300 Subject: [PATCH] Update syscall.py Styling fixes. --- qiling/os/posix/syscall/syscall.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/qiling/os/posix/syscall/syscall.py b/qiling/os/posix/syscall/syscall.py index 60dd9a22..2a3c1092 100644 --- a/qiling/os/posix/syscall/syscall.py +++ b/qiling/os/posix/syscall/syscall.py @@ -39,10 +39,15 @@ def ql_syscall_ipc(ql: Qiling, call: int, first: int, second: int, third: int, p if version == 0: if args[3] == 0: return -1 # EINVAL + msgp = ql.mem.read_ptr(args[3]) msgtyp = ql.mem.read_ptr(args[3] + ql.arch.pointersize) - return ql_syscall_msgrcv(ql, args[0], msgp, args[1], msgtyp, args[2]) - return ql_syscall_msgrcv(ql, args[0], args[3], args[1], args[4], args[2]) + + else: + msgp = args[3] + msgtyp = args[4] + + return ql_syscall_msgrcv(ql, args[0], msgp, args[1], msgtyp, args[2]) ipc_call = { SHMAT: __call_shmat,