mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
2f85ec68a3
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 |
||
---|---|---|
.. | ||
apng | ||
avif | ||
bmp | ||
color-management | ||
downscaling | ||
encoders-lossless | ||
generic | ||
gif | ||
ico | ||
jpeg | ||
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 |