mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
Update some comments; link counter can be uint8_t; Add a debug assertion.
This commit is contained in:
@@ -129,6 +129,8 @@ static inline int statpseudo(FAR struct inode *inode, FAR struct stat *buf)
|
||||
return -ELOOP;
|
||||
}
|
||||
|
||||
DEBUGASSERT(buff->st_count > 0); /* Check for unsigned integer overflow */
|
||||
|
||||
/* stat() the target of the soft link. */
|
||||
|
||||
ret = stat_recursive((FAR const char *)inode->u.i_link, buf);
|
||||
|
||||
Reference in New Issue
Block a user