Bug 1240911 - Prevent SerializedStructuredCloneBuffer from escaping into the heap. r=amarchesini

This commit is contained in:
Jed Davis 2016-01-28 08:43:46 +01:00
parent bba443a226
commit dd3090f395

View File

@ -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)