WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
172259
Remote Inspector: Be stricter about checking message types
https://bugs.webkit.org/show_bug.cgi?id=172259
Summary
Remote Inspector: Be stricter about checking message types
Joseph Pecoraro
Reported
2017-05-17 20:54:31 PDT
Be stricter about checking message types for incoming remote inspector messages. The type of things inside the RemoteInspector::received*Message() dictionaries.
Attachments
[PATCH] Proposed Fix
(12.45 KB, patch)
2017-05-17 20:58 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(12.51 KB, patch)
2017-05-17 21:01 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(12.54 KB, patch)
2017-05-17 21:05 PDT
,
Joseph Pecoraro
bburg
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-05-17 20:55:03 PDT
<
rdar://problem/32264839
>
Joseph Pecoraro
Comment 2
2017-05-17 20:58:21 PDT
Created
attachment 310480
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 3
2017-05-17 21:00:49 PDT
Comment on
attachment 310480
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=310480&action=review
> Source/JavaScriptCore/inspector/remote/cocoa/RemoteInspectorCocoa.mm:651 > + unsigned rejectionIdentifier = targetIdentifierNumber.unsignedIntValue;
Interesting. All of the others are `unsignedIntegerValue`, I will update this one.
Joseph Pecoraro
Comment 4
2017-05-17 21:01:59 PDT
Created
attachment 310482
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 5
2017-05-17 21:03:06 PDT
Comment on
attachment 310482
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=310482&action=review
> Source/JavaScriptCore/inspector/remote/cocoa/RemoteInspectorCocoa.mm:-498 > - unsigned targetIdentifier = [[userInfo objectForKey:WIRTargetIdentifierKey] unsignedIntegerValue];
On second thought, these should all be `unsignedIntValue` which returns a `unsigned` type not `NSUInteger`.
Joseph Pecoraro
Comment 6
2017-05-17 21:05:03 PDT
Created
attachment 310483
[details]
[PATCH] Proposed Fix
Blaze Burg
Comment 7
2017-05-18 10:13:18 PDT
Comment on
attachment 310483
[details]
[PATCH] Proposed Fix r=me
Joseph Pecoraro
Comment 8
2017-05-18 11:09:55 PDT
<
https://trac.webkit.org/r217051
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug