Old-Ding opened a new pull request, #19320:
URL: https://github.com/apache/nuttx/pull/19320

   ## Summary
   - remove the stale pre-`opendir()` `name_len` check in `scan_dir()`
   - keep directory entry name validation in the loop where `a_dirent->d_name` 
is available
   
   ## Why
   `scan_dir()` checked `name_len` before assigning it. That means the tool can 
branch on an uninitialized local variable before opening the directory. The 
actual filesystem entry names are already measured and checked after 
`readdir()` returns each regular file or directory.
   
   ## Testing
   - `git diff --check origin/master..HEAD`
   - `git show --check --stat --oneline HEAD`
   - local compile/checkpatch not run: this Windows environment has no usable 
`gcc`/`clang`/`make` or WSL/bash shell


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