]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: Add coverity annotations to ignore warnings about 32 bit time
authorVedansh Bhartia <vedanshbhartia@gmail.com>
Fri, 12 May 2023 06:06:38 +0000 (11:36 +0530)
committerVedansh Bhartia <vedanshbhartia@gmail.com>
Tue, 16 May 2023 15:54:37 +0000 (21:24 +0530)
commitaca2668c88a048ab556c53411dcf2ccd43099d50
tree5749840def62f77a81e53503d32d0301e13a37d4
parent94e24afbf05758cdb881f08301d21bf54c6d47bb
rgw: Add coverity annotations to ignore warnings about 32 bit time
There are two types of occurences of this warning:
1. Where time intervals are stored. These intervals are generally
   very small (like 30s for TOTP window duration), and are unlikely to
   overflow. These are marked as false positives.
2. Where time data is written to disk. Moving to 64 bit time would
   require significant work to ensure backwards compatibility. These
   shall be addressed via a separate PR. A bug addressing this has been
   opened at https://tracker.ceph.com/issues/61160

Signed-off-by: Vedansh Bhartia <vedanshbhartia@gmail.com>
src/rgw/driver/rados/rgw_trim_datalog.cc
src/rgw/driver/rados/rgw_trim_mdlog.cc
src/rgw/rgw_admin.cc
src/rgw/rgw_common.h
src/rgw/rgw_torrent.cc