Whamcloud - gitweb
Fix Coverity unintentional integer overflow warnings
authorTheodore Ts'o <tytso@mit.edu>
Fri, 12 Aug 2022 02:03:08 +0000 (22:03 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 12 Aug 2022 02:03:08 +0000 (22:03 -0400)
commit6b3edcd191c20b3fb108f0d7564aaa930035d0ab
tree63bf445a0d4e918da783d38f30359490edc3c936
parentec30a439282fd4703d302f1f98fbad3ce9f99db2
Fix Coverity unintentional integer overflow warnings

Neither of these two warnings can actually happen (other limits will
be hit first), but widening the integer to a 64-bit unsigned integer
is an cheap and effective way to silence the Coverity warnings.

Addresses-Coverity-Bug: 1500760
Addresses-Coverity-Bug: 1507886
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/e2image.c
resize/main.c