fix(s3select): reject truncated object streams (#5027)

* fix(s3select): reject truncated object streams

* fix(s3select): validate raw stream before conversion
This commit is contained in:
GatewayJ
2026-07-19 23:34:20 +08:00
committed by GitHub
parent a73f4c345f
commit 8ebedddfa1
4 changed files with 109 additions and 125 deletions
+2
View File
@@ -20,6 +20,8 @@ use rustfs_ecstore::api::error::{
is_err_object_not_found as select_is_err_object_not_found_from_backend,
is_err_version_not_found as select_is_err_version_not_found_from_backend,
};
#[cfg(test)]
pub(crate) use rustfs_ecstore::api::object::PutObjReader as SelectPutObjReader;
use rustfs_ecstore::api::runtime::object_store_handle as resolve_select_object_store_handle_from_backend;
pub(crate) use rustfs_ecstore::api::set_disk::DEFAULT_READ_BUFFER_SIZE as SELECT_DEFAULT_READ_BUFFER_SIZE;
pub(crate) use rustfs_ecstore::api::storage::ECStore as SelectStore;