emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master e2be1987a2e 3/3: ; Fix a crash in sfnt_read_fvar_table


From: Po Lu
Subject: master e2be1987a2e 3/3: ; Fix a crash in sfnt_read_fvar_table
Date: Mon, 8 Jan 2024 02:52:10 -0500 (EST)

branch: master
commit e2be1987a2e1206b77d2f11c78bb6e770a661452
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    ; Fix a crash in sfnt_read_fvar_table
    
    * src/sfnt.c (sfnt_read_fvar_table): Derive padding from correct
    type.
---
 src/sfnt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]