commit | aa08dcb68160a8689596d52cccf65aad66f92eae | [log] [tgz] |
---|---|---|
author | dskiba <dskiba@google.com> | Thu Oct 01 02:24:30 2015 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 01:31:23 2020 +0900 |
tree | f3c37a3b361d296475a55784e1e4d293f389e5ad | |
parent | 74e6e8b2a38df1209b6e1ffebaa886b3277b0efb [diff] |
Resize 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 Review URL: https://codereview.chromium.org/1345353004 Cr-Commit-Position: refs/heads/master@{#351586} CrOS-Libchrome-Original-Commit: 6f3790a15d0a5463e18dd7220e4f2028a6318389