gecko-dev/image/test/reftest
Timothy Nikkel 2f85ec68a3 Bug 1823614. Limit the number of scans we allow in jpeg images to some finite value. r=gfx-reviewers,bradwerth a=reland
We want to provide some finite limit to prevent small jpeg files from being able to tie up cpus for a much larger time than their small size would normally allow. We want to choose a number high enough so that no sane jpeg file would approach it, unless it had been crafted to take advantage of this problem.

Skia's jpeg decoder limit's it to 100:

https://searchfox.org/mozilla-central/rev/f078cd02746b29652c134b144f0629d47e378166/gfx/skia/skia/src/codec/SkJpegDecoderMgr.cpp#33

The OSS_Fuzz targets for libjpeg-turbo limit it to 500:

https://bugzilla.mozilla.org/show_bug.cgi?id=1252196#c11

Differential Revision: https://phabricator.services.mozilla.com/D173120
2023-03-25 01:46:53 +00:00
..
apng
avif
bmp Bug 327074 - Allow RLE bitmaps with extra pixels per row to render. r=tnikkel 2022-10-12 03:58:32 +00:00
color-management
downscaling Bug 1808642 - adjust reftest expectations for windows 11. jfkthame r=jfkthame 2023-01-06 19:25:29 +00:00
encoders-lossless
generic Bug 1818903. Adjust fuzz on moz-icon reftest for Windows 11. r=emilio 2023-03-03 12:17:21 +00:00
gif Bug 1801397. Render questionable 1x1 gifs with no image data like other clients. r=aosmond 2022-12-15 00:41:56 +00:00
ico
jpeg Bug 1823614. Limit the number of scans we allow in jpeg images to some finite value. r=gfx-reviewers,bradwerth a=reland 2023-03-25 01:46:53 +00:00
jxl
pngsuite-ancillary
pngsuite-background
pngsuite-basic-i
pngsuite-basic-n
pngsuite-chunkorder
pngsuite-corrupted
pngsuite-filtering
pngsuite-gamma
pngsuite-oddsizes
pngsuite-palettes
pngsuite-transparency
pngsuite-zlib
webp
colordepth.html
ImageDocument.css
img2html.html
reftest.list