cedric pushed a commit to branch master.

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

commit 0f06f222ba8fc0ba7d06ee3d89552c05fa2aa4b8
Author: JunsuChoi <jsuya.c...@samsung.com>
Date:   Mon Apr 9 10:11:19 2018 -0700

    ecore_fb: fix divided by zero
    
    Summary:
    w and h must not be zero.
    because of the divide_by_zero exception occurs on line 649 and 653.
    
    Test Plan: N/A
    
    Reviewers: woohyun, kimcinoo, cedric
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D5873
    
    Reviewed-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/ecore_fb/ecore_fb_li.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_fb/ecore_fb_li.c b/src/lib/ecore_fb/ecore_fb_li.c
index 453817bf97..38500798b2 100644
--- a/src/lib/ecore_fb/ecore_fb_li.c
+++ b/src/lib/ecore_fb/ecore_fb_li.c
@@ -634,7 +634,7 @@ EAPI void
 ecore_fb_input_device_axis_size_set(Ecore_Fb_Input_Device *dev, int w, int h)
 {
    if (!dev) return;
-   if ((w < 0) || (h < 0)) return;
+   if ((w <= 0) || (h <= 0)) return;
    /* FIXME
     * this code is for a touchscreen device,
     * make it configurable (ABSOLUTE | RELATIVE)

-- 


Reply via email to