Ahmed55559 opened a new pull request, #22402:
URL: https://github.com/apache/nuttx/pull/22402

   This PR adds bounds checks to mtdconfig_ramconsolidate() to prevent 
out-of-bounds access when processing configuration entries.
   
   Before accessing an entry header, the function checks that the complete 
header fits within the current erase block. It also validates the payload 
length to ensure the entry does not extend beyond the block boundary.
   
   Additionally, the return value of mtdconfig_ramconsolidate() is checked by 
mtdconfig_setconfig(), allowing consolidation failures to be propagated instead 
of proceeding as if consolidation succeeded.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to