diff --git a/gfx/2d/ScaledFontMac.cpp b/gfx/2d/ScaledFontMac.cpp index e0a783a9bf5d..1339f8fa632a 100644 --- a/gfx/2d/ScaledFontMac.cpp +++ b/gfx/2d/ScaledFontMac.cpp @@ -290,7 +290,7 @@ bool UnscaledFontMac::GetFontFileData(FontFileDataOutput aDataCallback, bool CFF = false; for (CFIndex i = 0; i < count; i++) { uint32_t tag = (uint32_t)(uintptr_t)CFArrayGetValueAtIndex(tags, i); - if (tag == 0x43464620) { // 'CFF ' + if (tag == 0x43464620 || tag == 0x43464632) { // 'CFF ', 'CFF2' CFF = true; } CFDataRef data = CGFontCopyTableForTag(mFont, tag); diff --git a/gfx/tests/crashtests/1938548.html b/gfx/tests/crashtests/1938548.html new file mode 100644 index 000000000000..963ed05947b6 --- /dev/null +++ b/gfx/tests/crashtests/1938548.html @@ -0,0 +1,27 @@ + + + + + + +