https://bz.apache.org/ooo/show_bug.cgi?id=127929

          Issue ID: 127929
        Issue Type: DEFECT
           Summary: Possible crash in Freetype code
           Product: General
           Version: 4.2.0-dev
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: code
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 86540
  --> https://bz.apache.org/ooo/attachment.cgi?id=86540&action=edit
Check the return value of the FT_Get_Glyph() function

Method FreetypeServerFont::InitGlyphData() calls function FT_Get_Glyph() but
does not check its return value.

On my system, the function fails when selecting the ``slide master'' in
Impress, and the program crashes because the method continues with invalid
data.

The attached patch repeats the same check as the previous call to
FT_Load_Glyph().

Please note I have no idea what a glyph is, what those FT_ functions do, and
why they fail. But the attached patch solves the crashes on my systems (tested
on Linux) and looks logical IMHO.

I suppose the same problem is present in version 4.1.5 (Linux and FreeBSD),
because it also crashes when selecting the slide master view.

Please let me know if you need any more information.

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to