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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| fs_tmpfs.c | ||
| fs_tmpfs.h | ||
| Kconfig | ||
| Make.defs | ||