incubator-nuttx/fs/fat
Mingjie Shen 7d13f5eb78 fs/fat: Fix undefined behavior in signed integer overflow check
Testing for overflow by adding a value to a variable to see if it "wraps
around" works only for unsigned integer values, because signed overflow
has undefined behavior according to the C and C++ standards.

Signed-off-by: Mingjie Shen <shen497@purdue.edu>
2023-06-28 23:02:25 +08:00
..
Kconfig fs/fat: Change the default value of FAT_MAXFNAME to NAME_MAX 2022-03-10 19:46:01 +02:00
Make.defs
fs_fat32.c fs/fat: Fix undefined behavior in signed integer overflow check 2023-06-28 23:02:25 +08:00
fs_fat32.h Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
fs_fat32attrib.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
fs_fat32dirent.c nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
fs_fat32util.c semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00