Chromium Code Reviews| Index: ppapi/proxy/plugin_dispatcher.cc |
| diff --git a/ppapi/proxy/plugin_dispatcher.cc b/ppapi/proxy/plugin_dispatcher.cc |
| index a7019472ef36eabb79c42eb9e6bf7e8b27f973ec..ac0a072e7fbf9b0dbd2f198de6ea5d815bf005c8 100644 |
| --- a/ppapi/proxy/plugin_dispatcher.cc |
| +++ b/ppapi/proxy/plugin_dispatcher.cc |
| @@ -131,7 +131,7 @@ bool PluginDispatcher::OnMessageReceived(const IPC::Message& msg) { |
| return handled; |
| } |
| - if (msg.routing_id() <= 0 && msg.routing_id() >= INTERFACE_ID_COUNT) { |
| + if (msg.routing_id() <= 0 || msg.routing_id() >= INTERFACE_ID_COUNT) { |
|
brettw
2011/06/29 17:11:29
Whoops!
|
| // Host is sending us garbage. Since it's supposed to be trusted, this |
| // isn't supposed to happen. Crash here in all builds in case the renderer |
| // is compromised. |