| Index: net/quic/crypto/source_address_token.h
|
| diff --git a/net/quic/crypto/source_address_token.h b/net/quic/crypto/source_address_token.h
|
| index f9a50988dd9e6e84de7f13c8028bfab85635a644..32f11c515f4439fb09b917775e5e081cfb901764 100644
|
| --- a/net/quic/crypto/source_address_token.h
|
| +++ b/net/quic/crypto/source_address_token.h
|
| @@ -8,6 +8,7 @@
|
| #include <string>
|
|
|
| #include "base/basictypes.h"
|
| +#include "base/logging.h"
|
| #include "base/strings/string_piece.h"
|
| #include "net/base/net_export.h"
|
| #include "net/quic/crypto/cached_network_parameters.h"
|
| @@ -31,6 +32,8 @@ class NET_EXPORT_PRIVATE SourceAddressToken {
|
| }
|
| void set_ip(base::StringPiece ip) {
|
| ip_ = ip.as_string();
|
| + DCHECK_LE(ip_.size(),
|
| + static_cast<size_t>(std::numeric_limits<char>::max()));
|
| }
|
|
|
| int64 timestamp() const {
|
|
|