[sfnt] Avoid 'runtime error: applying zero offset to null pointer'.
* src/sfnt/ttsbit.c (tt_sbit_decoder_load_byte_aligned): Exit early if `line` is NULL.
This commit is contained in:
parent
5aa2a5c34a
commit
b5c2172f59
|
@ -730,6 +730,9 @@
|
|||
pitch = bitmap->pitch;
|
||||
line = bitmap->buffer;
|
||||
|
||||
if ( !line )
|
||||
goto Exit;
|
||||
|
||||
width = decoder->metrics->width;
|
||||
height = decoder->metrics->height;
|
||||
|
||||
|
|
Loading…
Reference in New Issue