raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b310e5892cb9740317dcf990d27b83cb9ac7a79f

commit b310e5892cb9740317dcf990d27b83cb9ac7a79f
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Thu Jun 8 14:48:08 2017 +0900

    evas - font dir fonts.alias - limit alias parse length
    
    a rouge fonts.alias file in a font dir/path could contain long strings
    that buffers dont have space for, so limit length of string.
    
    @fix
---
 src/lib/evas/canvas/evas_font_dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/evas/canvas/evas_font_dir.c 
b/src/lib/evas/canvas/evas_font_dir.c
index 8e0692de87..2f4c8598ba 100644
--- a/src/lib/evas/canvas/evas_font_dir.c
+++ b/src/lib/evas/canvas/evas_font_dir.c
@@ -1246,7 +1246,7 @@ object_text_font_cache_dir_add(char *dir)
             char fname[4096], fdef[4096];
 
             /* read font alias lines */
-            while (fscanf(f, "%4090s %[^\n]\n", fname, fdef) == 2)
+            while (fscanf(f, "%4090s %4090[^\n]\n", fname, fdef) == 2)
               {
                  Evas_Font_Alias *fa;
 

-- 


Reply via email to