From: Soumya Koduri Date: Fri, 23 May 2025 21:39:50 +0000 (+0530) Subject: rgw/restore: Use strtoull to read size till 2^64 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=87ce61df33cfd1b2ac4bf34070a15b2a27085244;p=ceph.git rgw/restore: Use strtoull to read size till 2^64 Reviewed-by: Adam Emerson Reviewed-by: Matt Benjamin Signed-off-by: Soumya Koduri (cherry picked from commit b3c867a121a7315b5a9e2d30d0af44c08676f8ca) --- diff --git a/src/rgw/driver/rados/rgw_lc_tier.cc b/src/rgw/driver/rados/rgw_lc_tier.cc index c1dcd2387a540..7c2628d10314c 100644 --- a/src/rgw/driver/rados/rgw_lc_tier.cc +++ b/src/rgw/driver/rados/rgw_lc_tier.cc @@ -400,7 +400,8 @@ int rgw_cloud_tier_get_object(RGWLCCloudTierCtx& tier_ctx, bool head, } if (header.first == "CONTENT_LENGTH") { - accounted_size = atoi(val.c_str()); + char* end = nullptr; + accounted_size = strtoull(val.c_str(), &end, 10); } }