]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
remove the code-lines that checking the {ofs,len} bounderies; and modifies them if...
authorGal Salomon <gal.salomon@gmail.com>
Mon, 21 Oct 2024 19:12:26 +0000 (22:12 +0300)
committerGal Salomon <gal.salomon@gmail.com>
Fri, 25 Apr 2025 00:33:13 +0000 (03:33 +0300)
Signed-off-by: Gal Salomon <gal.salomon@gmail.com>
(cherry picked from commit 2f81b4d618ed5e1d3ab2e985f4d8593b384343c6)

src/rgw/rgw_s3select.cc

index f133f7f80169dc652fcc19d12bbc630b5d073eeb..f0b26824ca6b300e5300b512b979a182ff6f1a85 100644 (file)
@@ -806,11 +806,6 @@ int RGWSelectObj_ObjStore_S3::parquet_processing(bufferlist& bl, off_t ofs, off_
       }
       append_in_callback += it.length();
       ldout(s->cct, 10) << "S3select: part " << part_no++ << " it.length() = " << it.length() << dendl;
-      if ((ofs + len) > it.length()){
-       ldpp_dout(this, 10) << "s3select: offset and length may cause invalid read: ofs = " << ofs << " len = " << len << " it.length() = " << it.length() << dendl;
-       ofs = 0;
-       len = it.length();
-      }
       requested_buffer.append(&(it)[0]+ofs, len);
     }
     ldout(s->cct, 10) << "S3select:append_in_callback = " << append_in_callback << dendl;