| Summary: | IPC SimpleArgumentEncoder should static_assert(std::is_trivially_copyable<T>) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Kimmo Kinnunen <kkinnunen> | ||||||
| Component: | WebKit2 | Assignee: | Chris Dumez <cdumez> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | andersca, cdumez, darin, ggaren, kkinnunen, sam, simon.fraser, webkit-bug-importer, wenson_hsieh | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Local Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=230714 | ||||||||
| Bug Depends on: | 230744 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Kimmo Kinnunen
2021-09-24 01:47:53 PDT
Created attachment 440250 [details]
Patch
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>); .... Created attachment 440364 [details]
Patch
(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. 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). 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]. |