We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 978e1df commit 5f9c76dCopy full SHA for 5f9c76d
qiling/os/posix/syscall/mman.py
@@ -84,7 +84,7 @@ def syscall_mmap_impl(ql: Qiling, addr: int, mlen: int, prot: int, flags: int, f
84
85
need_mmap = True
86
mmap_base = addr
87
- mmap_size = ql.mem.align_up(mlen - ql.mem.align(addr))
+ mmap_size = ql.mem.align_up(mlen)
88
89
if ql.ostype != QL_OS.QNX:
90
mmap_base = ql.mem.align(mmap_base)
0 commit comments