Fix svace issue - NONTERMINATED_STRING 64/223564/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_unified tizen tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.0/unified/20201030.123037 accepted/tizen/6.0/unified/hotfix/20201103.052628 accepted/tizen/6.5/unified/20211028.093219 accepted/tizen/7.0/unified/20221110.063829 accepted/tizen/7.0/unified/hotfix/20221116.104334 accepted/tizen/unified/20200205.125247 submit/tizen/20200205.023534 submit/tizen_6.0/20201029.205101 submit/tizen_6.0_hotfix/20201102.192501 submit/tizen_6.0_hotfix/20201103.114801 submit/tizen_6.5/20211028.161401 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release
authorJeongmo Yang <jm80.yang@samsung.com>
Fri, 31 Jan 2020 01:47:07 +0000 (10:47 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Fri, 31 Jan 2020 01:47:49 +0000 (10:47 +0900)
[Version] 0.0.1-3
[Profile] Common
[Issue Type] Svace

Change-Id: I270a74225d9b78157751926c262811170b12054b
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
openmax/osal/Exynos_OSAL_ETC.c
packaging/libomxil-e7270-v4l2.spec

index 49da02b..088a2d9 100755 (executable)
@@ -66,7 +66,7 @@ size_t Exynos_OSAL_Strcpy(OMX_PTR dest, OMX_PTR src)
 
     return strlcpy(dest, src, len);
 #else
-    return strlen(strncpy(dest, src, strlen((const char *)src)));
+    return strlen(strncpy(dest, src, strlen((const char *)src) + 1));
 #endif
 }
 
index 93fbab6..bfbb14c 100755 (executable)
@@ -3,7 +3,7 @@ Summary: OpenMAX IL for e7270-v4l2
 Version: 0.0.1
 License: Apache-2.0
 Group: Development/Libraries
-Release: 2
+Release: 3
 ExclusiveArch: %arm
 Source: %{name}-%{version}.tar.gz
 Requires(post): /sbin/ldconfig