From 42816d81126ebdaaf568c52794ce0b0f511c8af2 Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Thu, 21 Nov 2019 01:26:08 +0000 Subject: [PATCH] Bug 1597211 - Do not cast IPC message size to signed int. r=jld Differential Revision: https://phabricator.services.mozilla.com/D53793 --HG-- extra : moz-landing-system : lando --- ipc/glue/MessageLink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc/glue/MessageLink.cpp b/ipc/glue/MessageLink.cpp index 1fb75c6a9e13..49ba59258ba1 100644 --- a/ipc/glue/MessageLink.cpp +++ b/ipc/glue/MessageLink.cpp @@ -147,7 +147,7 @@ void ProcessLink::SendMessage(Message* msg) { nsDependentCString(msg->name())); CrashReporter::AnnotateCrashReport( CrashReporter::Annotation::IPCMessageSize, - static_cast(msg->size())); + static_cast(msg->size())); MOZ_CRASH("IPC message size is too large"); }