Chunked reads beat an h5py process pool; unlimited writer B-trees; Blosc2; 599/697 conformance #16
@@ -121,9 +121,9 @@ impl Dataspace {
|
||||
// Read max dimensions if flags bit 0 is set
|
||||
let max_dimensions = if flags & 0x01 != 0 {
|
||||
let mut max_dims = Vec::with_capacity(rank as usize);
|
||||
for i in 0..rank as usize {
|
||||
for &dim in &dimensions {
|
||||
let val = read_length(data, pos, length_size)?;
|
||||
if dimensions[i] > val {
|
||||
if dim > val {
|
||||
return Err(FormatError::InvalidDataspace(
|
||||
"dataspace dimension size is greater than its maximum size",
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user