Handle invalid IP addresses in certificates.

Some certificates have invalid IP addresses in them (for example,
https://www.1010ez.med.va.gov - certificate reproduced below). Currently Chrome
crashes when loading the certificate viewer for such certificates because we
hit a CHECK when the IP is not 4 nor 16 bytes long.

This change causes such invalid IP addresses to be rendered as hex bytes.

-----BEGIN CERTIFICATE-----
MIIGGTCCBQGgAwIBAgIDAtRTMA0GCSqGSIb3DQEBBQUAMHAxCzAJBgNVBAYTAlVT
MRcwFQYDVQQKEw5DeWJlcnRydXN0IEluYzERMA8GA1UECxMIU2VydmljZXMxDDAK
BgNVBAsTA1BLSTEnMCUGA1UEAxMeQ3liZXJ0cnVzdCBQdWJsaWMgSXNzdWluZyBD
QSAxMB4XDTEzMDcwOTE2MzQxMVoXDTE0MDcwOTE2MzQxMVowgdcxEzARBgoJkiaJ
k/IsZAEZFgNnb3YxEjAQBgoJkiaJk/IsZAEZFgJ2YTElMCMGA1UECAwcV2VzdCBW
aXJnaW5pYSxEQ1w9dmEsRENcPWdvdjEUMBIGA1UEBxMLTWFydGluc2J1cmcxKjAo
BgNVBAoTIVVTIERlcGFydG1lbnQgb2YgVmV0ZXJhbnMgQWZmYWlyczEjMCEGA1UE
CxMaQ2FwaXRvbCBSZWdpb24gRGF0YSBDZW50ZXIxHjAcBgNVBAMTFXd3dy4xMDEw
ZXoubWVkLnZhLmdvdjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM7b
2C1+XZ1ecJznpGgdrxE5qAz4W0KCzDMr8AVqXxj1zToeZUCEu/OV6BP1dzQ/RUS6
lzlMHS0eWL4d/B3gUHy4McvrrR7kTydTJ9oaScSIY+81rOYByrWr8B5C+jKTPbl+
yvc89jOncVsu0gPKUPmFl/X+E3js4gR91Ime2Jd5hObR9KDJGnDSf7/E5jGgqtr1
Nm0P3gGT8IUJ8XlmoN1JgtbFl68AahpukkEeahliKzNKULGv1PrruceorF/Trqpm
QfgptTnO7zDVSXbOUIoCDjXzPjKTkJC3SDF4J8IRYufv7d7jpN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FT5o9Z27PHop/aB
EY9G26KGu8BT+q7RweZuDBSmQCxFTrjy2Bno+U2QSfWc9S2XHcaeUrt6wtkf8dTb
H/bTcSeXKa05AFyHoVeAPQ3lplHowjCvzFy93/RiVX903d8CGsfaoqgH8QNXAlQ6
ZqPITBlyJlK9qTvcsRD8rvEWLTHT1SgbHoBLEMg=
-----END CERTIFICATE-----

BUG=none
R=wtc@chromium.org

Review URL: https://codereview.chromium.org/184033009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254876 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 254876