RTEMS | posix/mmap: Fix validation order for map_fixed addresses (!542)

shuhua hua (@huangshuhua) gitlab at rtems.org
Mon Jun 30 02:01:41 UTC 2025



shuhua hua created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/542

Project:Branches: huangshuhua/rtems:mmap to rtems/rtos/rtems:main
Author:   shuhua hua




Reorder address validation checks to verify NULL pointer before
performing bitwise operations. This prevents potential undefined
behavior when checking page alignment on NULL addresses.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/542
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250630/43d85748/attachment.htm>


More information about the bugs mailing list