Branch: refs/heads/webkitglib/2.50
  Home:   https://github.com/WebKit/WebKit
  Commit: 6d01160b73867fc7d129eafde614b9ff16dac517
      
https://github.com/WebKit/WebKit/commit/6d01160b73867fc7d129eafde614b9ff16dac517
  Author: David Kilzer <[email protected]>
  Date:   2026-01-22 (Thu, 22 Jan 2026)

  Changed paths:
    M Source/WebCore/style/MatchedDeclarationsCache.cpp

  Log Message:
  -----------
  Cherry-pick 305989@main (45684cc85f9f). 
https://bugs.webkit.org/show_bug.cgi?id=305864

    [CSS] Crash due to release assert in HashTable when 
MatchedDeclarationsCache::computeHash() returns 0xFFFFFFFF
    <https://bugs.webkit.org/show_bug.cgi?id=305864>
    <rdar://118164567>

    Reviewed by Chris Dumez.

    MatchedDeclarationsCache::computeHash() calls avalancheBits(hash) to
    compute a hash, which may return the deleted value.  This would lead to
    the release assert firing when attempting to add the deleted value to a
    HashTable.

    The fix is to call AlreadyHashed::avoidDeletedValue() to avoid using the
    deleted value as a hash key.

    No new tests since this hash key is computed using the value of pointers
    to memory addresses, and thus is nondeterministic.

    * Source/WebCore/style/MatchedDeclarationsCache.cpp:
    (WebCore::Style::MatchedDeclarationsCache::computeHash):
    - Use WTF::AlreadyHashed::avoidDeletedValue() to avoid returning the
      value of a deleted hash table entry.

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

Canonical link: https://commits.webkit.org/298234.403@webkitglib/2.50



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

Reply via email to