Changeset 247274 in webkit


Ignore:
Timestamp:
Jul 9, 2019 1:28:15 PM (5 years ago)
Author:
Chris Dumez
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):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r247272 r247274  
     12019-07-09  Chris Dumez  <cdumez@apple.com>
     2
     3        Fix validation of method signature in decodeInvocation()
     4        https://bugs.webkit.org/show_bug.cgi?id=199629
     5        <rdar://problem/52731659>
     6
     7        Reviewed by Dan Bernstein.
     8
     9        The decoder was mistakenly assigning remoteMethodSignature to localMethodSignature
     10        before comparing remoteMethodSignature and localMethodSignature, thus making the
     11        check useless.
     12
     13        * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
     14        (decodeInvocation):
     15
    1162019-07-09  Youenn Fablet  <youenn@apple.com>
    217
  • trunk/Source/WebKit/Shared/API/Cocoa/WKRemoteObjectCoder.mm

    r242339 r247274  
    608608
    609609    NSMethodSignature *remoteMethodSignature = [NSMethodSignature signatureWithObjCTypes:typeSignature.UTF8String];
    610     localMethodSignature = remoteMethodSignature;
    611610    if (![localMethodSignature isEqual:remoteMethodSignature])
    612611        [NSException raise:NSInvalidUnarchiveOperationException format:@"Local and remote method signatures are not equal for method \"%s\"", selector ? sel_getName(selector) : "(no selector)"];
Note: See TracChangeset for help on using the changeset viewer.