Skip to content

Fix sys_compat_mmap arithmetic bug - #63

Open
Haibib wants to merge 1 commit into
mainfrom
mmap-bug-fix
Open

Fix sys_compat_mmap arithmetic bug#63
Haibib wants to merge 1 commit into
mainfrom
mmap-bug-fix

Conversation

@Haibib

@Haibib Haibib commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

PR Description

  • Fixes an arithmetic bug in sys_compat_mmap() function where page sizes are compared against the requested number of bytes instead of the remaining number of bytes that need to be mapped.

@Haibib
Haibib requested a review from keithw August 31, 2026 22:16
@Haibib Haibib changed the title Fix sys_compat_mmap arithmatic bug Fix sys_compat_mmap arithmetic bug Aug 31, 2026
@keithw

keithw commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

What goes wrong in the current code? Is it possible to write a test for this? (How did this bug even come up?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants