diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2015-06-25 15:12:32 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2015-06-25 15:12:32 +0900 |
commit | 42348327137604574157be3d08e20ffc97f0f7d9 (patch) | |
tree | cf77d9b5068b8a5d707318bab923db529700498a | |
parent | 14c14349604cea5c7bcd00c634b8416613f08a23 (diff) |
Evas filters: Add some crash safety
-rw-r--r-- | src/lib/evas/filters/evas_filter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/filters/evas_filter.c b/src/lib/evas/filters/evas_filter.c index 7ad28784da..5d22df2efd 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, | |||
1814 | (*rows) = sh; | 1814 | (*rows) = sh; |
1815 | if ((*rows) > dh) (*rows) = dh; | 1815 | if ((*rows) > dh) (*rows) = dh; |
1816 | } | 1816 | } |
1817 | if ((*cols) < 0) *cols = 0; | ||
1818 | if ((*rows) < 0) *rows = 0; | ||
1817 | } | 1819 | } |
1818 | 1820 | ||
1819 | #ifdef FILTERS_DEBUG | 1821 | #ifdef FILTERS_DEBUG |