[[rdkb][logan] fix ccsp-common-library out of access]

[Description]
Fix rdkb ccsp-common-library out of access.

[Release-log]

diff --git a/recipes-ccsp/ccsp/ccsp-common-library.bbappend b/recipes-ccsp/ccsp/ccsp-common-library.bbappend
index c8a755c..8e67586 100644
--- a/recipes-ccsp/ccsp/ccsp-common-library.bbappend
+++ b/recipes-ccsp/ccsp/ccsp-common-library.bbappend
@@ -22,6 +22,7 @@
 SRC_URI_remove_dunfell = "file://0001-DBusLoop-SSL_state-TLS_ST_OK.patch"
 
 SRC_URI += "file://0003-add-dependency-to-pandm.patch;apply=no"
+SRC_URI += "file://0004-fix-out-of-array-access.patch;apply=no"
 
 SRC_URI_append_dunfell = " file://0001-DBusLoop-SSL_state-TLS_ST_OK.patch;apply=no"
 
@@ -32,6 +33,7 @@
     if [ ! -e patch_applied ]; then
         bbnote "Patching 0003-add-dependency-to-pandm.patch"
         patch -p1 < ${WORKDIR}/0003-add-dependency-to-pandm.patch
+        patch -p1 < ${WORKDIR}/0004-fix-out-of-array-access.patch
         if [ "${@bb.utils.contains('DISTRO_CODENAME', 'dunfell', 'dunfell', '', d)}" = "dunfell" ] ; then
             bbnote "Patching 0001-DBusLoop-SSL_state-TLS_ST_OK.patch"
             patch -p1 < ${WORKDIR}/0001-DBusLoop-SSL_state-TLS_ST_OK.patch
diff --git a/recipes-ccsp/ccsp/ccsp-common-library/0004-fix-out-of-array-access.patch b/recipes-ccsp/ccsp/ccsp-common-library/0004-fix-out-of-array-access.patch
new file mode 100644
index 0000000..beb84a9
--- /dev/null
+++ b/recipes-ccsp/ccsp/ccsp-common-library/0004-fix-out-of-array-access.patch
@@ -0,0 +1,26 @@
+From 6e0958b5f732c008020c42769f0c5dc565c12327 Mon Sep 17 00:00:00 2001
+From: chank chen <chank.chen@mediatek.com>
+Date: Thu, 21 Dec 2023 17:34:30 +0800
+Subject: [PATCH] fix out of array access
+
+Signed-off-by: chank chen <chank.chen@mediatek.com>
+---
+ .../DataModel/dml/components/DslhObjRecord/dslh_objro_access.c  | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/source/ccsp/components/common/DataModel/dml/components/DslhObjRecord/dslh_objro_access.c b/source/ccsp/components/common/DataModel/dml/components/DslhObjRecord/dslh_objro_access.c
+index 8266196d..9b13adb4 100755
+--- a/source/ccsp/components/common/DataModel/dml/components/DslhObjRecord/dslh_objro_access.c
++++ b/source/ccsp/components/common/DataModel/dml/components/DslhObjRecord/dslh_objro_access.c
+@@ -1591,7 +1591,7 @@ static void Notify_Table_Entry(PDSLH_OBJ_RECORD_OBJECT pMyObject, ULONG old_valu
+ 
+ 	rc = strcpy_s(Param_NumberOfEntry, sizeof(Param_NumberOfEntry), pMyObject->FullName);
+ 	ERR_CHK(rc);
+-	len = _ansc_strlen(Param_NumberOfEntryTemp);
++	len = sizeof(Param_NumberOfEntryTemp);
+ 	Param_NumberOfEntryTemp[len-1]= '\0';
+ 
+ 	/*CID: 65627 Copy of overlapping memory*/
+-- 
+2.18.0
+