Validate that paths don't contain embedded NULLs at deserialization.

BUG=166867

Review URL: https://chromiumcodereview.appspot.com/11743009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174935 0039d316-1c4b-4281-b951-d872f2087c98
void ParamTraits<Message>::Write(Message* m, const Message& p) {
#if defined(OS_POSIX)
  DCHECK(!p.HasFileDescriptors());
#endif

  m->WriteUInt32(static_cast<uint32>(p.routing_id()));
  m->WriteUInt32(p.type());
  m->WriteUInt32(p.flags());
  m->WriteData(p.payload(), static_cast<uint32>(p.payload_size()));
}

void ParamTraits<Message>::Write(Message* m, const Message& p) {
#if defined(OS_POSIX)
  DCHECK(!p.HasFileDescriptors());
#endif

  m->WriteUInt32(static_cast<uint32>(p.routing_id()));
  m->WriteUInt32(p.type());
  m->WriteUInt32(p.flags());
  m->WriteData(p.payload(), static_cast<uint32>(p.payload_size()));
}
