From 4f0209f510b50357c5323a82283bb2940101f3cc Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Mon, 20 Nov 2017 14:26:19 +0900 Subject: [PATCH] Fix Svace issue - TAINTED_INT.LOOP.MIGHT [Version] 0.3.12 [Profile] Common [Issue Type] Bug fix [Dependency module] N/A Change-Id: Iaaf3b01106b26674fb2d2ca69cbbfec331ff5b54 Signed-off-by: Jeongmo Yang --- packaging/capi-media-camera.spec | 2 +- src/camera.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/capi-media-camera.spec b/packaging/capi-media-camera.spec index b7fa839..8980018 100644 --- a/packaging/capi-media-camera.spec +++ b/packaging/capi-media-camera.spec @@ -1,6 +1,6 @@ Name: capi-media-camera Summary: A Camera API -Version: 0.3.11 +Version: 0.3.12 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/camera.c b/src/camera.c index 2ef7034..07e90bd 100644 --- a/src/camera.c +++ b/src/camera.c @@ -486,7 +486,7 @@ static void __camera_event_handler_preview(camera_cb_info_s *cb_info, char *recv _PREVIEW_CB_HANDLER_DONE: if (mp_data == NULL) { /* release imported bo */ - for (i = 0 ; i < num_buffer_key ; i++) + for (i = 0 ; i < num_buffer_key && i < BUFFER_MAX_PLANE_NUM ; i++) _camera_release_imported_bo(&buffer_bo[i]); /* unmap and unref tbm bo */ -- 2.7.4