Hello all,

Since the trac does not get much traffic, I think I'd try here.
Thanks for cedric's looking at the problem. :-)

Ticket URL: http://trac.enlightenment.org/e/ticket/461

Index: src/lib/engines/common/evas_font_main.c
===================================================================
--- src/lib/engines/common/evas_font_main.c     (revision 43601)
+++ src/lib/engines/common/evas_font_main.c     (working copy)
@@ -137,7 +137,7 @@
    unsigned char d, d2, d3, d4;

    /* if this char is the null terminator, exit */
-   if (!buf[index])
+   if ((index < 0) || !buf[index])
      return 0;

    d = buf[index++];


This is a fix without really knowing the cause of it.  With the help
of gdb, it indicates a -1 offset is being passed to
evas_common_font_utf8_get_next() and thus the invalid read.

Best regards,


brian

-- 
brian
------------------

Cool-Karaoke - The smallest recording studio, in your palm, open-sourced
http://cool-idea.com.tw/

iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to