[vlc-commits] [Git][videolan/vlc][master] freetype: fix invalid free

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Fri Dec 31 12:21:03 UTC 2021



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
b23975d9 by Lyndon Brown at 2021-12-31T11:59:29+00:00
freetype: fix invalid free

- - - - -


1 changed file:

- modules/text_renderer/freetype/fonts/win32.c


Changes:

=====================================
modules/text_renderer/freetype/fonts/win32.c
=====================================
@@ -655,7 +655,10 @@ int Win32_GetFallbacks( vlc_font_select_t *fs, const char *psz_lcname,
             goto done;
 
         if( asprintf( &psz_linkname, "\xF0\x9F\x94\x97%s", psz_uniscribe ) < 0 )
+        {
+            psz_linkname = NULL;
             goto done;
+        }
 
         vlc_family_t *withlinked = NewFamily( fs, psz_linkname, NULL, NULL, NULL );
         if( withlinked )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b23975d9a53ab1f9d3a7612f9fd18f011dfa6942

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b23975d9a53ab1f9d3a7612f9fd18f011dfa6942
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list