[Bug 40396] New: Not initialize structure.

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Mar 31 23:49:32 CDT 2016


https://bugs.winehq.org/show_bug.cgi?id=40396

            Bug ID: 40396
           Summary: Not initialize structure.
           Product: Wine
           Version: 1.9.6
          Hardware: x86
                OS: Windows
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: dwrite
          Assignee: wine-bugs at winehq.org
          Reporter: blackwingcat2000 at gmail.com

When opentype_get_font_table function fail without font_table initialize, crash
function.

opentype.c
1118 const TT_OS2_V2 *tt_os2;
1119 const TT_HEAD *tt_head;
1120 const TT_POST *tt_post;
1121 const TT_HHEA *tt_hhea;
1122
1123 memset(metrics, 0, sizeof(*metrics));
1124
1125 opentype_get_font_table(stream, face_type, face_index, MS_OS2_TAG, (const
void**)&tt_os2, &os2_context, NULL, NULL);
1126 opentype_get_font_table(stream, face_type, face_index, MS_HEAD_TAG, (const
void**)&tt_head, &head_context, NULL, NULL);
1127 opentype_get_font_table(stream, face_type, face_index, MS_POST_TAG, (const
void**)&tt_post, &post_context, NULL, NULL);
1128 opentype_get_font_table(stream, face_type, face_index, MS_HHEA_TAG, (const
void**)&tt_hhea, &hhea_context, NULL, NULL);


1118 TT_OS2_V2 *tt_os2 = NULL;
1119 TT_HEAD *tt_head = NULL;
1120 TT_POST *tt_post = NULL;
1121 TT_HHEA *tt_hhea = NULL;


Crash on WindowsSDK7-Samples-master\multimedia\DirectWrite\SimpleHelloWorld

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list