[PATCH 1/2] libwine: fix incorrect usage of mincore() by try_mmap_fixed()
May 18, 2020
2:04 p.m.
The return value of mincore() only tells us whether the system call succeeded, not whether the memory is resident. Check the result in the "vec" parameter like we're supposed to. Signed-off-by: Damjan Jovanovic <damjan.jov(a)gmail.com> --- libs/wine/mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
May 2020
2:10 p.m.
Damjan Jovanovic <damjan.jov(a)gmail.com> writes:
The return value of mincore() only tells us whether the system call succeeded, not whether the memory is resident. Check the result in the "vec" parameter like we're supposed to.
Actually we don't care whether it's resident or not, we are only interested in checking if there's something at this address. -- Alexandre Julliard julliard(a)winehq.org
2143
Age (days ago)
2143
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alexandre Julliard -
Damjan Jovanovic