[Fontconfig] fontconfig: Branch 'main'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Feb 22 01:37:33 UTC 2023
src/fcfreetype.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 89af138176855891d8cf3582253e511e5705c3be
Author: Vitaly Lysenkov <vlysenkov at google.com>
Date: Tue Feb 21 20:13:23 2023 +0000
In fcfreetype.c, `GetScriptTags`: fix `use_of_uninitialized_value` and return the correct number of parsed tags in case the font file contains less tags than indicated.
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index cf923f2..8ae88bd 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -2762,9 +2762,9 @@ GetScriptTags(FT_Face face, FT_ULong tabletag, FT_ULong **stags)
goto Fail;
/* sort the tag list before returning it */
- qsort(*stags, script_count, sizeof(FT_ULong), compareulong);
+ qsort(*stags, p, sizeof(FT_ULong), compareulong);
- return script_count;
+ return p;
Fail:
free(*stags);
More information about the Fontconfig
mailing list