hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/expedite.git/commit/?id=f3e0448bd38c0450293d29c908992548993bc38b

commit f3e0448bd38c0450293d29c908992548993bc38b
Author: Hermet Park <[email protected]>
Date:   Tue Dec 24 18:46:55 2019 +0900

    fix array bounds overflow.
---
 src/bin/proxy_textblock.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/bin/proxy_textblock.c b/src/bin/proxy_textblock.c
index 691756c..262b81e 100644
--- a/src/bin/proxy_textblock.c
+++ b/src/bin/proxy_textblock.c
@@ -12,13 +12,13 @@
 #  include "main.h"
 
 #undef OBNUM
-#define OBNUM 1
+#define OBNUM 4
 
 /* standard var */
 static int done = 0;
 
 /* private data */
-static Evas_Object *o_texts[OBNUM * 3];
+static Evas_Object *o_texts[OBNUM];
 
 //uncomment to test vs plain textblock render perf
 //#define PROXY_CMP 1
@@ -29,7 +29,7 @@ static void _setup(void)
    int i;
    Evas_Object *o, *clip, *proxy;
 
-   for (i = 0; i < OBNUM * 4; i++)
+   for (i = 0; i < OBNUM; i++)
      {
         o = efl_add(EFL_CANVAS_TEXTBLOCK_CLASS, evas);
         o_texts[i] = o;
@@ -96,7 +96,7 @@ static void _setup(void)
 static void _cleanup(void)
 {
    int i;
-   for (i = 0; i < OBNUM * 4; i++) efl_del(o_texts[i]);
+   for (i = 0; i < OBNUM; i++) efl_del(o_texts[i]);
 }
 
 /* loop - do things */
@@ -104,7 +104,7 @@ static void _loop(double t, int f)
 {
    int i;
    Evas_Coord x, y, w, h;
-   for (i = 0; i < OBNUM * 4; i++)
+   for (i = 0; i < OBNUM; i++)
      {
         w = 480;
         h = 160;

-- 


Reply via email to