jpeg pushed a commit to branch master.

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

commit 42348327137604574157be3d08e20ffc97f0f7d9
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Jun 25 15:12:32 2015 +0900

    Evas filters: Add some crash safety
---
 src/lib/evas/filters/evas_filter.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/evas/filters/evas_filter.c 
b/src/lib/evas/filters/evas_filter.c
index 7ad2878..5d22df2 100644
--- a/src/lib/evas/filters/evas_filter.c
+++ b/src/lib/evas/filters/evas_filter.c
@@ -1814,6 +1814,8 @@ _clip_to_target(int *sx /* OUT */, int *sy /* OUT */, int 
sw, int sh,
         (*rows) = sh;
         if ((*rows) > dh) (*rows) = dh;
      }
+   if ((*cols) < 0) *cols = 0;
+   if ((*rows) < 0) *rows = 0;
 }
 
 #ifdef FILTERS_DEBUG

-- 


Reply via email to