[webkit-changes] [WebKit/WebKit] d49fce: Nullptr crash in WebCore::SecurityContext::policyC...

pratiksha-99 noreply at github.com
Wed Oct 16 23:37:39 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d49fce1a2c4acc300a3b77a5c3e4d634a452ceff
      https://github.com/WebKit/WebKit/commit/d49fce1a2c4acc300a3b77a5c3e4d634a452ceff
  Author: Pratiksha Choudhury <p_choudhury at apple.com>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    A LayoutTests/fast/files/filereader-invalid-policy-container-expected.txt
    A LayoutTests/fast/files/filereader-invalid-policy-container.html
    M Source/WebCore/fileapi/FileReaderLoader.cpp

  Log Message:
  -----------
  Nullptr crash in WebCore::SecurityContext::policyContainer
https://bugs.webkit.org/show_bug.cgi?id=281548
rdar://137177434

Reviewed by Sihui Liu and Ryosuke Niwa.

Added a nullptr check for contentSecurityPolicy() before fetching its policyContainer().

* LayoutTests/fast/files/filereader-invalid-policy-container-expected.txt: Added.
* LayoutTests/fast/files/filereader-invalid-policy-container.html: Added.
* Source/WebCore/fileapi/FileReaderLoader.cpp:
(WebCore::FileReaderLoader::start):

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



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


More information about the webkit-changes mailing list