⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 287011 in webkit


Ignore:
Timestamp:
Dec 13, 2021, 8:55:38 PM (5 years ago)
Author:
Kate Cheney
Message:

WebContent process crashes at ContentSecurityPolicySourceList::matchesAll
https://bugs.webkit.org/show_bug.cgi?id=234288
rdar://problem/86438924

Reviewed by Simon Fraser.

  • page/csp/ContentSecurityPolicyDirectiveList.cpp:

(WebCore::ContentSecurityPolicyDirectiveList::violatedDirectiveForScript const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r287010 r287011  
     12021-12-13  Kate Cheney  <katherine_cheney@apple.com>
     2
     3        WebContent process crashes at ContentSecurityPolicySourceList::matchesAll
     4        https://bugs.webkit.org/show_bug.cgi?id=234288
     5        rdar://problem/86438924
     6
     7        Reviewed by Simon Fraser.
     8
     9        * page/csp/ContentSecurityPolicyDirectiveList.cpp:
     10        (WebCore::ContentSecurityPolicyDirectiveList::violatedDirectiveForScript const):
     11
    1122021-12-13  Alex Christensen  <achristensen@webkit.org>
    213
  • trunk/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp

    r286853 r287011  
    392392    auto* operativeDirective = this->operativeDirective(m_scriptSrc.get(), ContentSecurityPolicyDirectiveNames::scriptSrcElem);
    393393
    394     if (operativeDirective->containsAllHashes(subResourceIntegrityDigests))
     394    if (!operativeDirective || operativeDirective->containsAllHashes(subResourceIntegrityDigests))
    395395        return nullptr;
    396396
Note: See TracChangeset for help on using the changeset viewer.