[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:
Werner Lemberg 2022-01-07 06:53:44 +01:00
parent 5aa2a5c34a
commit b5c2172f59
1 changed files with 3 additions and 0 deletions

View File

@ -730,6 +730,9 @@
pitch = bitmap->pitch;
line = bitmap->buffer;
if ( !line )
goto Exit;
width = decoder->metrics->width;
height = decoder->metrics->height;