RTEMS | grlib/pci: Use unsigned integer for interrupt number (!496)

Matteo Concas (@matteo.concas) gitlab at rtems.org
Mon Jun 2 08:15:52 UTC 2025



Matteo Concas created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/496

Project:Branches: matteo.concas/rtems-gaisler:matteo/gr-rasta-tmtc-overflow to rtems/rtos/rtems:main
Author:   Matteo Concas




## Summary

`(1<<31)` will overflow the signed integer `irq`. This is low risk since the variable is always treated as an unsigned integer.
The commit changes the var type to unsigned integer, this will make it safer and fix the Coverity issue.

Closes Coverity 1642585


<!-- 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/496
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/20250602/0a03b8f8/attachment.htm>


More information about the bugs mailing list