[Webkit-unassigned] [Bug 164701] New: Some of JSStringView::SafeView methods are not idiomatically safe for JSString conversions to StringView.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 13 08:26:53 PST 2016


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

            Bug ID: 164701
           Summary: Some of JSStringView::SafeView methods are not
                    idiomatically safe for JSString conversions to
                    StringView.
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mark.lam at apple.com

Specifically, characters8(), characters16(), and operator[] converts the JSString to a StringView via get(), and then uses the StringView without first checking if an exception was thrown during the conversion.  Instead, we should remove these 3 convenience methods, and make the caller explicitly call get() and do the appropriate exception checks before using the StringView.

-- 
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/20161113/641d7a03/attachment.html>


More information about the webkit-unassigned mailing list