From dd3090f395c6761b41df0d035e3f5a3a80481e5b Mon Sep 17 00:00:00 2001 From: Jed Davis Date: Thu, 28 Jan 2016 08:43:46 +0100 Subject: [PATCH] Bug 1240911 - Prevent SerializedStructuredCloneBuffer from escaping into the heap. r=amarchesini --- ipc/glue/IPCMessageUtils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipc/glue/IPCMessageUtils.h b/ipc/glue/IPCMessageUtils.h index 4984671631e..1677c586226 100644 --- a/ipc/glue/IPCMessageUtils.h +++ b/ipc/glue/IPCMessageUtils.h @@ -11,6 +11,7 @@ #include "chrome/common/ipc_message_utils.h" #include "mozilla/ArrayUtils.h" +#include "mozilla/Attributes.h" #include "mozilla/DebugOnly.h" #include "mozilla/dom/ipc/StructuredCloneData.h" #include "mozilla/Maybe.h" @@ -60,7 +61,7 @@ struct null_t { bool operator==(const null_t&) const { return true; } }; -struct SerializedStructuredCloneBuffer +struct MOZ_STACK_CLASS SerializedStructuredCloneBuffer { SerializedStructuredCloneBuffer() : data(nullptr), dataLength(0)