mirror of
https://github.com/apache/nuttx.git
synced 2026-06-09 02:44:53 +08:00
b2e6d7b9d7
newsize = newsize + CONFIG_FS_TMPFS_FILE_ALLOCGUARD; When newsize is a large value, adding a relatively small value can cause the result to become very small, resulting in program logic errors. For example: 0xffffffff + 0x2 = 1 Signed-off-by: hujun5 <hujun5@xiaomi.com>