fix invalid read in aligned_alloc
in case of mmap-obtained chunks, end points past the end of the mapping and reading it may fault. since the value is not needed until after the conditional, move the access to prevent invalid reads.
Showing
想要评论请 注册 或 登录