Review 14.3 Merged

96196[BUGFIX] Prevent integer overflow in paginator offset calculation

Georg Ringer CR +2 V +2 Easy +16 −1 updated 09/30/26, 06:23

Commit message

AbstractPaginator calculated the offset from the requested page
number before the page number was clamped to the last page. For a
huge page number, e.g. taken from a request parameter, the
multiplication overflowed to float and casting it to int raised
a warning with PHP 8.5.

The offset is now calculated after the page number has been clamped,
which also makes the int cast obsolete.

Review

  • Code review CR +2 Done
    • Georg Ringer +2
  • Verified V +2 Done
    • Georg Ringer +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 34

  1. Georg Ringer commented on patch set 1 09/30/26, 05:50

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 09/30/26, 06:00 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109570

  3. Georg Ringer voted on patch set 1 CR +2 V +2 09/30/26, 06:23

  4. Georg Ringer merged patch set 2 09/30/26, 06:23