From 4b309391c9204e446a784ae07d3b90d974f567b8 Mon Sep 17 00:00:00 2001 From: rbran Date: Mon, 24 Nov 2025 09:18:04 -0300 Subject: [PATCH] fix til read empty compressed til header --- src/til/section.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/til/section.rs b/src/til/section.rs index a47075a..8a1c133 100644 --- a/src/til/section.rs +++ b/src/til/section.rs @@ -555,6 +555,10 @@ impl TILSection { input: &mut impl IdbRead, ) -> Result<(u32, u32, u32)> { let (ndefs, len) = Self::read_bucket_header(&mut *input)?; + // TODO find the innerref for this + if ndefs == 0 && len == 0 { + return Ok((ndefs, len, 0)); + } let compressed_len = bincode::deserialize_from(&mut *input)?; Ok((ndefs, len, compressed_len)) }