Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information