RTEMS | bsps/m68k/genmcf548x/start/bspstart.c: Fix negative array subsscript (!596)

Joel Sherrill (@joel) gitlab at rtems.org
Thu Jul 17 20:58:14 UTC 2025



Joel Sherrill created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/596

Project:Branches: joel/rtems:genmcf548x-bspstart.c-fix-array-bounds-violation to rtems/rtos/rtems:main
Author:   Joel Sherrill
Assignee: Joel Sherrill



## Summary

bsps/m68k/genmcf548x/start/bspstart.c: Fix negative array subsscript

GCC warned that the pointer magic was resulting in an array bounds
violation. The solution is to use uintptr_t when doing abusive
pointer math.


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/596
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/20250717/aeb68674/attachment.htm>


More information about the bugs mailing list