nuttx/fs/tmpfs
hujun5 b2e6d7b9d7 fs/tmpfs: fix an integer overflow
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>
2023-11-21 20:02:00 -08:00
..
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
fs_tmpfs.c fs/tmpfs: fix an integer overflow 2023-11-21 20:02:00 -08:00
fs_tmpfs.h fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
Kconfig Fix typos in comments and documentation (#750) 2020-04-08 06:45:35 -06:00
Make.defs Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00