From: Po Lu Date: Mon, 8 Jan 2024 07:40:45 +0000 (+0800) Subject: ; Fix a crash in sfnt_read_fvar_table X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e2be1987a2e1206b77d2f11c78bb6e770a661452;p=emacs.git ; Fix a crash in sfnt_read_fvar_table * src/sfnt.c (sfnt_read_fvar_table): Derive padding from correct type. --- diff --git a/src/sfnt.c b/src/sfnt.c index b300eb4ba89..0666bb17cf0 100644 --- a/src/sfnt.c +++ b/src/sfnt.c @@ -14269,7 +14269,7 @@ sfnt_read_fvar_table (int fd, struct sfnt_offset_subtable *subtable) || INT_ADD_WRAPV (min_bytes, temp, &min_bytes)) goto bail; - pad = alignof (struct sfnt_variation_axis); + pad = alignof (struct sfnt_instance); pad -= min_bytes & (pad - 1); if (INT_ADD_WRAPV (min_bytes, pad, &min_bytes))