From 61b5daa6ea6d4f00dc7a68212c83e765a4605506 Mon Sep 17 00:00:00 2001 From: Hyerim Kim Date: Fri, 9 Sep 2016 17:07:44 +0900 Subject: [PATCH] Fixed Svace issues - WGID: 141897, 141898 Signed-off-by: Hyerim Kim Change-Id: I423100e67a79e2e6c243b5cb0309c8f592a354a0 --- src/data/data_recent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/data_recent.c b/src/data/data_recent.c index 07c7c20..8f3f04a 100644 --- a/src/data/data_recent.c +++ b/src/data/data_recent.c @@ -449,7 +449,7 @@ static void _web_list_foreach(gpointer data, gpointer user_data) } r = bp_history_adaptor_get_snapshot(id, &w, &h, &value, &size); - if (r < 0) { + if (r < 0 || size <= 0 || size > 10000 ) { _ERR("failed to get snapshot of history"); goto err3; } -- 2.7.4