[webkit-changes] [WebKit/WebKit] a32bbf: Nullptr crash in elementCannotHaveEndTag

Ryosuke Niwa noreply at github.com
Fri Oct 13 14:57:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a32bbf9a620959bd50deb3c6d58626db4c78c6d4
      https://github.com/WebKit/WebKit/commit/a32bbf9a620959bd50deb3c6d58626db4c78c6d4
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2023-10-13 (Fri, 13 Oct 2023)

  Changed paths:
    M Source/WebCore/editing/MarkupAccumulator.cpp

  Log Message:
  -----------
  Nullptr crash in elementCannotHaveEndTag
https://bugs.webkit.org/show_bug.cgi?id=263100
<rdar://116331745>

Reviewed by Sihui Liu and Wenson Hsieh.

Added an early return for when current becomes null. Somehow this happens in wild
but we don't know how we get into that state so keep a debug assert there instead.

* Source/WebCore/editing/MarkupAccumulator.cpp:
(WebCore::MarkupAccumulator::serializeNodesWithNamespaces):

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




More information about the webkit-changes mailing list