aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2024-01-08 15:40:45 +0800
committerPo Lu2024-01-08 15:51:51 +0800
commite2be1987a2e1206b77d2f11c78bb6e770a661452 (patch)
treeb513ae40d4b0167e0d24f8b2106e5d43caa11d62 /src
parent2656d756851d97434da7846a5a30202baafb2241 (diff)
downloademacs-e2be1987a2e1206b77d2f11c78bb6e770a661452.tar.gz
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')
-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)
14269 || INT_ADD_WRAPV (min_bytes, temp, &min_bytes)) 14269 || INT_ADD_WRAPV (min_bytes, temp, &min_bytes))
14270 goto bail; 14270 goto bail;
14271 14271
14272 pad = alignof (struct sfnt_variation_axis); 14272 pad = alignof (struct sfnt_instance);
14273 pad -= min_bytes & (pad - 1); 14273 pad -= min_bytes & (pad - 1);
14274 14274
14275 if (INT_ADD_WRAPV (min_bytes, pad, &min_bytes)) 14275 if (INT_ADD_WRAPV (min_bytes, pad, &min_bytes))