From 4a3bf55985cfc5969b2d6ae5579abe6b3a750160 Mon Sep 17 00:00:00 2001 From: xwings Date: Thu, 14 Dec 2023 19:09:43 +0800 Subject: [PATCH] Revert "Bugfix: unaligned access in MIPS getdents64" --- qiling/os/posix/syscall/unistd.py | 1 - 1 file changed, 1 deletion(-) diff --git a/qiling/os/posix/syscall/unistd.py b/qiling/os/posix/syscall/unistd.py index 9db2a2559..3c9b91472 100644 --- a/qiling/os/posix/syscall/unistd.py +++ b/qiling/os/posix/syscall/unistd.py @@ -888,7 +888,6 @@ def _type_mapping(ent): d_name = (result.name if isinstance(result, os.DirEntry) else result._str).encode() + b'\x00' d_type = _type_mapping(result) d_reclen = n + n + 2 + len(d_name) + 1 - d_reclen = (d_reclen + n) & ~(n -1) # alignment # TODO: Dirty fix for X8664 MACOS 11.6 APFS # For some reason MACOS return int value is 64bit