shithub: freetype+ttf2subf

Download patch

ref: b5c2172f59f42934b76e4ac607f2c7ef4f049bb4
parent: 5aa2a5c34a40aff4e3c9fc01660f1ac020125eda
author: Werner Lemberg <wl@gnu.org>
date: Fri Jan 7 01:53:44 EST 2022

[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.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/sfnt/ttsbit.c
+++ b/src/sfnt/ttsbit.c
@@ -730,6 +730,9 @@
     pitch      = bitmap->pitch;
     line       = bitmap->buffer;
 
+    if ( !line )
+      goto Exit;
+
     width  = decoder->metrics->width;
     height = decoder->metrics->height;