⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 263292 in webkit


Ignore:
Timestamp:
Jun 19, 2020, 3:40:26 PM (6 years ago)
Author:
mark.lam@apple.com
Message:

toString of String doesn't check integrity of structureID in one path.
https://bugs.webkit.org/show_bug.cgi?id=213338

Reviewed by Saam Barati.

  • runtime/StringPrototype.cpp:

(JSC::stringProtoFuncToString):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r263290 r263292  
     12020-06-19  Mark Lam  <mark.lam@apple.com>
     2
     3        toString of String doesn't check integrity of structureID in one path.
     4        https://bugs.webkit.org/show_bug.cgi?id=213338
     5
     6        Reviewed by Saam Barati.
     7
     8        * runtime/StringPrototype.cpp:
     9        (JSC::stringProtoFuncToString):
     10
    1112020-06-19  Saam Barati  <sbarati@apple.com>
    212
  • trunk/Source/JavaScriptCore/runtime/StringPrototype.cpp

    r262992 r263292  
    959959    // Also used for valueOf.
    960960
    961     if (thisValue.isString())
     961    if (thisValue.isString()) {
     962        Integrity::auditStructureID(vm, thisValue.asCell()->structureID());
    962963        return JSValue::encode(thisValue);
     964    }
    963965
    964966    auto* stringObject = jsDynamicCast<StringObject*>(vm, thisValue);
Note: See TracChangeset for help on using the changeset viewer.