summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2018-04-09 10:11:19 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-04-09 10:36:43 -0700
commit0f06f222ba8fc0ba7d06ee3d89552c05fa2aa4b8 (patch)
tree1e983b44fa4f821253201a00d892a04361e32613
parent78f4babbb5bc13eb4349cfaca419ef60736333a9 (diff)
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 <cedric@osg.samsung.com>
-rw-r--r--src/lib/ecore_fb/ecore_fb_li.c2
1 files changed, 1 insertions, 1 deletions
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
634ecore_fb_input_device_axis_size_set(Ecore_Fb_Input_Device *dev, int w, int h) 634ecore_fb_input_device_axis_size_set(Ecore_Fb_Input_Device *dev, int w, int h)
635{ 635{
636 if (!dev) return; 636 if (!dev) return;
637 if ((w < 0) || (h < 0)) return; 637 if ((w <= 0) || (h <= 0)) return;
638 /* FIXME 638 /* FIXME
639 * this code is for a touchscreen device, 639 * this code is for a touchscreen device,
640 * make it configurable (ABSOLUTE | RELATIVE) 640 * make it configurable (ABSOLUTE | RELATIVE)