]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
RGW - Remove potential string overflow in POSIXDriver
authorDaniel Gryniewicz <dang@redhat.com>
Mon, 15 Apr 2024 15:52:37 +0000 (11:52 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Mon, 15 Apr 2024 15:52:37 +0000 (11:52 -0400)
commit57e62ea042162dacb60e6dd7c86c2533008fd9f9
treef7f19c679231c94ea7c8c552f32ad981e81fe103
parent3f7db60e5ba4c4d053b594b7ec58703d2833c55b
RGW - Remove potential string overflow in POSIXDriver

There was a warning that a long long could generate a string 21 bytes
long if it was maxed out.  This can't actually happen, because we're
counting up.  However, there's no need to use an int64_t, int32_t is
fine.

Fixes: https://tracker.ceph.com/issues/65471
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/rgw/driver/posix/rgw_sal_posix.cc