jlaitine opened a new pull request, #16994: URL: https://github.com/apache/nuttx/pull/16994
## Summary Stream pointer is provided by user side code. Passing an invalid pointer, for example an already closed stream, to fclose would cause heap corruption and in CONFIG_BUILD_FLAT a full system crash. This validates the passed stream pointer by checking that it exists in the streams list. ## Impact Impacts all platforms, prevents crash in case an invalid argument is passed. ## Testing Tested with real HW on MPFS and IMX93 platforms, with qemu on rv-virt:nsh (ostest) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org