mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 15:56:35 -04:00
Fix uninit read in Android TrueType font scan
Problem reported privately by Michal Majchrowicz and Marcin Wyczechowski, members of the AFINE Team. * src/sfnt.c (sfnt_read_table_directory): Fix typo where wrong size was used.
This commit is contained in:
parent
95ab9ef627
commit
7621ee1d01
|
|
@ -263,7 +263,7 @@ sfnt_read_table_directory (int fd)
|
|||
|
||||
rc = read (fd, subtable->subtables, subtable_size);
|
||||
|
||||
if (rc == -1 || rc < offset)
|
||||
if (rc == -1 || rc < subtable_size)
|
||||
{
|
||||
xfree (subtable);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue