projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2656d75
)
; Fix a crash in sfnt_read_fvar_table
author
Po Lu
<luangruo@yahoo.com>
Mon, 8 Jan 2024 07:40:45 +0000
(15:40 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Mon, 8 Jan 2024 07:51:51 +0000
(15:51 +0800)
* src/sfnt.c (sfnt_read_fvar_table): Derive padding from correct
type.
src/sfnt.c
patch
|
blob
|
history
diff --git
a/src/sfnt.c
b/src/sfnt.c
index b300eb4ba89a599a96671c678764985d4d222204..0666bb17cf0dd3cfc17aa071c2f9ea5f05abc593 100644
(file)
--- 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))