Chromium Code Reviews
DescriptionUse safer IPC serializations in media_param_traits.cc
The custom serialization routines for these classes used base::Pickle's
serialization/deserialization routines directly rather than using the
type-deducing ReadParam/WriteParam helpers. These helpers have the bonus
of using any pre-existing ParamTraits defined for the type, so the
custom serialization doesn't have to remember to check that enum values
are in range, etc.
BUG=504205
Committed: https://crrev.com/3c49f49b2c6d873fb5b23abc52cde08de7909b88
Cr-Commit-Position: refs/heads/master@{#336861}
Patch Set 1 #Patch Set 2 : Fix omission in AUDIO_FORMAT_LAST #Patch Set 3 : Fix dangling refs to old enum name #Patch Set 4 : Try harder to force invalid enum values #
Total comments: 7
Patch Set 5 : Clean up unit tests #
Messages
Total messages: 13 (4 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||