diff options
| author | Po Lu | 2024-01-08 15:40:45 +0800 |
|---|---|---|
| committer | Po Lu | 2024-01-08 15:51:51 +0800 |
| commit | e2be1987a2e1206b77d2f11c78bb6e770a661452 (patch) | |
| tree | b513ae40d4b0167e0d24f8b2106e5d43caa11d62 /src | |
| parent | 2656d756851d97434da7846a5a30202baafb2241 (diff) | |
| download | emacs-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.c | 2 |
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)) |