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

Changeset 243754 in webkit


Ignore:
Timestamp:
Apr 2, 2019, 12:56:58 PM (7 years ago)
Author:
msaboff@apple.com
Message:

Crash in Options::setOptions() using --configFile option and libgmalloc
https://bugs.webkit.org/show_bug.cgi?id=196506

Reviewed by Keith Miller.

Changed to call CString::data() while making the call to Options::setOptions(). This keeps
the implicit CString temporary alive until after setOptions() returns.

  • runtime/ConfigFile.cpp:

(JSC::ConfigFile::parse):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r243746 r243754  
     12019-04-02  Michael Saboff  <msaboff@apple.com>
     2
     3        Crash in Options::setOptions() using --configFile option and libgmalloc
     4        https://bugs.webkit.org/show_bug.cgi?id=196506
     5
     6        Reviewed by Keith Miller.
     7
     8        Changed to call CString::data() while making the call to Options::setOptions().  This keeps
     9        the implicit CString temporary alive until after setOptions() returns.
     10
     11        * runtime/ConfigFile.cpp:
     12        (JSC::ConfigFile::parse):
     13
    1142019-04-02  Fujii Hironori  <Hironori.Fujii@sony.com>
    215
  • trunk/Source/JavaScriptCore/runtime/ConfigFile.cpp

    r235935 r243754  
    466466
    467467        if (!jscOptionsBuilder.isEmpty()) {
    468             const char* optionsStr = jscOptionsBuilder.toString().utf8().data();
    469468            Options::enableRestrictedOptions(true);
    470             Options::setOptions(optionsStr);
     469            Options::setOptions(jscOptionsBuilder.toString().utf8().data());
    471470        }
    472471    } else
Note: See TracChangeset for help on using the changeset viewer.