| Index: content/browser/renderer_host/render_sandbox_host_linux.cc
|
| diff --git a/content/browser/renderer_host/render_sandbox_host_linux.cc b/content/browser/renderer_host/render_sandbox_host_linux.cc
|
| index ae052fac93fa506403964c59785301d5ca83ef67..6d953b9a6057db7609e80e24925579705895d13e 100644
|
| --- a/content/browser/renderer_host/render_sandbox_host_linux.cc
|
| +++ b/content/browser/renderer_host/render_sandbox_host_linux.cc
|
| @@ -373,12 +373,14 @@ class SandboxIPCProcess {
|
|
|
| void HandleMakeSharedMemorySegment(int fd, const Pickle& pickle, void* iter,
|
| std::vector<int>& fds) {
|
| - uint32_t shm_size;
|
| - if (!pickle.ReadUInt32(&iter, &shm_size))
|
| + base::SharedMemoryCreateOptions options;
|
| + if (!pickle.ReadUInt32(&iter, &options.size))
|
| + return;
|
| + if (!pickle.ReadBool(&iter, &options.executable))
|
| return;
|
| int shm_fd = -1;
|
| base::SharedMemory shm;
|
| - if (shm.CreateAnonymous(shm_size))
|
| + if (shm.Create(options))
|
| shm_fd = shm.handle().fd;
|
| Pickle reply;
|
| SendRendererReply(fds, reply, shm_fd);
|
|
|