fontconfig: Branch 'main'

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

 



 src/fcfreetype.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 89af138176855891d8cf3582253e511e5705c3be
Author: Vitaly Lysenkov <vlysenkov@xxxxxxxxxx>
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);



[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux