Changeset 230965 in webkit


Ignore:
Timestamp:
Apr 24, 2018 12:19:47 PM (6 years ago)
Author:
mark.lam@apple.com
Message:

Need to acquire the VM lock before calling toNumber on a JSValue.
https://bugs.webkit.org/show_bug.cgi?id=184924
<rdar://problem/39690679>

Reviewed by Saam Barati.

  • bridge/objc/objc_utility.mm:

(JSC::Bindings::convertValueToObjcValue):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r230963 r230965  
     12018-04-24  Mark Lam  <mark.lam@apple.com>
     2
     3        Need to acquire the VM lock before calling toNumber on a JSValue.
     4        https://bugs.webkit.org/show_bug.cgi?id=184924
     5        <rdar://problem/39690679>
     6
     7        Reviewed by Saam Barati.
     8
     9        * bridge/objc/objc_utility.mm:
     10        (JSC::Bindings::convertValueToObjcValue):
     11
    1122018-04-24  Tadeu Zagallo  <tzagallo@apple.com>
    213
  • trunk/Source/WebCore/bridge/objc/objc_utility.mm

    r228218 r230965  
    11/*
    2  * Copyright (C) 2004, 2013, 2016 Apple Inc.  All rights reserved.
     2 * Copyright (C) 2004-2018 Apple Inc.  All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    8282    double d = 0;
    8383
    84     if (value.isNumber() || value.isString() || value.isBoolean())
     84    if (value.isNumber() || value.isString() || value.isBoolean()) {
     85        JSLockHolder lock(exec);
    8586        d = value.toNumber(exec);
     87    }
    8688
    8789    switch (type) {
Note: See TracChangeset for help on using the changeset viewer.