From 014ba5f3c4617b3470d836b538de26f33b925332 Mon Sep 17 00:00:00 2001 From: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> Date: Fri, 8 Dec 2023 18:08:21 +0000 Subject: [PATCH] Update arrow-ipc/src/reader.rs Co-authored-by: Andrew Lamb --- arrow-ipc/src/reader.rs | 1 + 1 file changed, 1 insertion(+) 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)?;