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

Changeset 287042 in webkit


Ignore:
Timestamp:
Dec 14, 2021, 12:23:42 PM (5 years ago)
Author:
Russell Epstein
Message:

Cherry-pick r287011. rdar://problem/86438924

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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287011 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-613.1.12-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-613.1.12-branch/Source/WebCore/ChangeLog

    r286944 r287042  
     12021-12-14  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r287011. rdar://problem/86438924
     4
     5    WebContent process crashes at ContentSecurityPolicySourceList::matchesAll
     6    https://bugs.webkit.org/show_bug.cgi?id=234288
     7    rdar://problem/86438924
     8   
     9    Reviewed by Simon Fraser.
     10   
     11    * page/csp/ContentSecurityPolicyDirectiveList.cpp:
     12    (WebCore::ContentSecurityPolicyDirectiveList::violatedDirectiveForScript const):
     13   
     14   
     15    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     16
     17    2021-12-13  Kate Cheney  <katherine_cheney@apple.com>
     18
     19            WebContent process crashes at ContentSecurityPolicySourceList::matchesAll
     20            https://bugs.webkit.org/show_bug.cgi?id=234288
     21            rdar://problem/86438924
     22
     23            Reviewed by Simon Fraser.
     24
     25            * page/csp/ContentSecurityPolicyDirectiveList.cpp:
     26            (WebCore::ContentSecurityPolicyDirectiveList::violatedDirectiveForScript const):
     27
    1282021-12-13  Youenn Fablet  <youenn@apple.com>
    229
  • branches/safari-613.1.12-branch/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp

    r286853 r287042  
    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.