Closed Bug 1217737 Opened 9 years ago Closed 9 years ago

Using Moz2D recording on a page with WebFonts causes a crash.

Categories

(Core :: Security: Process Sandboxing, defect)

All
Windows
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bobowen, Assigned: bas.schouten)

References

Details

Thanks for all of your help with this Bas. I've been testing using http://www.bostonglobe.com Top of the stack is below. This is with my current patches, but only the line number in RecordedScaledFontCreation is likely to have been affected. I assume that this is to do with the comment about the invalid reference key just above in ScaledFontDWrite.cpp. Will we need to do something for GDI WebFonts as well? Only ScaledFontDWrite has GetFontFileData implemented (on Windows). xul.dll!nsTArray_base<nsTArrayFallibleAllocator,nsTArray_CopyWithMemutils>::IsAutoArray() Line 454 C++ xul.dll!nsTArray_base<nsTArrayFallibleAllocator,nsTArray_CopyWithMemutils>::IsAutoArrayRestorer::IsAutoArrayRestorer(nsTArray_base<nsTArrayFallibleAllocator,nsTArray_CopyWithMemutils> & aArray, unsigned int aElemAlign) Line 314 C++ xul.dll!nsTArray_base<nsTArrayFallibleAllocator,nsTArray_CopyWithMemutils>::SwapArrayElements<nsTArrayFallibleAllocator,nsTArrayFallibleAllocator>(nsTArray_base<nsTArrayFallibleAllocator,nsTArray_CopyWithMemutils> & aOther, unsigned int aElemSize, unsigned int aElemAlign) Line 353 C++ xul.dll!nsTArray_Impl<unsigned char,nsTArrayFallibleAllocator>::SwapElements<nsTArrayFallibleAllocator>(nsTArray_Impl<unsigned char,nsTArrayFallibleAllocator> & aOther) Line 1707 C++ xul.dll!gfxDWriteFontFileStream::gfxDWriteFontFileStream(FallibleTArray<unsigned char> * aData) Line 33 C++ xul.dll!gfxDWriteFontFileLoader::CreateStreamFromKey(const void * fontFileReferenceKey, unsigned int fontFileReferenceKeySize, IDWriteFontFileStream * * fontFileStream) Line 21 C++ xul.dll!mozilla::gfx::ScaledFontDWrite::GetFontFileData(void (const unsigned char *, unsigned int, unsigned int, float, void *) * aDataCallback, void * aBaton) Line 391 C++ xul.dll!mozilla::gfx::RecordedScaledFontCreation::RecordedScaledFontCreation(mozilla::gfx::ReferencePtr aRefPtr, mozilla::gfx::ScaledFont * aScaledFont) Line 927 C++
I fixed this in bug 1156742 part 18.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.