[webkit-changes] [WebKit/WebKit] f37538: Make sure provisionalOrCurrentIndex stays in bound...

Alex Christensen noreply at github.com
Wed Jan 8 20:15:16 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f37538955bfff62b89b3ad9462c7a2e236e99ac9
      https://github.com/WebKit/WebKit/commit/f37538955bfff62b89b3ad9462c7a2e236e99ac9
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2025-01-08 (Wed, 08 Jan 2025)

  Changed paths:
    M Source/WebKit/UIProcess/WebBackForwardList.cpp

  Log Message:
  -----------
  Make sure provisionalOrCurrentIndex stays in bounds in WebBackForwardList::addItem
rdar://142588446
https://bugs.webkit.org/show_bug.cgi?id=285652

Reviewed by Charlie Wolfe.

When removing an entry, if there are no more entries, then we have no next or provisional
index.  This will prevent a crash where we try to read out of bounds but Vector::operator[]
crashes for us.

* Source/WebKit/UIProcess/WebBackForwardList.cpp:
(WebKit::WebBackForwardList::addItem):

Canonical link: https://commits.webkit.org/288632@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list