freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Regression introduced in 5f18d867c0 causing mpv to segfault


From: Werner LEMBERG
Subject: Re: [ft] Regression introduced in 5f18d867c0 causing mpv to segfault
Date: Sat, 29 Apr 2017 06:50:48 +0200 (CEST)

> here is the new backtrace:

Thanks.

> #1  0x00007fcca7490297 in FT_Request_Size [...]
> #2  0x00007fccab48aebc in ass_face_set_size
>       (address@hidden, size=<optimized out>)
>       at ass_font.c:305
>         hori = 0x7fcc8c8bae00
>         os2 = <optimized out>
>         mscale = 1
>         rq = {type = FT_SIZE_REQUEST_TYPE_REAL_DIM,
>               width = 0,
>               height = 0,
>               horiResolution = 0,
>               vertResolution = 0}
>         m = 0x7fcc8c412368

`ass_face_set_size' requests a font with zero dimensions, which is
invalid for `FT_Request_Size': it has no code to set defaults for
zero-valued arguments (contrary to `FT_Set_Char_Size').

FreeType shouldn't crash (I've just added a guard to the git
repository), but the above is not valid code and only works by
accident for older FreeType versions.


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]