diff options
Diffstat (limited to 'ipc/glue/NodeChannel.cpp')
-rw-r--r-- | ipc/glue/NodeChannel.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ipc/glue/NodeChannel.cpp b/ipc/glue/NodeChannel.cpp index 70e67bc473..169aa91f9b 100644 --- a/ipc/glue/NodeChannel.cpp +++ b/ipc/glue/NodeChannel.cpp @@ -170,12 +170,10 @@ void NodeChannel::AcceptInvite(const NodeName& aRealName, void NodeChannel::SendMessage(UniquePtr<IPC::Message> aMessage) { if (aMessage->size() > IPC::Channel::kMaximumMessageSize) { - CrashReporter::AnnotateCrashReport( - CrashReporter::Annotation::IPCMessageName, - nsDependentCString(aMessage->name())); - CrashReporter::AnnotateCrashReport( - CrashReporter::Annotation::IPCMessageSize, - static_cast<unsigned int>(aMessage->size())); + CrashReporter::RecordAnnotationCString( + CrashReporter::Annotation::IPCMessageName, aMessage->name()); + CrashReporter::RecordAnnotationU32( + CrashReporter::Annotation::IPCMessageSize, aMessage->size()); MOZ_CRASH("IPC message size is too large"); } aMessage->AssertAsLargeAsHeader(); |