diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-26 11:29:44 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-26 11:29:44 +0000 |
commit | d7d587195e0008c8bfc40d7c2e6805730ecfdba4 (patch) | |
tree | 34bb23e78d2f36db29a0310e3f58e5c0579c222f /ipc/ipc_channel_posix.cc | |
parent | a4cfe64298a1da9b18aeac58900ef5e6be35e77b (diff) | |
download | chromium_src-d7d587195e0008c8bfc40d7c2e6805730ecfdba4.zip chromium_src-d7d587195e0008c8bfc40d7c2e6805730ecfdba4.tar.gz chromium_src-d7d587195e0008c8bfc40d7c2e6805730ecfdba4.tar.bz2 |
Revert "Better handle oversized IPC messages" r37102
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_channel_posix.cc')
-rw-r--r-- | ipc/ipc_channel_posix.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc index 4e00964..545ad0c 100644 --- a/ipc/ipc_channel_posix.cc +++ b/ipc/ipc_channel_posix.cc @@ -734,10 +734,6 @@ bool Channel::ChannelImpl::ProcessOutgoingMessages() { while (!output_queue_.empty()) { Message* msg = output_queue_.front(); - // Oversized messages should be rejected in Send(). - DCHECK_LE(msg->size(), kMaximumMessageSize) - << "Attempt to send oversized message"; - #if defined(OS_LINUX) scoped_ptr<Message> hello; if (remote_fd_pipe_ != -1 && @@ -888,15 +884,6 @@ bool Channel::ChannelImpl::ProcessOutgoingMessages() { } bool Channel::ChannelImpl::Send(Message* message) { - if(message->size(), kMaximumMessageSize) { - LOG(ERROR) << "Attempt to send oversized message " - << message->size() - << " type=" - << message->type(); - Close(); - delete message; - return false; - } #ifdef IPC_MESSAGE_DEBUG_EXTRA DLOG(INFO) << "sending message @" << message << " on channel @" << this << " with type " << message->type() |