Skip to content

Commit 2f81b4d

Browse files
committed
remove the code-lines that checking the {ofs,len} bounderies; and modifies them if necessary(invalid read)
Signed-off-by: Gal Salomon <[email protected]>
1 parent 597a702 commit 2f81b4d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/rgw/rgw_s3select.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -806,11 +806,6 @@ int RGWSelectObj_ObjStore_S3::parquet_processing(bufferlist& bl, off_t ofs, off_
806806
}
807807
append_in_callback += it.length();
808808
ldout(s->cct, 10) << "S3select: part " << part_no++ << " it.length() = " << it.length() << dendl;
809-
if ((ofs + len) > it.length()){
810-
ldpp_dout(this, 10) << "s3select: offset and length may cause invalid read: ofs = " << ofs << " len = " << len << " it.length() = " << it.length() << dendl;
811-
ofs = 0;
812-
len = it.length();
813-
}
814809
requested_buffer.append(&(it)[0]+ofs, len);
815810
}
816811
ldout(s->cct, 10) << "S3select:append_in_callback = " << append_in_callback << dendl;

0 commit comments

Comments
 (0)