Bug 1655846 - Hit MOZ_CRASH(assertion failed: `(left == right)` left: `1024`, right: `0`). r=tnikkel

Differential Revision: https://phabricator.services.mozilla.com/D87003
This commit is contained in:
Jon Bauman 2020-08-14 23:17:37 +00:00
Родитель b4c699ff11
Коммит 9dd9082896
4 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -523,6 +523,11 @@ ImageTestCase CorruptICOWithBadBppTestCase() {
IntSize(100, 100), TEST_CASE_IS_TRANSPARENT);
}
ImageTestCase CorruptAVIFTestCase() {
return ImageTestCase("bug-1655846.avif", "image/avif", IntSize(100, 100),
TEST_CASE_HAS_ERROR);
}
ImageTestCase TransparentPNGTestCase() {
return ImageTestCase("transparent.png", "image/png", IntSize(32, 32),
TEST_CASE_IS_TRANSPARENT);

Просмотреть файл

@ -799,6 +799,16 @@ TEST_F(ImageDecoders, CorruptICOWithBadBppSingleChunk) {
CheckDecoderSingleChunk(CorruptICOWithBadBppTestCase());
}
// Running this test under emulation for Android 7 on x86_64 seems to result
// in the large allocation succeeding, but leaving so little memory left the
// system falls over and it kills the test run, so we skip it instead.
// See bug 1655846 for more details.
#ifndef ANDROID
TEST_F(ImageDecoders, CorruptAVIFSingleChunk) {
CheckDecoderSingleChunk(CorruptAVIFTestCase());
}
#endif
TEST_F(ImageDecoders, AnimatedGIFWithFRAME_FIRST) {
CheckDecoderFrameFirst(GreenFirstFrameAnimatedGIFTestCase());
}

Двоичные данные
image/test/gtest/bug-1655846.avif Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -49,6 +49,7 @@ TEST_HARNESS_FILES.gtest += [
'blend.gif',
'blend.png',
'blend.webp',
'bug-1655846.avif',
'corrupt-with-bad-bmp-height.ico',
'corrupt-with-bad-bmp-width.ico',
'corrupt-with-bad-ico-bpp.ico',