diff options
author | Yagiz Nizipli <yagiz@nizipli.com> | 2022-04-29 19:54:38 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2022-05-01 23:27:37 +0300 |
commit | 87d0d7a069b2a3ca1db1dd592a62db4645ba5d69 (patch) | |
tree | d5bfe3eeb81859dc8cab726f5621fa90bfac19a2 /test | |
parent | 3d0fc13ba374d539cfb9a70e44310877cb6f7ceb (diff) |
url: validate ipv4 part length
PR-URL: https://github.com/nodejs/node/pull/42915
Fixes: https://github.com/nodejs/node/issues/42914
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/fixtures/wpt/url/resources/urltestdata.json | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/test/fixtures/wpt/url/resources/urltestdata.json b/test/fixtures/wpt/url/resources/urltestdata.json index a56b30caf98..dc33048964a 100644 --- a/test/fixtures/wpt/url/resources/urltestdata.json +++ b/test/fixtures/wpt/url/resources/urltestdata.json @@ -5317,17 +5317,12 @@ { "input": "http://256.256.256.256.256", "base": "http://other.com/", - "href": "http://256.256.256.256.256/", - "origin": "http://256.256.256.256.256", - "protocol": "http:", - "username": "", - "password": "", - "host": "256.256.256.256.256", - "hostname": "256.256.256.256.256", - "port": "", - "pathname": "/", - "search": "", - "hash": "" + "failure": true + }, + { + "input": "http://256.256.256.256.256.", + "base": "http://other.com/", + "failure": true }, { "input": "https://0x.0x.0", |