Skip to content

Integer overflow in the pages field of BibLaTeX entries #9117

Backlog

Description

@quarterwave0

Description

I noticed that if the pages field for an article in a bibliography file exceeds the 32-bit limit, it will overflow. I noticed this first with the style american-physics-society. This is on Typst 0.15.1.

test.bib:

@article{test,
  title = {Example where pages == i32::MAX},
  author = {quarterwave0},
  journaltitle = {Bugs and Erratum},
  date = {2026},
  pages = {2147483647},
}
@article{test2,
  title = {Example where pages == 1 + i32::MAX},
  author = {quarterwave0},
  journaltitle = {Bugs and Erratum},
  date = {2026},
  pages = {2147483648},
}

main.typ:

#bibliography("test.bib", full: true)

I have attached a screenshot of the resultant output, based on the web app.

bugreport

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Nov 28, 2026
  2. Lege19 commented on Nov 28, 2026

    @Lege19
    Contributor

    I'm sure this will effect a lot of typst users between now and the end of the world

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions