| Index: content/public/common/common_param_traits.cc
|
| diff --git a/content/public/common/common_param_traits.cc b/content/public/common/common_param_traits.cc
|
| index 7c47ab53907ae1b3c38154e6392244cdedff7fae..474fb7a0d523f129f0c13ac31e398a2af91ab86d 100644
|
| --- a/content/public/common/common_param_traits.cc
|
| +++ b/content/public/common/common_param_traits.cc
|
| @@ -120,6 +120,11 @@ bool ParamTraits<net::IPEndPoint>::Read(const Message* m, PickleIterator* iter,
|
| int port;
|
| if (!ReadParam(m, iter, &address) || !ReadParam(m, iter, &port))
|
| return false;
|
| + if (address.size() &&
|
| + address.size() != net::kIPv4AddressSize &&
|
| + address.size() != net::kIPv6AddressSize) {
|
| + return false;
|
| + }
|
| *p = net::IPEndPoint(address, port);
|
| return true;
|
| }
|
|
|