[Webkit-unassigned] [Bug 154340] New: StringPrototype functions should check for exceptions after calling JSString::value().

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 17 10:15:30 PST 2016


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

            Bug ID: 154340
           Summary: StringPrototype functions should check for exceptions
                    after calling JSString::value().
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Local 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

JSString::value() can throw an exception if the JS string is a rope and value() needs to resolve the rope but encounters an OutOfMemory error.  If value() is not able to resolve the rope, it will return a null string (in addition to throwing the exception).  If StringPrototype functions do not check for exceptions after calling JSString::value(), they may eventually use the returned null string and crash the VM.

The fix is to add all the necessary exception checks, and do the appropriate handling if needed.

-- 
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/20160217/1c472339/attachment.html>


More information about the webkit-unassigned mailing list