RESOLVED FIXED 230743
IPC SimpleArgumentEncoder should static_assert(std::is_trivially_copyable<T>)
https://bugs.webkit.org/show_bug.cgi?id=230743
Summary IPC SimpleArgumentEncoder should static_assert(std::is_trivially_copyable<T>)
Kimmo Kinnunen
Reported 2021-09-24 01:47:53 PDT
IPC SimpleArgumentEncoder should static_assert(std::is_trivially_copyable<T>)
Attachments
Patch (1.94 KB, patch)
2021-10-05 12:49 PDT, Chris Dumez
no flags
Patch (1.35 KB, patch)
2021-10-06 07:30 PDT, Chris Dumez
no flags
Radar WebKit Bug Importer
Comment 1 2021-10-01 01:48:17 PDT
Chris Dumez
Comment 2 2021-10-05 12:49:43 PDT
Kimmo Kinnunen
Comment 3 2021-10-06 04:16:26 PDT
Comment on attachment 440250 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=440250&action=review > Source/WebKit/Platform/IPC/ArgumentCoders.h:47 > template<typename Encoder> I think you should be able to assert once in the class scope. template<typename T> struct SimpleArgumentCoder { static_assert(std::is_trivially_copyable_v<T>); ....
Chris Dumez
Comment 4 2021-10-06 07:30:55 PDT
Chris Dumez
Comment 5 2021-10-06 07:31:03 PDT
(In reply to Kimmo Kinnunen from comment #3) > Comment on attachment 440250 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=440250&action=review > > > Source/WebKit/Platform/IPC/ArgumentCoders.h:47 > > template<typename Encoder> > > I think you should be able to assert once in the class scope. > > template<typename T> struct SimpleArgumentCoder { > static_assert(std::is_trivially_copyable_v<T>); > .... Indeed, fixed.
EWS
Comment 6 2021-10-06 07:32:10 PDT
Kimmo Kinnunen found in /Volumes/Data/worker/Commit-Queue/build/Source/WebKit/ChangeLog does not appear to be a valid reviewer according to contributors.json. /Volumes/Data/worker/Commit-Queue/build/Source/WebKit/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive).
EWS
Comment 7 2021-10-06 08:21:38 PDT
Committed r283618 (242570@main): <https://commits.webkit.org/242570@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 440364 [details].
Note You need to log in before you can comment on or make changes to this bug.