You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sn_vm_get_page_size() narrowed the sysconf result with SN_MAX(0, ps), which
turned the documented -1 error return into a page size of zero instead of
reporting it. Every caller then passed a length of zero: mprotect with a length
of zero succeeds and protects nothing, and munmap rejects it with EINVAL, so a
released range could stay mapped. SN_ASSERT is compiled out in release, so it
did not catch this either. The result is now checked before it is narrowed, and
a failed query falls back to the smallest page size these platforms use