[mojo-edk] Better validation of untrusted message data

Adds some more sanity checks to close a Channel if it
receives bad data.

BUG=611887
R=amistry@chromium.org,ochang@chromium.org

Review-Url: https://codereview.chromium.org/1985523002
Cr-Commit-Position: refs/heads/master@{#393874}


CrOS-Libchrome-Original-Commit: 8eb4c80b7558a1bdd547e24b6b129b0d84223b21
3 files changed
tree: 4c70271001b048d9b624861be52bf7e50e082572
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/