Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Unified Diff: content/browser/renderer_host/render_sandbox_host_linux.cc

Issue 11446048: The correct type for the size of a chunk of memory is size_t. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/shared_memory_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_sandbox_host_linux.cc
===================================================================
--- content/browser/renderer_host/render_sandbox_host_linux.cc (revision 175576)
+++ content/browser/renderer_host/render_sandbox_host_linux.cc (working copy)
@@ -391,8 +391,10 @@
PickleIterator iter,
std::vector<int>& fds) {
base::SharedMemoryCreateOptions options;
- if (!pickle.ReadUInt32(&iter, &options.size))
+ uint32_t size;
+ if (!pickle.ReadUInt32(&iter, &size))
return;
+ options.size = size;
if (!pickle.ReadBool(&iter, &options.executable))
return;
int shm_fd = -1;
« no previous file with comments | « base/shared_memory_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698