Edit

kc3-lang/freetype/src/base

Branch :

  • Show log

    Commit

  • Author : suzuki toshiya
    Date : 2015-09-28 02:01:43
    Hash : fb5268cf
    Message : [base] Fix a leak by broken sfnt-PS or resource fork (#46028). open_face_from_buffer() frees passed buffer if valid font is not found. But if copying to the buffer is failed, the allocated buffer should be freed within the caller. * src/base/ftobjs.c (open_face_PS_from_sfnt_stream): Free the buffer `sfnt_ps' if an error caused before calling open_face_from_buffer(). (Mac_Read_sfnt_Resource): Free the buffer `sfnt_data' if an error caused before calling open_face_from_buffer();