]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix snprintf() truncate warning in ETagVerifier 39447/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 4 Feb 2021 14:47:28 +0000 (09:47 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Feb 2021 16:18:36 +0000 (11:18 -0500)
commit13947aa7f2d968e1160140c5d1ab4398fb93991b
treeadb711d8e066c277b3bf9a68224d43eb7e57aa5d
parent2cc7e6175f3739e972089e2841abac39b628ec6a
rgw: fix snprintf() truncate warning in ETagVerifier

src/rgw/rgw_etag_verifier.cc: In member function 'virtual void rgw::putobj::ETagVerifier_MPU::calculate_etag()':
src/rgw/rgw_etag_verifier.cc:179:12: warning: '%lld' directive output may be truncated writing between 1 and 20 bytes into a region of size 15 [-Wformat-truncation=]
            "-%lld", (long long)(part_ofs.size()));
            ^~~~~~~
src/rgw/rgw_etag_verifier.cc:179:12: note: directive argument in the range [-11529215046068469761152921504606846975]

Fixes: https://tracker.ceph.com/issues/49169
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 58353b1f08d51610431411cecf01e86e872c3ac6)
src/rgw/rgw_etag_verifier.cc