aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-02 19:58:02 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-02 20:15:57 +0900
commitde99a71c4393e68725882babcf6f736222055475 (patch)
tree57deeb92dc830fff04244d18de993353345f883f
parentevas: Rename calculate property to calculating (diff)
downloadefl-de99a71c4393e68725882babcf6f736222055475.tar.gz
evas filters: Shut up coverity
Add some safety checks. CID 1374271
-rw-r--r--src/lib/evas/filters/evas_filter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/filters/evas_filter.c b/src/lib/evas/filters/evas_filter.c
index 0dc50aaf9c..18969ecaaa 100644
--- a/src/lib/evas/filters/evas_filter.c
+++ b/src/lib/evas/filters/evas_filter.c
@@ -295,6 +295,8 @@ evas_filter_context_buffers_allocate_all(Evas_Filter_Context *ctx)
Evas_Filter_Buffer *in, *out;
in = cmd->input;
+ EINA_SAFETY_ON_NULL_GOTO(in, alloc_fail);
+
in->cleanup = EINA_FALSE;
if (!in->w && !in->h)
{
@@ -325,6 +327,7 @@ evas_filter_context_buffers_allocate_all(Evas_Filter_Context *ctx)
return EINA_FALSE;
}
+ EINA_SAFETY_ON_NULL_GOTO(in, alloc_fail);
if (in->w) sw = in->w;
if (in->h) sh = in->h;