shithub: freetype+ttf2subf

Download patch

ref: 9df460b632985f7d245d7669147c8c6a72724419
parent: c67b9a1c5b27afbb466a35222c84b1bccb81d238
author: Werner Lemberg <[email protected]>
date: Sat Nov 23 06:09:40 EST 2019

[truetype] Avoid sanitizer warning (#57289).

* src/truetype/ttpload.c (tt_face_get_device_metrics): Use
`FT_OFFSET'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2019-11-23  Werner Lemberg  <[email protected]>
+
+	[truetype] Avoid sanitizer warning (#57289).
+
+	* src/truetype/ttpload.c (tt_face_get_device_metrics): Use
+	`FT_OFFSET'.
+
 2019-11-23  Armin Hasitzka  <[email protected]>
 
 	[truetype] Fix integer overflow (#57287).
--- a/src/truetype/ttpload.c
+++ b/src/truetype/ttpload.c
@@ -633,7 +633,7 @@
     FT_UInt   nn;
     FT_Byte*  result      = NULL;
     FT_ULong  record_size = face->hdmx_record_size;
-    FT_Byte*  record      = face->hdmx_table + 8;
+    FT_Byte*  record      = FT_OFFSET( face->hdmx_table, 8 );
 
 
     for ( nn = 0; nn < face->hdmx_record_count; nn++ )