зеркало из https://github.com/mozilla/gecko-dev.git
Bug 834526, r=cjones.
This commit is contained in:
Родитель
06d79bdc77
Коммит
d48efc0c7a
|
@ -642,7 +642,11 @@ bool Channel::ChannelImpl::ProcessOutgoingMessages() {
|
|||
struct cmsghdr *cmsg;
|
||||
const unsigned num_fds = msg->file_descriptor_set()->size();
|
||||
|
||||
DCHECK_LE(num_fds, FileDescriptorSet::MAX_DESCRIPTORS_PER_MESSAGE);
|
||||
if (num_fds > FileDescriptorSet::MAX_DESCRIPTORS_PER_MESSAGE) {
|
||||
LOG(FATAL) << "Too many file descriptors!";
|
||||
// This should not be reached.
|
||||
return false;
|
||||
}
|
||||
|
||||
msgh.msg_control = buf;
|
||||
msgh.msg_controllen = CMSG_SPACE(sizeof(int) * num_fds);
|
||||
|
|
Загрузка…
Ссылка в новой задаче