We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f9bcd6 commit 0dfa0c5Copy full SHA for 0dfa0c5
src/fsspec_backend.rs
@@ -130,6 +130,12 @@ impl OmFileReaderBackend for FsSpecBackend {
130
.extract::<Vec<u8>>()
131
})
132
.map_err(|e| OmFilesError::DecoderError(format!("Python I/O error {}", e)))?;
133
+
134
+ if bytes.len() != count as usize {
135
+ return Err(OmFilesError::DecoderError(format!(
136
+ "Obtained unexpected number of bytes from fsspec"
137
+ )));
138
+ }
139
Ok(bytes)
140
}
141
0 commit comments