RTEMS | libblock/src/bdpart-register.c: Do not pass bad value to close() (!181)

Joel Sherrill (@joel) gitlab at rtems.org
Fri Aug 9 13:58:02 UTC 2024



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

Project:Branches: joel/rtems:bdpart-register-close-argument-issue-from-coverity to rtems/rtos/rtems:main
Author:   Joel Sherrill
Assignee: Joel Sherrill



## Summary

libblock/src/bdpart-register.c: Do not pass bad value to close()

Coverity CID 1467408

close() was called and fd can potentially be negative.

Closes #5113.


<!-- 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/181
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/20240809/e721f13c/attachment.htm>


More information about the bugs mailing list