Skip to content

xlsb: panics on unchecked indexes (shared string index, sheet relationship, short BrtWsDim) #799

Open

Description

@toros-yossi

calamine 0.37 / 0.38 / master panic on three malformed xlsb inputs, all in xlsb/:

  1. cells_reader.rs (self.strings[isst]): a BrtCellIsst record whose shared string index is past the shared strings table, or when the workbook has no shared strings part.
  2. mod.rs (relationships[&*relid]): a sheet whose relationship id is not in workbook.bin.rels.
  3. cells_reader.rs (&buf[..16]): a BrtWsDim record shorter than 16 bytes.

Found by fuzzing. Each should return an XlsbError instead of panicking. I can share the three small seed files (~750 bytes each) if helpful.

Activity

  1. jmcnamara commented on Nov 12, 2026

    @jmcnamara
    Collaborator

    I can share the three small seed files (~750 bytes each) if helpful.

    Yes. If they are xlsb files, that would be helpful.

  2. jmcnamara commented on Nov 13, 2026

    @jmcnamara
    Collaborator

    Fix in progress: #800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfix in progressThere is an active PR to fix this issue.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions