Whamcloud - gitweb
libext2fs: fix Coverity type warnings from ext2fs_inode_xtime_set()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 26 May 2025 01:37:38 +0000 (21:37 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 May 2025 01:37:38 +0000 (21:37 -0400)
commit86f11317429bd424ef61dc287566c0e3c4a4298c
tree33e6d4b6a8f80ddb0c94b2847f253d87b118d615
parent06d2777426e16ae9c354f1c14b779d666492802c
libext2fs: fix Coverity type warnings from ext2fs_inode_xtime_set()

The ext2fs_inode_xtime_set() C preprocessor macro needs to cast to
__u32 before assigning to the time field.

This fixes a number of integer handling issues reported by Coverity.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/ext2fs.h