[Webkit-unassigned] [Bug 189154] New: Add nullptr check to String::is8Bit()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 30 08:47:17 PDT 2018


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

            Bug ID: 189154
           Summary: Add nullptr check to String::is8Bit()
           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

A default initialized or null string wraps a nullptr StringImpl. Most accessors in WTFString.cpp, such as isAllASCII(), hash(), etc., perform a nullptr check before using m_impl, but is8Bit() does not.

This patch adds a check in the is8Bit() implementation to be consistent with other methods, and to address a small number of crashes observed in testing.

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


More information about the webkit-unassigned mailing list