diff options
Diffstat (limited to 'image/test/reftest/bmp/bmp-corrupted')
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-bpp.bmp | bin | 0 -> 58 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-compression-BITFIELDS.bmp | bin | 0 -> 78 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE4.bmp | bin | 0 -> 246 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE8.bmp | bin | 0 -> 246 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-compression.bmp | bin | 0 -> 822 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-data-offset.bmp | bin | 0 -> 3126 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-signature.bmp | bin | 0 -> 58 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-truncated-metadata.bmp | bin | 0 -> 54 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/os2-invalid-bpp.bmp | bin | 0 -> 30 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/reftest.list | 21 | ||||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/wrapper.html | 28 |
11 files changed, 49 insertions, 0 deletions
diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-bpp.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-bpp.bmp Binary files differnew file mode 100644 index 0000000000..c00dd3fa4c --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-bpp.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-compression-BITFIELDS.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-compression-BITFIELDS.bmp Binary files differnew file mode 100644 index 0000000000..92a7225261 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-compression-BITFIELDS.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE4.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE4.bmp Binary files differnew file mode 100644 index 0000000000..d73c89411d --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE4.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE8.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE8.bmp Binary files differnew file mode 100644 index 0000000000..5a88064543 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE8.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-compression.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-compression.bmp Binary files differnew file mode 100644 index 0000000000..aa3134e562 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-compression.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-data-offset.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-data-offset.bmp Binary files differnew file mode 100644 index 0000000000..b89bc55a8e --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-data-offset.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-signature.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-signature.bmp Binary files differnew file mode 100644 index 0000000000..6eebb57180 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-signature.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-truncated-metadata.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-truncated-metadata.bmp Binary files differnew file mode 100644 index 0000000000..228c5c9992 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-truncated-metadata.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/os2-invalid-bpp.bmp b/image/test/reftest/bmp/bmp-corrupted/os2-invalid-bpp.bmp Binary files differnew file mode 100644 index 0000000000..af4678a284 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/os2-invalid-bpp.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/reftest.list b/image/test/reftest/bmp/bmp-corrupted/reftest.list new file mode 100644 index 0000000000..882657983a --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/reftest.list @@ -0,0 +1,21 @@ +# Corrupted BMP tests + +== wrapper.html?invalid-signature.bmp about:blank +== wrapper.html?invalid-bpp.bmp about:blank +== wrapper.html?os2-invalid-bpp.bmp about:blank +# Tests for an unsupported compression value +== wrapper.html?invalid-compression.bmp about:blank +# Tests for RLE4 with an invalid BPP +== wrapper.html?invalid-compression-RLE4.bmp about:blank +# Tests for RLE8 with an invalid BPP +== wrapper.html?invalid-compression-RLE8.bmp about:blank + +# Test for BITFIELDS with an invalid BIH size. (This is the obscure +# BITMAPV3INFOHEADER variant mentioned in +# https://en.wikipedia.org/wiki/BMP_file_format which we don't accept.) +== wrapper.html?invalid-compression-BITFIELDS.bmp about:blank + +== wrapper.html?invalid-truncated-metadata.bmp about:blank + +# Test for an invalid data offset +== wrapper.html?invalid-data-offset.bmp about:blank
\ No newline at end of file diff --git a/image/test/reftest/bmp/bmp-corrupted/wrapper.html b/image/test/reftest/bmp/bmp-corrupted/wrapper.html new file mode 100644 index 0000000000..22b74c8fc1 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/wrapper.html @@ -0,0 +1,28 @@ +<!DOCTYPE HTML> +<html class="reftest-wait"> +<head> +<title>Image reftest wrapper</title> +<style type="text/css"> + #image1 { background-color: rgb(10, 100, 250); } +</style> +<script> + // The image is loaded async after the page loads + // wait for it to finish loading + function onImageLoad() { + document.documentElement.removeAttribute("class"); + }; +</script> +</head> +<body> +<!-- non-empty alt to avoid the broken image icon --> +<img id="image1" alt=" "> +<script> + // Use as "wrapper.html?image.png" + var imgURL = document.location.search.substr(1); + document.images[0].onload = onImageLoad; + document.images[0].onerror = onImageLoad; + document.images[0].src = imgURL; +</script> +</body> +</html> + |