summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2026-04-03 14:59:29 +0800
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-04-03 01:05:45 -0700
commit4d5e7bd1360b6b3a4e83d4203edcaf267a75b350 (patch)
tree784a7a71efa572bb9960eaf865f3cce78cd8528b
parentdab9004db6063ad3ad16b94a91f5e47fbde8db45 (diff)
downloadmeta-openembedded-4d5e7bd1360b6b3a4e83d4203edcaf267a75b350.tar.gz
dlt-daemon: update patch to fix dlt-daemon crash issue
A wrong type conversion makes dlt-daemon crash, update the patch to fix it Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
-rw-r--r--meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-Fix-kinds-of-build-failure.patch5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-Fix-kinds-of-build-failure.patch b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-Fix-kinds-of-build-failure.patch
index 403d1089e2..ff840b809d 100644
--- a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-Fix-kinds-of-build-failure.patch
+++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-Fix-kinds-of-build-failure.patch
@@ -27,7 +27,8 @@ src/console/dlt-control-common.c:922:25: error: cast discards 'const' qualifier
27 27
28Use explicit type conversion to make the build can pass 28Use explicit type conversion to make the build can pass
29 29
30Upstream-Status: Submitted [https://github.com/COVESA/dlt-daemon/pull/826] 30Upstream-Status: Submitted [https://github.com/COVESA/dlt-daemon/pull/826,
31https://github.com/COVESA/dlt-daemon/pull/837]
31 32
32Signed-off-by: Changqing Li <changqing.li@windriver.com> 33Signed-off-by: Changqing Li <changqing.li@windriver.com>
33--- 34---
@@ -102,7 +103,7 @@ index 4c40cda8..b3408773 100644
102- memcpy(data, data1, size1); 103- memcpy(data, data1, size1);
103- memcpy(data + size1, data2, size2); 104- memcpy(data + size1, data2, size2);
104+ memcpy(data, data1, (size_t)size1); 105+ memcpy(data, data1, (size_t)size1);
105+ memcpy((int*)data + size1, data2, (size_t)size2); 106+ memcpy((char*)data + size1, data2, (size_t)size2);
106 107
107- if (sendto(g_udp_sock_fd, data, size1 + size2, 0, (struct sockaddr *)&clientinfo->clientaddr, 108- if (sendto(g_udp_sock_fd, data, size1 + size2, 0, (struct sockaddr *)&clientinfo->clientaddr,
108+ if (sendto(g_udp_sock_fd, data, (size_t)(size1 + size2), 0, (struct sockaddr *)&clientinfo->clientaddr, 109+ if (sendto(g_udp_sock_fd, data, (size_t)(size1 + size2), 0, (struct sockaddr *)&clientinfo->clientaddr,