[Webkit-unassigned] [Bug 166655] New: Avoid null dereference when search input is not part of a document

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 3 11:24:26 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=166655

            Bug ID: 166655
           Summary: Avoid null dereference when search input is not part
                    of a document
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bfulgham at webkit.org

Crash traces indicate that the SearchInputType object can get into a state where the results or cancel buttons are not part of a Document. When this happens, the computedStyle() accessor returns nullptr, which can cause a crash.

This patch protects against accidentally dereferencing the nullptr returned in this case.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170103/16012a45/attachment.html>


More information about the webkit-unassigned mailing list