Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Unified Diff: ipc/ipc_channel_nacl.cc

Issue 998833002: Increase MessageAttachmentSet::kMaxDescriptorsPerMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ipc/ipc_channel_nacl.cc
diff --git a/ipc/ipc_channel_nacl.cc b/ipc/ipc_channel_nacl.cc
index 53397f475240a776e48e74e028ab53e9b1701735..49ac1393af10891a79c181836b26551c63d23d1d 100644
--- a/ipc/ipc_channel_nacl.cc
+++ b/ipc/ipc_channel_nacl.cc
@@ -37,7 +37,7 @@ bool ReadDataOnReaderThread(int pipe, MessageContents* contents) {
return false;
contents->data.resize(Channel::kReadBufferSize);
- contents->fds.resize(MessageAttachmentSet::kMaxDescriptorsPerMessage);
+ contents->fds.resize(NACL_ABI_IMC_DESC_MAX);
dmichael (off chromium) 2015/03/12 22:07:16 We want this number to be == kMaxDescriptorsPerMes
Yusuke Sato 2015/03/12 22:19:28 NACL_ABI_IMC_DESC_MAX defined in native_client/ is
NaClAbiNaClImcMsgIoVec iov = { &contents->data[0], contents->data.size() };
NaClAbiNaClImcMsgHdr msg = {

Powered by Google App Engine
This is Rietveld 408576698