diff --git a/arrow-ipc/src/reader.rs b/arrow-ipc/src/reader.rs index b0b946ffbb3d..06e53505fc22 100644 --- a/arrow-ipc/src/reader.rs +++ b/arrow-ipc/src/reader.rs @@ -575,6 +575,7 @@ impl FileReader { /// /// Returns errors if the file does not meet the Arrow Format footer requirements pub fn try_new(mut reader: R, projection: Option>) -> Result { + // Space for ARROW_MAGIC (6 bytes) and length (4 bytes) let mut buffer = [0; 10]; reader.seek(SeekFrom::End(-10))?; reader.read_exact(&mut buffer)?;