http://bugs.winehq.org/show_bug.cgi?id=29139
Bug #: 29139 Summary: ExtTextOutW doesn't handle failed buffer allocations Product: Wine Version: unspecified Platform: All OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 AssignedTo: wine-bugs@winehq.org ReportedBy: disposable593-wine@yahoo.com Classification: Unclassified
In font.c (http://source.winehq.org/source/dlls/gdi32/font.c#L1847):
The central text output function ExtTextOutW never checks for NULL return values in buffer allocations (HeapAlloc(...)). The same seems to be the case for several other functions in font.c (see, for example, GetOutlineTextMetricsA).