arnavsharma990 opened a new pull request, #3787:
URL: https://github.com/apache/nuttx-apps/pull/3787

   ## Summary
   Regression test for apache/nuttx#20166. Extends the `configdata` example
   (which already runs as the init entrypoint of `sim:configdata`) with a
   full `/dev/config` lifetime cycle after the normal test loops: close,
   unregister (must succeed), verify `open()` fails `ENOENT`, re-register
   the same MTD (must succeed), verify usable, final unregister.
   
   Pre-fix this crashes deterministically (heap UAF in
   `mtdconfig_unregister_by_path()`); post-fix the example completes
   cleanly. Uses only generic configdata APIs, so it is neutral under
   `CONFIG_MTD_CONFIG_NVS`.
   
   ## Impact
   Test-only change, runs automatically in `sim:configdata` builds.
   
   ## Testing
   - With nuttx fix: `sim:configdata` run completes, 934706/934706 pass.
   - Without nuttx fix: SIGSEGV in the new test (verified).
   


-- 
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