Title: [247274] trunk/Source/WebKit
- Revision
- 247274
- Author
- [email protected]
- Date
- 2019-07-09 13:28:15 -0700 (Tue, 09 Jul 2019)
Log Message
Fix validation of method signature in decodeInvocation()
https://bugs.webkit.org/show_bug.cgi?id=199629
<rdar://problem/52731659>
Reviewed by Dan Bernstein.
The decoder was mistakenly assigning remoteMethodSignature to localMethodSignature
before comparing remoteMethodSignature and localMethodSignature, thus making the
check useless.
* Shared/API/Cocoa/WKRemoteObjectCoder.mm:
(decodeInvocation):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (247273 => 247274)
--- trunk/Source/WebKit/ChangeLog 2019-07-09 20:03:08 UTC (rev 247273)
+++ trunk/Source/WebKit/ChangeLog 2019-07-09 20:28:15 UTC (rev 247274)
@@ -1,3 +1,18 @@
+2019-07-09 Chris Dumez <[email protected]>
+
+ Fix validation of method signature in decodeInvocation()
+ https://bugs.webkit.org/show_bug.cgi?id=199629
+ <rdar://problem/52731659>
+
+ Reviewed by Dan Bernstein.
+
+ The decoder was mistakenly assigning remoteMethodSignature to localMethodSignature
+ before comparing remoteMethodSignature and localMethodSignature, thus making the
+ check useless.
+
+ * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
+ (decodeInvocation):
+
2019-07-09 Youenn Fablet <[email protected]>
Revert conditional WebPageProxy check to grant universal file read sandbox upon correct sandbox creation
Modified: trunk/Source/WebKit/Shared/API/Cocoa/WKRemoteObjectCoder.mm (247273 => 247274)
--- trunk/Source/WebKit/Shared/API/Cocoa/WKRemoteObjectCoder.mm 2019-07-09 20:03:08 UTC (rev 247273)
+++ trunk/Source/WebKit/Shared/API/Cocoa/WKRemoteObjectCoder.mm 2019-07-09 20:28:15 UTC (rev 247274)
@@ -607,7 +607,6 @@
[NSException raise:NSInvalidUnarchiveOperationException format:@"Invocation had no type signature"];
NSMethodSignature *remoteMethodSignature = [NSMethodSignature signatureWithObjCTypes:typeSignature.UTF8String];
- localMethodSignature = remoteMethodSignature;
if (![localMethodSignature isEqual:remoteMethodSignature])
[NSException raise:NSInvalidUnarchiveOperationException format:@"Local and remote method signatures are not equal for method \"%s\"", selector ? sel_getName(selector) : "(no selector)"];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes