WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
214618
[IPC hardening] WebKit::ObjCObjectGraph::decode() and encode() should use enum ObjCType type
https://bugs.webkit.org/show_bug.cgi?id=214618
Summary
[IPC hardening] WebKit::ObjCObjectGraph::decode() and encode() should use enu...
David Kilzer (:ddkilzer)
Reported
2020-07-21 15:53:11 PDT
WebKit::ObjCObjectGraph::decode() and encode() should use enum ObjCType type. We can also get rid of default: case labels while we're here to make -Wimplicit-fallthrough emit a warning when a new enum is added. <
rdar://problem/65777899
>
Attachments
Patch v1
(9.96 KB, patch)
2020-07-21 16:39 PDT
,
David Kilzer (:ddkilzer)
youennf
: review+
Details
Formatted Diff
Diff
Patch for landing
(9.95 KB, patch)
2020-07-22 09:04 PDT
,
David Kilzer (:ddkilzer)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
David Kilzer (:ddkilzer)
Comment 1
2020-07-21 16:39:13 PDT
Created
attachment 404875
[details]
Patch v1
youenn fablet
Comment 2
2020-07-21 23:46:42 PDT
Comment on
attachment 404875
[details]
Patch v1 View in context:
https://bugs.webkit.org/attachment.cgi?id=404875&action=review
> Source/WebKit/Shared/mac/ObjCObjectGraph.mm:178 > + }
No need for { }. Ditto below.
> Source/WebKit/Shared/mac/ObjCObjectGraph.mm:252 > + }
Ditto here.
David Kilzer (:ddkilzer)
Comment 3
2020-07-22 09:02:34 PDT
Comment on
attachment 404875
[details]
Patch v1 View in context:
https://bugs.webkit.org/attachment.cgi?id=404875&action=review
>> Source/WebKit/Shared/mac/ObjCObjectGraph.mm:178 >> + } > > No need for { }. > Ditto below.
Removing these.
>> Source/WebKit/Shared/mac/ObjCObjectGraph.mm:252 >> + } > > Ditto here.
Keeping these since there are two lines of code. Thanks!
David Kilzer (:ddkilzer)
Comment 4
2020-07-22 09:04:43 PDT
Created
attachment 404926
[details]
Patch for landing
EWS
Comment 5
2020-07-22 09:28:22 PDT
Committed
r264701
: <
https://trac.webkit.org/changeset/264701
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 404926
[details]
.
David Kilzer (:ddkilzer)
Comment 6
2020-07-22 12:33:38 PDT
(In reply to EWS from
comment #5
)
> Committed
r264701
: <
https://trac.webkit.org/changeset/264701
> > > All reviewed patches have been landed. Closing bug and clearing flags on >
attachment 404926
[details]
.
Minor follow-up fix: Committed
r264720
: <
https://trac.webkit.org/changeset/264720
>
David Kilzer (:ddkilzer)
Comment 7
2020-07-22 16:39:58 PDT
(In reply to David Kilzer (:ddkilzer) from
comment #6
)
> (In reply to EWS from
comment #5
) > > Committed
r264701
: <
https://trac.webkit.org/changeset/264701
> > > > > All reviewed patches have been landed. Closing bug and clearing flags on > >
attachment 404926
[details]
. > > Minor follow-up fix: > > Committed
r264720
: <
https://trac.webkit.org/changeset/264720
>
Second minor follow-up improvement: Committed
r264732
: <
https://trac.webkit.org/changeset/264732
>
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