[PATCH] dlls/gdi32/fretype.c: Avoid division by zero.

Dmitry Timoshkov dmitry at baikal.ru
Sat May 4 09:50:48 CDT 2013


Max TenEyck Woodbury <max at mtew.isa-geek.net> wrote:

> If you REALLY think the font should not load, you should add code to
> reject the font with an appropriate diagnostic, not have this code
> throw a divide by zero exception and abort execution.  Until you do
> that, this patch is needed.

First, what is needed, is an investigation what is happening exactly,
that's what I asked about in the first place. If you belive that tmHeight
being 0 is normal and should be accepted, then you need to provide more
details and probably a test case.

-- 
Dmitry.



More information about the wine-devel mailing list