| Index: net/proxy/proxy_bypass_rules.cc
|
| diff --git a/net/proxy/proxy_bypass_rules.cc b/net/proxy/proxy_bypass_rules.cc
|
| index f31fa7be086bda9d72e097d0406940b8c0ee7905..e74d9e613a4871dce87f3f738238111bc647ee1c 100644
|
| --- a/net/proxy/proxy_bypass_rules.cc
|
| +++ b/net/proxy/proxy_bypass_rules.cc
|
| @@ -301,6 +301,11 @@ bool ProxyBypassRules::AddRuleFromStringInternal(
|
| std::string host;
|
| int port;
|
| if (ParseHostAndPort(raw, &host, &port)) {
|
| + // TODO(eroman): HostForURL() below DCHECKs() when |host| contains an
|
| + // embedded NULL.
|
| + if (host.find('\0') != std::string::npos)
|
| + return false;
|
| +
|
| // Note that HostPortPair is used to merely to convert any IPv6 literals to
|
| // a URL-safe format that can be used by canonicalization below.
|
| std::string bracketed_host = HostPortPair(host, 80).HostForURL();
|
|
|