On Fri, May 11, 2018 at 01:52:50PM +0000, scan-admin@coverity.com wrote:
** CID 1435548: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1435548: Null pointer dereferences (FORWARD_NULL)
/vcl/unx/generic/glyphs/freetype_glyphcache.cxx: 350 in FreetypeManager::CreateFont(const
FontSelectPattern &)()
344 if( it != maFontList.end() )
345 pFontInfo = it->second;
346
347 if( !pFontInfo )
348 return nullptr;
349
CID 1435548: Null pointer dereferences (FORWARD_NULL)
Passing "rFSD" to "FreetypeFont", which dereferences null "rFSD.mpFontInstance".
350 FreetypeFont* pNew = new FreetypeFont( rFSD, pFontInfo );
351
352 return pNew;
353 }
354
355 FreetypeFontFace::FreetypeFontFace( FreetypeFontInfo* pFI, const FontAttributes& rDFA )
No idea why this is now triggering an issue, but FreetypeFont
constructor have been unconditionally accessing rFSD.mpFontInstance
since forever.
Regards,
Khaled
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.