Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 59012130505d6145ec4e7a8dc6e718106a8baba7
      
https://github.com/WebKit/WebKit/commit/59012130505d6145ec4e7a8dc6e718106a8baba7
  Author: Mark Lam <[email protected]>
  Date:   2024-05-24 (Fri, 24 May 2024)

  Changed paths:
    M Source/JavaScriptCore/bytecode/CodeBlock.cpp
    M Source/JavaScriptCore/bytecode/MetadataTable.cpp
    M Source/JavaScriptCore/bytecode/MetadataTable.h

  Log Message:
  -----------
  Speculative mitigation against a crash involving CodeBlock::m_metadata.
https://bugs.webkit.org/show_bug.cgi?id=274691
rdar://127571559

Reviewed by Yijia Huang and Yusuke Suzuki.

We sometimes see crashes due to CodeBlock::m_metadata->unlinkedMetadata() being 
null.
This change adds a speculative null check to mitigate against stepping on this.

* Source/JavaScriptCore/bytecode/CodeBlock.cpp:
(JSC::CodeBlock::~CodeBlock):
* Source/JavaScriptCore/bytecode/MetadataTable.cpp:
(JSC::MetadataTable::destroy):
* Source/JavaScriptCore/bytecode/MetadataTable.h:
(JSC::MetadataTable::isDestroyed const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to