diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | chrome/browser/renderer_host/render_sandbox_host_linux.cc | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -75,3 +75,4 @@ Novell Inc. Ryan Sleevi <ryan.sleevi@gmail.com> Satoshi Matsuzaki <satoshi.matsuzaki@gmail.com> Benjamin Jemlich <pcgod99@gmail.com> +Ningxin Hu <ningxin.hu@intel.com> diff --git a/chrome/browser/renderer_host/render_sandbox_host_linux.cc b/chrome/browser/renderer_host/render_sandbox_host_linux.cc index cf51b0f..453f0c7 100644 --- a/chrome/browser/renderer_host/render_sandbox_host_linux.cc +++ b/chrome/browser/renderer_host/render_sandbox_host_linux.cc @@ -171,7 +171,7 @@ class SandboxIPCProcess { const char* characters = NULL; if (characters_bytes > 0) { const uint32_t kMaxCharactersBytes = 1 << 10; - if (characters_bytes % 1 == 0 || // We expect UTF-16. + if (characters_bytes % 2 == 0 || // We expect UTF-16. characters_bytes > kMaxCharactersBytes || !pickle.ReadBytes(&iter, &characters, characters_bytes)) return; |