From ee7f36afdb60084203a31455f327672fbff6d9aa Mon Sep 17 00:00:00 2001 From: Marcos Casagrande Date: Sun, 30 Jul 2023 15:15:29 +0200 Subject: fix(ext/compression): throw TypeError on corrupt input (#19979) `TypeError` should be thrown when decompressing a corrupt input --- tools/wpt/expectation.json | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'tools') diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index 520ac1a30..946f374eb 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -7611,18 +7611,8 @@ "decompression-constructor-error.tentative.any.worker.html": true, "decompression-correct-input.tentative.any.html": true, "decompression-correct-input.tentative.any.worker.html": true, - "decompression-corrupt-input.tentative.any.html": [ - "truncating the input for 'deflate' should give an error", - "trailing junk for 'deflate' should give an error", - "format 'deflate' field DATA should be error for 5", - "trailing junk for 'gzip' should give an error" - ], - "decompression-corrupt-input.tentative.any.worker.html": [ - "truncating the input for 'deflate' should give an error", - "trailing junk for 'deflate' should give an error", - "format 'deflate' field DATA should be error for 5", - "trailing junk for 'gzip' should give an error" - ], + "decompression-corrupt-input.tentative.any.html": true, + "decompression-corrupt-input.tentative.any.worker.html": true, "decompression-empty-input.tentative.any.html": true, "decompression-empty-input.tentative.any.worker.html": true, "decompression-split-chunk.tentative.any.html": true, -- cgit v1.2.3