DescriptionResize IPC input buffer to fit the next message.
Sometimes we can get IPC message size from its header. In those cases
we resize IPC::ChannelReader' overflow buffer to fit the entire message
to avoid growing / reallocating it as we receive message's data.
BUG=529940
Committed: https://crrev.com/6f3790a15d0a5463e18dd7220e4f2028a6318389
Cr-Commit-Position: refs/heads/master@{#351586}
Patch Set 1 #Patch Set 2 : Rework PeekNext() / add tests #Patch Set 3 : Add ChannelReader test #Patch Set 4 : Early max message size check; tests #Patch Set 5 : Fix errors #Patch Set 6 : MSVC fixes #Patch Set 7 : 64-bit MSVC fix #Patch Set 8 : Fix overflow test to actually overflow on 32-bit #
Total comments: 9
Patch Set 9 : Fix tests and address comments #
Total comments: 2
Dependent Patchsets: Messages
Total messages: 16 (2 generated)
|