Ignore:
Timestamp:
Oct 19, 2017, 5:47:04 PM (8 years ago)
Author:
[email protected]
Message:

Stringifier::appendStringifiedValue() is missing an exception check.
https://bugs.webkit.org/show_bug.cgi?id=178386
<rdar://problem/35027610>

Reviewed by Saam Barati.

JSTests:

  • stress/regress-178386.js: Added.

Source/JavaScriptCore:

  • runtime/JSONObject.cpp:

(JSC::Stringifier::appendStringifiedValue):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSONObject.cpp

    r222473 r223731  
    356356
    357357    if (value.isString()) {
    358         builder.appendQuotedJSONString(asString(value)->value(m_exec));
     358        const String& string = asString(value)->value(m_exec);
     359        RETURN_IF_EXCEPTION(scope, StringifyFailed);
     360        builder.appendQuotedJSONString(string);
    359361        return StringifySucceeded;
    360362    }
Note: See TracChangeset for help on using the changeset viewer.