[Issue type] : bug fix
[Version] : 0.28.10
Fix two svace issues from VD KONA, DEREF_OF_NULL_RET.STAT.
WGID: 3342,
1134975
Change-Id: I292348f51b9cb9a70c48cedc281c0b92ec91a3d5
Signed-off-by: Inki Dae <inki.dae@samsung.com>
if (json_object_has_member(preprocess_object, "resize")) {
const char *resizer = static_cast<const char *>(json_object_get_string_member(preprocess_object, "resize"));
+ if (!resizer) {
+ LOGE("Fail to get a string value to the resize member.");
+ return MEDIA_VISION_ERROR_INVALID_OPERATION;
+ }
+
if (strcmp(resizer, "LETTERBOX") == 0) {
opt.resizer = Resizer::LETTERBOX;
LOGI("resizer changed to letterbox");
Name: capi-media-vision
Summary: Media Vision library for Tizen Native API
-Version: 0.28.9
+Version: 0.28.10
Release: 0
Group: Multimedia/Framework
License: Apache-2.0 and BSD-3-Clause