pkarashchenko commented on pull request #5807:
URL: https://github.com/apache/incubator-nuttx/pull/5807#issuecomment-1073345118
Please take a look into `static int proc_stat(const char *relpath, struct
stat *buf)`:
```
/* A valid PID would be in the range of 0-32767 (0 is reserved for the
* IDLE thread).
*/
if (tmp >= 32768)
{
ferr("ERROR: Invalid PID %ld\n", tmp);
return -ENOENT;
}
```
Maybe condition has to be modified to `if (tmp >= INT_MAX)`. and same for
other `proc_` functions.
--
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]