Skip to content

Commit b5a8bf5

Browse files
committed
fix: skip malformed formats
1 parent 3ee7883 commit b5a8bf5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/xls.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,11 @@ impl<RS: Read + Seek> Xls<RS> {
338338
self.is_1904 = true
339339
}
340340
}
341-
// FORMATTING
341+
// 2.4.126 FORMATTING
342342
0x041E => {
343-
let (idx, format) = parse_format(&mut r, &encoding)?;
343+
let Ok((idx, format)) = parse_format(&mut r, &encoding) else {
344+
continue;
345+
};
344346
formats.insert(idx, format);
345347
}
346348
// XFS

0 commit comments

Comments
 (0)