Whamcloud - gitweb
Fix coverity false positives introduced by the post-2038 changes
authorTheodore Ts'o <tytso@mit.edu>
Wed, 24 Apr 2024 02:13:25 +0000 (22:13 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 24 Apr 2024 02:13:25 +0000 (22:13 -0400)
commitec1c87f84bc4b3ca60c422f02c08b0e4e0543bd6
tree09a6ebae08eee8203b03d43b6a9731b878f2ce93
parenta12302fa683e397a731e679bd1b818c45ad3ff78
Fix coverity false positives introduced by the post-2038 changes

Commit ca8bc9240a00 ("Add post-2038 timestamp support...") did things
like casting a 64-bit unsigned integer into a signed 32-bit integer
deliberately; but Coverity thinks this is a bug.  So mask off the bits
to make it clear this was deliberate.

Addresses-Coverity-Bug: 1596519
Addresses-Coverity-Bug: 1596515
Addresses-Coverity-Bug: 1596514
Addresses-Coverity-Bug: 1596513
Addresses-Coverity-Bug: 1596511
Addresses-Coverity-Bug: 1596509
Addresses-Coverity-Bug: 1596508
Addresses-Coverity-Bug: 1596504
Addresses-Coverity-Bug: 1596502
Addresses-Coverity-Bug: 1596501
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/ext2fs.h