Android 7.1.1 release 24
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEABECAAYFAli9ok8ACgkQ6K0/gZqxDnglkACaA68XdpQoEwHjj5RmWTzRALz9
wfcAn2ngt8KFZJhw3tQdGvf5mXlwO5ab
=z2qH
-----END PGP SIGNATURE-----
Fix URL parser may return wrong host name

Due to a missing bound check in parseURL, it may include part of the
fragment in the authority field, and returns wrong host name.

Bug: 31858037
Test: libcore.java.net.URLTest#testFragmentWith{Slash,Query}
Change-Id: I1fc39907cc67f6d674a3790070833123fdef9414
(cherry picked from commit 78a4344540081fd229b188504d2fee820b7d452a)
(cherry picked from commit f98287d57549ccaae7b6e8dec9feadd4e0d413c3)
2 files changed