summaryrefslogtreecommitdiff
path: root/src/sfnt.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2024-01-08 15:40:45 +0800
committerPo Lu <luangruo@yahoo.com>2024-01-08 15:51:51 +0800
commite2be1987a2e1206b77d2f11c78bb6e770a661452 (patch)
treeb513ae40d4b0167e0d24f8b2106e5d43caa11d62 /src/sfnt.c
parent2656d756851d97434da7846a5a30202baafb2241 (diff)
downloademacs-e2be1987a2e1206b77d2f11c78bb6e770a661452.tar.gz
emacs-e2be1987a2e1206b77d2f11c78bb6e770a661452.tar.bz2
emacs-e2be1987a2e1206b77d2f11c78bb6e770a661452.zip
; Fix a crash in sfnt_read_fvar_table
* src/sfnt.c (sfnt_read_fvar_table): Derive padding from correct type.
Diffstat (limited to 'src/sfnt.c')
-rw-r--r--src/sfnt.c2
1 files changed, 1 insertions, 1 deletions
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))