| Index: mojo/system/message_pipe_dispatcher.cc
|
| diff --git a/mojo/system/message_pipe_dispatcher.cc b/mojo/system/message_pipe_dispatcher.cc
|
| index 89bc16abb13f9089e9f251eab6a1c8775eb3d0f4..22bb3b3d50e272a5584c1b6a18f221edd204fa22 100644
|
| --- a/mojo/system/message_pipe_dispatcher.cc
|
| +++ b/mojo/system/message_pipe_dispatcher.cc
|
| @@ -150,7 +150,7 @@
|
|
|
| lock().AssertAcquired();
|
|
|
| - if (!VerifyUserPointerWithSize<1>(bytes, num_bytes))
|
| + if (!VerifyUserPointer<void>(bytes, num_bytes))
|
| return MOJO_RESULT_INVALID_ARGUMENT;
|
| if (num_bytes > kMaxMessageNumBytes)
|
| return MOJO_RESULT_RESOURCE_EXHAUSTED;
|
| @@ -168,9 +168,9 @@
|
| lock().AssertAcquired();
|
|
|
| if (num_bytes) {
|
| - if (!VerifyUserPointer<uint32_t>(num_bytes))
|
| + if (!VerifyUserPointer<uint32_t>(num_bytes, 1))
|
| return MOJO_RESULT_INVALID_ARGUMENT;
|
| - if (!VerifyUserPointerWithSize<1>(bytes, *num_bytes))
|
| + if (!VerifyUserPointer<void>(bytes, *num_bytes))
|
| return MOJO_RESULT_INVALID_ARGUMENT;
|
| }
|
|
|
|
|