Changeset 217498 in webkit
- Timestamp:
- May 26, 2017, 11:45:43 AM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/tests/testapi.c
r216914 r217498 1240 1240 static void testCFStrings(void) 1241 1241 { 1242 JSGlobalContextRef context = JSGlobalContextCreate(0); 1242 /* The assertion utility functions we use below expects to get the JSGlobalContextRef 1243 from the global context variable. */ 1244 JSGlobalContextRef oldContext = context; 1245 context = JSGlobalContextCreate(0); 1243 1246 1244 1247 UniChar singleUniChar = 65; // Capital A … … 1333 1336 1334 1337 JSGlobalContextRelease(context); 1338 context = oldContext; 1335 1339 } 1336 1340 #endif -
trunk/Source/JavaScriptCore/ChangeLog
r217495 r217498 1 2017-05-26 Mark Lam <mark.lam@apple.com> 2 3 REGRESSION(216914): testCFStrings encounters an invalid ExecState callee pointer. 4 https://bugs.webkit.org/show_bug.cgi?id=172651 5 6 Reviewed by Saam Barati. 7 8 This is because the assertion utility functions used in testCFStrings() expects 9 to get the JSGlobalContextRef from the global context variable. However, 10 testCFStrings() creates its own JSGlobalContextRef but does not set the global 11 context variable to it. 12 13 The fix is to make testCFStrings() initialize the global context variable properly. 14 15 * API/tests/testapi.c: 16 (testCFStrings): 17 1 18 2017-05-26 Yusuke Suzuki <utatane.tea@gmail.com> 2 19
Note:
See TracChangeset
for help on using the changeset viewer.