reftest.list (4503B)
1 # bmpsuite "bad" tests 2 3 # See ../README.mozilla for details. 4 5 # BMP: bihsize=40, 127 x 64, bpp=30000, compression=0, colors=2 6 # "Header indicates an absurdly large number of bits/pixel." 7 # [We reject it. So does Chromium.] 8 == wrapper.html?badbitcount.bmp about:blank 9 10 # BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2 11 # "Header incorrectly indicates that the bitmap is several GB in size." 12 # [We accept it. So does Chromium.] 13 fuzzy(0-1,0-926) == badbitssize.bmp pal1.png 14 15 # BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2 16 # BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2 17 # "Density (pixels per meter) suggests the image is much larger in one 18 # dimension than the other." 19 # [We accept them. So does Chromium.] 20 == baddens1.bmp pal1.png 21 == baddens2.bmp pal1.png 22 23 # BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2 24 # "Header incorrectly indicates that the file is several GB in size." 25 # [We accept it. So does Chromium.] 26 == badfilesize.bmp pal1.png 27 28 # BMP: <no "BMP:" output is produced for files with bad header sizes> 29 # "Header size is 66 bytes, which is not a valid size for any known BMP 30 # version." 31 # [We reject it. So does Chromium.] 32 == wrapper.html?badheadersize.bmp about:blank 33 34 # BMP: bihsize=40, 127 x 64, bpp=8, compression=0, colors=305402420 35 # "Header incorrectly indicates that the palette contains an absurdly large 36 # number of colors." 37 # [We accept it. So does Chromium.] 38 == badpalettesize.bmp pal8.png 39 40 # BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2 41 # "The 'planes' setting, which is required to be 1, is not 1." 42 # [We accept it. So does Chromium.] 43 == badplanes.bmp pal1.png 44 45 # BMP: bihsize=40, 127 x 64, bpp=4, compression=2, colors=13 46 # "An invalid RLE4-compressed image that tries to cause buffer overruns." 47 == badrle4.bmp badrle4.png 48 49 # BMP: bihsize=40, 127 x 64, bpp=4, compression=2, colors=13 50 # "Another invalid RLE4-compressed image that tries to cause buffer overruns." 51 == badrle4bis.bmp badrle4bis.png 52 53 # BMP: bihsize=40, 127 x 64, bpp=4, compression=2, colors=13 54 # "Another invalid RLE4-compressed image that tries to cause buffer overruns." 55 == badrle4ter.bmp badrle4ter.png 56 57 # BMP: bihsize=40, 127 x 64, bpp=8, compression=1, colors=253 58 # "An invalid RLE-compressed image that tries to cause buffer overruns." 59 # [We accept it, drawing the valid first part and leaving the rest black. 60 # Chromium accepts it, drawing the valid first part and leaving the rest 61 # transparent. Using black for the invalid part is arguably better because it 62 # makes the image edges more obvious.] 63 == badrle.bmp badrle.png 64 65 # BMP: bihsize=40, 127 x 64, bpp=8, compression=1, colors=253 66 # "8-bit version of b/badrle4bis.bmp." 67 == badrlebis.bmp badrlebis.png 68 69 # BMP: bihsize=40, 127 x 64, bpp=8, compression=1, colors=253 70 # "8-bit version of b/badrle4ter.bmp." 71 == badrleter.bmp badrleter.png 72 73 # BMP: bihsize=40, -127 x 64, bpp=1, compression=0, colors=2 74 # "The image claims to be a negative number of pixels in width." 75 # [We reject it. So does Chromium.] 76 == wrapper.html?badwidth.bmp about:blank 77 78 # BMP: bihsize=40, 127 x 64, bpp=8, compression=0, colors=101 79 # "Many of the palette indices used in the image are not present in the 80 # palette." 81 # [We accept it and use black for the missing colors. So does Chromium.] 82 == pal8badindex.bmp pal8badindex.png 83 84 # BMP: bihsize=40, 3000000 x 2000000, bpp=24, compression=0, colors=0 85 # "An image with a very large reported width and height." 86 # [We reject it. So does Chromium.] 87 == wrapper.html?reallybig.bmp about:blank 88 89 # BMP: bihsize=40, 127 x 64, bpp=16, compression=3, colors=0 90 # "A 16-bit image with a BITFIELDS segment indicating 8 red, 8 green, and 0 91 # blue bits. The documentation doesn’t say whether undefined channels are 92 # legal, or how they should be handled." 93 == rgb16-880.bmp rgb16-880.png 94 95 # BMP: bihsize=40, 127 x -64, bpp=8, compression=1, colors=252 96 # "An RLE-compressed image that tries to use top-down orientation, which isn’t 97 # allowed." 98 # [We accept it. Chromium rejects it. Accepting seems better given that we can 99 # decode it perfectly well.] 100 == rletopdown.bmp pal8.png 101 102 # BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2 103 # "A file that has been truncated in the middle of the bitmap." 104 # [We accept it, drawing the part that is present and leaving the rest black. 105 # Chromium draws the part that is present and leaves the rest transparent. 106 # Using black for the invalid part is arguably better because it makes the 107 # image edges more obvious.] 108 == shortfile.bmp shortfile.png 109